Download MetaTrader 5
To add comments, please log in or register
What is the best place to find a programmer? Freelance service!
Cristian
20
Cristian 2014.08.29 11:35 

Hi everybody,


I experience some frustration in such a way that I want to draw some horizontal lines, computed according to a certain algorithm in two different charts, eg. eurusd and dax. I managed to format the lines as I want (style, color, thickness), but I'm not able to make my EA to move the lines according to new values. If I attach the EA on eurusd, it performs very well on eurusd, and not on dax and viceversa. Any sugestion? Thanks!

qjol
3243
qjol 2014.08.29 11:57  

 the lines are time and price related, you have to find the appropriate formula to match the lines like ChartTimePriceToXY() and apply on the other chart

or maybe you can overlay the charts https://www.mql5.com/en/code/7933

Keith Watford
Moderator
8016
Keith Watford 2014.08.29 12:26  

Is the Dax a 24 hour market with your broker?

If not, could that be affecting your EA? 

Cristian
20
Cristian 2014.09.06 12:39  
qjol:

 the lines are time and price related, you have to find the appropriate formula to match the lines like ChartTimePriceToXY() and apply on the other chart

or maybe you can overlay the charts https://www.mql5.com/en/code/7933

Thank you, is not the case of overlaying charts, not that I'm looking for. By suggesting to use ChartTimePricetoXY function you mean there is a bug with the classical MoveObject function?
Keith Watford
Moderator
8016
Keith Watford 2014.09.06 13:16  
Christian07:
I don't think that is affecting my EA. It works just fine when I attach the EA only on dax.


Maybe because the EA only receives ticks when the Dax is open.

If the EA is attached to EURUSD, it will receive ticks when the Dax is closed and so maybe nothing to compare with. 

/
To add comments, please log in or register