Download MetaTrader 5
To add comments, please log in or register
Do you have Linux? Find out how to install MetaTrader on it!
Paul
529
Paul 2016.04.27 15:17 

Is there a way to scroll multiple charts at the same time, from the same point, on each chart?


Thanks!

Ovo Cz
2951
Ovo Cz 2016.04.27 15:22  

Sure, there is a way. You have ChartNavigate() function to move your chart to a location.

Paul
529
Paul 2016.04.27 15:33  
This would work for scrolling charts, of different pairs, together, at the same time?  So that I can see how price moves in each, relative to each other.
Ovo Cz
2951
Ovo Cz 2016.04.27 16:50  
Yellowbeard:
This would work for scrolling charts, of different pairs, together, at the same time?  So that I can see how price moves in each, relative to each other.

The function scrolls any chart, implementing of the synchronization needs some work.

I have an indicator on every chart which scrolls together. Then I use OnChartEvent to detect a chart move, and a custom event for broadcasting the location in focus. The indicators on the other charts receive the event and call the above function to advance to the location.

But I can imagine you could have only a single indicator, which scrolls all the visible charts altogether. 

whroeder1
13627
whroeder1 2016.04.29 18:26  
/
To add comments, please log in or register