Limit drawing of open positions SL & TP to timeframe of chart

Back to topics list To post a new topic, please log in or register
avatar
19
TheLobos 2016.04.14 13:18
 

I'm having an EA which I'm running on a chart/symbol on 2 different timeframes (say EURUSD H4 and H1). So I'm having 2 chart windows (same symbol, different timeframes) open, each of which is assigned a running instance of the EA.

When the EA opens a position in 1 chart (say EURUSD H4) the position (Entry, SL and TP) is also drawn on the other chart (say EURUSD  H1). 

Is there any way to avoid this so that positions are only drawn in the window in which they were opened by the EA (regardless of how many other windows with the same symbol but different timeframes are open)?

Ideally, is there a way to limit a chart to entries associated with a given magic number?

 

Thanks for any tips. 

avatar
Moderator
3404
GumRai 2016.04.14 13:31 #
 
In MT4 Tools-Options-Charts de-select "Show trade levels" and code the EA to draw the lines, if required.
avatar
19
TheLobos 2016.04.14 13:33 #
 
Excellent, thank you!
Back to topics list  

To add comments, please log in or register