I want the EA to show the consecutive losses
-
Hello
I want my EA to always shows the maximum number of consecutive losses in a row, and updates on every new closed trade.
Example: after 5 trades, E.A has 4 consecutive losses: it displays 4, it makes a profit on the next trade, then 6 trades after it makes 5 consecutive losses: since 5 is greater than 4: the display changes to 5
Can you show me how to do it? I am having big troubles with the logic.
-
You can try this: http://prntscr.com/7mw89j
But because statistics calculations will be turned on, the EA will become slower for backtest. And by the way I'm not sure how correct the value will be. And the value is also global, it does not care what is the magic number of trades. -
cant believe I never saw that. Thanks. I will try it. 