Magnified 20Market 20Price[2]

Download script
Magnified 20Market 20Price[2]

This tool is designed to provide traders with a clear, real-time visual display of the current market price directly on their trading chart. Instead of forcing you to squint at the small numbers in the "Market Watch" window or on the price scales, it places a large, easy-to-read text label in a specific corner of your screen that updates instantly as the market moves.

Key Features and Logic:

  • Dynamic Visual Feedback: The script includes an intelligent color-coding system. If enabled, the text will automatically change color based on price movement: it turns green when the price is rising and red when the price is falling. This allows for an immediate "at-a-glance" understanding of market momentum without needing to analyze candles deeply.
  • Customizable Display: You have full control over how the information is presented. You can choose the exact corner of the screen where the price appears (such as the lower left or upper right), ensuring it doesn't obstruct your view of the actual charts.
  • Personalized Aesthetics: The tool is designed to fit your specific trading workspace. You can customize the font type, the size of the numbers, and the default colors to ensure the display is legible and consistent with your overall visual setup.
  • Simplified Price Formatting: To keep the display clean and uncluttered, the script rounds the price slightly, ensuring that the most significant digits are displayed clearly rather than showing a long string of unnecessary decimal points.

In essence, this script acts as a dedicated dashboard element, pulling the most important piece of live data—the current market price—and presenting it in a high-visibility format tailored to your personal preference.

11 Views
0 Downloads
0 Favorites
Magnified 20Market 20Price[2]
//+------------------------------------------------------------------+
//| Magnified Market Price.mq4        ver1.4             by Habeeb   |
//+------------------------------------------------------------------+

#property indicator_chart_window

  extern string note1 = "Change font colors automatically? True = Yes";
  extern bool   Bid_Ask_Colors = True;
  extern string note2 = "Default Font Color";
  extern color  FontColor = Black;
  extern string note3 = "Font Size";
  extern int    FontSize=24;
  extern string note4 = "Font Type";
  extern string FontType="Comic Sans MS";
  extern string note5 = "Display the price in what corner?";
  extern string note6 = "Upper left=0; Upper right=1";
  extern string note7 = "Lower left=2; Lower right=3";
  extern int    WhatCorner=2;

  double        Old_Price;

int init()
  {
   return(0);
  }

int deinit()
  {
  ObjectDelete("Market_Price_Label"); 
  
  return(0);
  }

int start()
  {
   if (Bid_Ask_Colors == True)
   {
    if (Bid > Old_Price) FontColor = LawnGreen;
    if (Bid < Old_Price) FontColor = Red;
    Old_Price = Bid;
   }
   
   string Market_Price = DoubleToStr( Bid, Digits - 1 );
  
   ObjectCreate("Market_Price_Label", OBJ_LABEL, 0, 0, 0);
   ObjectSetText("Market_Price_Label", Market_Price, FontSize, FontType, FontColor);
   ObjectSet("Market_Price_Label", OBJPROP_CORNER, WhatCorner);
   ObjectSet("Market_Price_Label", OBJPROP_XDISTANCE, 1);
   ObjectSet("Market_Price_Label", OBJPROP_YDISTANCE, 1);
  }

Comments