Good day to all!
Throw an example from MT5, how to display text(lines, signs) in the indicator window?
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Our community is a completely independent place for communication between forex traders and software developers for trading platforms Metatrader 4 and Metatrader 5
Create A New Account
unicornis
here’s an example
gfm73
The question is how to correctly create an object “OBJPROP_TEXT” in the indicator window and, accordingly, output data to it.
prostotrader
Text
ObjectSetString(ChartID(),"DH_3",OBJPROP_TEXT,"Profit (without div.): "+ string(NormalizeDouble(Cb + BuyBuff[0], 2)) + "%");
ChartRedraw();
Accordingly, during initialization, you need to create an OBJPROP_TEXT object