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
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.