Close all trades with sl or tp of the first trade as reference trade
-
Hello
I have decided to open 2 more positions in the same direction of the market after my first position, which I opened based on my strategy, but I want the other transactions to be closed at the same time when SL or TP at the same time with first transaction
Or in other words, I want the SL or TP of my first order to be at the same point with the rest of the transactions
Please help me explain this to EA
-
https://fxdreema.com/shared/jcXzCHZ3b
I will send you the link as it is, although it can be said that all the ways I went and my thoughts are still on my work page and it is very busy. -
salam...hadafet afzayesh hajme??? vaghti moamele aval tp ya sl bokhore 2ta moamele badi ham baste shan???
-
@saeidkm salam lotfan pv payam bedid
-
If you change this to 1, when the first trade is opened it records the price level as a variable as you have done. Each trade opened by your grid afterwards should be the same SL price.

but you would need to remove these or adjust these somehow as they would change the SL price level every time a trade opens.

-
Thank you I will try it then I inform you the result

-
@Ipod
Hi, I did what you said, but still multiple sl & tp are placed at different prices, while I want all extra trades to be closed at the same time as the first trade.But with what you suggested, this will not happen
-
Hello, I solved my problem
I am very grateful for the support of those who answered my question even though their solution did not work
-
@Elham no problem, glad you have solved the problem
