How to check profit of last opened trade (not yet closed)
-
I have multiple pending orders and some gets triggered. My exit condition is, when the last trade that gets opened is profiting a certain amount of pips, that should close all trades.
I know how to close all trades, but how to calculate the profit of ONLY the last opened trade (which is still open)
-

-
@fxdreema
Thanks, That Worked -
@fxdreema hi fxdreema,
check profit is good work but i want close last 3 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.50 so i want close is last three trade 4,5,6 -
@hiten7405 Then substitute that '1' by a '3'.
-
thanks for the reply
but this is not worked -
@hiten7405 You alreadu opened another thread for this same question. Please don't duplicate threads.