Magnified Market Price Indicator For MT5
Table Of Contents:
- Magnified Market Price Indicator For MT5
- Installing the Magnified Market Price Indicator For MT5
- Parameters of the Magnified Market Price Indicator For MT5
- Buffers of the Magnified Market Price Indicator For MT5
- Main Parts Of The Code
The Magnified Market Price Indicator For MT5 draws the actual price of the chart instrument on the chart. You can select the corner in which the price should be drawn.
Installing the Magnified Market Price Indicator For MT5
After you downloaded the indicator via the form above you need to unzip the zip-file. Then you need to copy the file magnified_market_price.mq5 into the folder MQL5\Indicators of your MT5 installation. After that please restart MT5 and then you will be able to see the indicator in the list of indicators.
Parameters of the Magnified Market Price Indicator For MT5
The Magnified Market Price Indicator For MT5 has 9 parameters to configure.
input type_price PriceType=MODE_BID; // Displayed price type input bool CutPrice=false; // Last figure removal flag input bool ResetColors=true; // Colors reset flag input color UpPriceColor=Lime; // Rising price color input color PriceColor=Gray; // Unchanged price color input color DnPriceColor=Magenta; // Falling price color input int FontSize=24; // Font size input type_font FontType=Font7; // Font type input ENUM_BASE_CORNER WhatCorner=CORNER_LEFT_LOWER; // Location corner
Buffers of the Magnified Market Price Indicator For MT5
The Magnified Market Price Indicator For MT5 provides 0 buffers.
Main Parts Of The Code
int OnCalculate(const int rates_total, // number of bars in history at the current tick const int prev_calculated,// number of bars calculated at previous call const datetime &time[], const double &open[], const double& high[], // price array of maximums of price for the calculation of indicator const double& low[], // price array of minimums of price for the calculation of indicator const double &close[], const long &tick_volume[], const long &volume[], const int &spread[]) { //---- double price=close[rates_total-1]+int(PriceType)*_Point*spread[rates_total-1]; if(ResetColors==true) { PriceColor_=PriceColor; if(price gt Old_Price) PriceColor_=UpPriceColor; if(price lt Old_Price) PriceColor_=DnPriceColor; Old_Price=price; } string Market_Price=DoubleToString(price,_Digits-CutPrice); SetTLabel(0,"Market_Price_Label",0,WhatCorner,ENUM_ANCHOR_POINT(2*WhatCorner),5,1,Market_Price,PriceColor_,sFontType,FontSize); //---- ChartRedraw(0); //---- return(rates_total); } //+------------------------------------------------------------------+