modifying all SL & TP enterred by the same EA on the chart.

 
Hi everybody,

I am using scaling in a strategy entering one trade per candle if other conditions are met using:

***


The issue I am facing is that I want all SL and TP of all positions on the chart from the same EA to be modifying together as the SL & TP are following a certain indicator on the chart.

Right now I am stuck to having the position SL & TP modifying only for the position opened in the current Time[0] candle and not for the positions opened in previous candles, it stops modifying as soon as the candle closes.

I hope I explained well.

Thanks to all who will answer.

Sincerely,

Johnny
Documentation on MQL5: Date and Time / TimeCurrent
Documentation on MQL5: Date and Time / TimeCurrent
  • www.mql5.com
TimeCurrent - Date and Time - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
 
Johnny Draham :

Use the button Codeto insert the code