Download MetaTrader 5

Reading trend line values with a muti-devises EA

To add comments, please log in or register
fabio7774 2014.11.18 07:56 


I have an EA based on breakout. Basically I am drawing a trend line then look for the cut between a MA and this same trend line.

For achieving this, I  draw the trendline then use ObjectGetValueByShift().

That works for fine on a graph for a given pair.

Now assuming that I want my EA to trade with several pair, I will not draw a trendline for a pair that has nothing to do with the current graph hence my question how to achieve this ?

 Thanks in advance


whroeder1 2014.11.18 13:19  

You code the EA to trade the chart pair and draw your trendline for that pair on that chart.

Open other charts/pairs and put the EA on those.

To add comments, please log in or register