Closing problem with hedging positions
-
Hi, I have been using fxdreem for a while now. I'm doing an EA based on YT to learn how to use it.
I came across an EA that involves hedging each position along with the grid.
I wanted to change the logic of closing positions. I would like that when Profit (account) = x $, I would like to close all positions.Situation as below, with $10 profit, positions were about to close

Anyone know which piece of code I should pay attention to?

Link to EA -> https://fxdreema.com/shared/PEKNQJA8
Thx for help !
-
You do not need an if position block because there must be running trades to have a value, try using >= instead of == in case logic misses the exact microseconds prices match
-
@jstap it's work ! thank you

-
.......
