Magnified Market Price_v2

Download script
Magnified Market Price_v2

This script is a visual tool designed for the MetaTrader trading platform to provide a clear, real-time display of current market prices directly on your chart. Instead of requiring you to constantly look at the small price numbers on the far right of your screen, this tool brings that information to a prominent location of your choosing.

How it Works

The script functions by monitoring the live "Bid" price (the current price at which you can sell a currency or asset) and projecting it onto your screen as a large, easy-to-read text label. Here is a breakdown of its primary features:

Dynamic Visual Feedback One of the key features of this tool is its ability to change colors automatically based on market movement. If you enable this setting, the price text will react instantly to price fluctuations:

  • Green: The text turns green when the current price is higher than the previous price.
  • Red: The text turns red when the current price is lower than the previous price. This provides an immediate visual cue regarding the market's momentum without you having to interpret the raw numbers alone.

Customizable Display Settings The script is designed to be highly adaptable to your personal trading workspace. You can customize several visual elements to ensure it fits your screen perfectly:

  • Positioning: You can choose which corner of the chart the price should appear in (e.g., upper left, upper right, lower left, or lower right).
  • Readability: You can adjust the font size to make the price as large as needed for easy viewing at a glance.
  • Styling: The tool allows you to select specific font types and colors to ensure the display matches your overall chart aesthetic.

Summary for the User

Essentially, this script acts as a "magnifying glass" for live market data. It simplifies your trading environment by highlighting the current price in a large, customizable format that changes color as the market moves, allowing for quicker reactions and a more streamlined visual experience.

16 Views
0 Downloads
0 Favorites
Magnified Market Price_v2
//+------------------------------------------------------------------+
//| 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);
//----   
   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