Download MetaTrader 5
To add comments, please log in or register
Follow the news. View our company's official channel!
fabio7774
17
fabio7774 2014.11.18 07:56 

Hi 

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

Fabio 

whroeder1
13644
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