Hedge trade
-
I want my EA to crate hedge trade with thesame lots size with the running trade,
take for example.( trade 1 sell 0.01, 2 sell 0.01, 3 sell 0.03). all equals 0.05 lots, on sell.
then trend change according to the condition I set, I want the EA to place buy trade with lots sizes Equivalent to the sum of all sell trade which is 0.05 -
@luckybest Hi, I think what's in this link will show you haw you can achieve this link text You can add to your existing project but you will probably need some more conditions. Hope this helps
-
@luckybest How many trades are supposed to be included in that overall lot size? All open trades right now?
-
@l-andorrà all open trade
-
@luckybest Then the easiest option is storing them all into a single variable below a separated 'For each trade' block like this:

-

here is the graphical illustration of that I want
thanks -
@l-andorrà Thanks , I will try it.
-
@luckybest can you please share your project