MMPrice THV

Download script
MMPrice THV

This tool is designed to provide traders with a clear, high-visibility display of the current market price directly on their trading chart. Instead of relying solely on the standard price bars or small data boxes, it creates a large, customizable text label that updates in real-time.

Key Functionalities:

Dynamic Visual Feedback One of the primary features of this script is its ability to change color based on market movement. If enabled, the text color will automatically shift to signal price direction:

  • It turns one color when the current price rises compared to the previous tick.
  • It turns a different color when the current price falls. This allows traders to instantly perceive market momentum at a glance without needing to analyze individual candles.

Smart Price Formatting The script intelligently recognizes the type of asset being traded. It automatically detects whether a currency pair is a Japanese Yen (JPY) pair or another currency. Depending on this detection, it adjusts the decimal places displayed—showing two decimals for Yen and four decimals for other currencies—ensuring that the price always looks correct and professional regardless of the market.

Full Visual Customization The tool offers several settings to ensure it fits perfectly with a user's specific trading layout:

  • Positioning: You can choose which corner of the screen the price should appear in (Upper Left, Upper Right, Lower Left, or Lower Right).
  • Typography: Users can customize the font size and type (such as Arial Black) to ensure the price is readable even on large monitors.
  • Color Schemes: You can set a default base color for the text to match your personal theme.

In summary, this script transforms raw market data into a prominent, easy-to-read visual indicator that highlights price action movements in real-time.

11 Views
0 Downloads
0 Favorites
MMPrice THV
//+------------------------------------------------------------------+
//| Magnified Market Price.mq4        ver1.4             by Habeeb   |
//| Modified by FerruFX for Cobraforex THV System, www.cobraforex.com|
//+------------------------------------------------------------------+
#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=32;
  extern string note4="Font Type";
  extern string FontType="Arial Black";
  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=1;
//----
  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=Chartreuse;
      if (Bid < Old_Price) FontColor=Magenta;
      Old_Price=Bid;
     }
     
   //---- Define the standard digits
   int digits;
   string sub=StringSubstr(Symbol(), 3, 3);
   if(sub == "JPY") digits = 2;
   else digits = 4;
    
   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