how to close is last three trade..
-
how to close is last three trade..
exa:-
1 - 0.01 sell @ 1800
2 - 0.02 sell @ 1802
3 - 0.03 sell @ 1804
4 - 0.04 sell @ 1805
5 - 0.05 sell @ 1806
6 - 0.01 buy @ 1807
now price is 1804 so i want close is last three trade 4,5,6 -
I think you need to assign group number for each trade.
-
thanks for replay,
but i not want assign group number....
i want if open seven trade,
last three trade average profit is a 1$, its three trade is close there and other four trade hold,
no matter three trade is buy or sell -
@hiten7405 But you need those last three orders every time or they can be different orders depending on each individual profit?
-
I want this method

-
Why don't you just make it close every time the total profit is $1?
-
@hiten7405 I don't close all trade, only first and last trade close,
Calculate last trade ( 2$ profit) - first trade ( 1$ loss) = 1$ profits so close both traders -
@hiten7405 With the pink for each trade block you can eliminate trade you want so you are only working on the trade you want.
-
Thanks for reply, but its not works

-
@hiten7405 You should completely separate both structures. Please notice that both are using the same 'check profit' block. And that number '1' is selecting one trade only, and not 3 as you requested.