@nanasophia I would use this counter and write a variable so that each minus order placed will be compare to the profits counter in the past/history. This way you can set a condition for the expert to stop taking orders and too basket how much profits according to your preference.
https://fxdreema.com/shared/nztn88sxe
Which indicators are you using because it looks you get good results... I am struggling to get a good strategy with a bastard martingale I am using at the moment. It seems it always fail in the end
N