Problem with creating variable using CHART_SCALE in MQL4.

Back to topics list To post a new topic, please log in or register
agtfelipe 2014.11.22 12:39
Hello everyone!

I need help here.

I am creating a custom indicator for mt4 platform. This will create a text index on the graph screen. So far so good.

My problem is that I want to create a variable using the current value of CHART_SCALE. When you change the zoom on the mt4 screen, the text changes position.

In the end, I want a variable that has the current value of the zoom the screen so I can put this variable in the function I have created.

Thanks for listening!
I await response.
honest_knave 2014.11.22 14:45 #
   long scale=ChartGetInteger(0,CHART_SCALE);

'scale' will be a value from 0 to 5

Back to topics list  

To add comments, please log in or register