What is the best way to keep a box(or anything i.e. windings) centered on a chart?
Is there something in mq4 we can use or do we have to calculate the size of the chart?
Right now i have this to get the size of the chart (X)
Which gives me 1572 when the navigator window is open and 1868 when it's closed
I want to have some code that calculate it automatic so the box always centered on the chart
Is there something in mq4 we can use or do we have to calculate the size of the chart?
Right now i have this to get the size of the chart (X)
Inserted Code
long widthChartX = ChartGetInteger(0,CHART_WIDTH_IN_PIXELS,0);
Which gives me 1572 when the navigator window is open and 1868 when it's closed
I want to have some code that calculate it automatic so the box always centered on the chart
Blindly following others will make you blind!