Profit > last x previous losing trades.
-
How can i make the expert advisor to close all of the current trades if the current profit is above lets say the total amount of the last 10 losing trades?
-
Those last 10 losing trades are consecutive, or the last known losing trades, even if they are 2 months old? Because I feel that you would not like it if you are searching for the last known losing trades... well, depends on what is the chance to have losing trades.
-
@fxDreema the last 10 trades since the expert advisor was added

Tried something when the profit is above gross lost + 10 pips then close all trades.
Seems to work well in backtesting but not in live, because i think it is looking at the total loss on the account and that is quite huge . So have to filter it to if the profit is above gross lost of the day then close.
But i dont know how to do that either