I’ve the following in my code
IF StrategyProfit<-300 then
QUIT
ENDIF
As I understand it, and as I’ve read in the description, the system shall QUIT once the StrategyProfit is down, in my case, 300 of that instrument’s currency. It would calculate the Profit – Loss and when -300 then QUIT.
This system just quit and got the message it quit because of QUIT command. But my profit isn’t down 300 it’s “just” down 82.
Have I misunderstood how its calculated?
Is it calculated from its highest point, ie when drawdown is -300 it quits?
attached from Detailed Report
Hmm, saw now that I probably posted in the wrong forum section, sorry for that. Let me know if I should re-post
Could you GRAPH STRATEGYPROFIT please? I moved your topic in the good section, dont worry.
Thanks Nicolas
This happened on a script that was running in Demo mode, how would I use GRAPH on a “running” script?
Dunno if it helps or would be comparable but here are the graphs from detailed report
Ok, I wasn’t sure it happened during live trading with ProOrder. But is it possible now to backtest the same period and see what happen please? Are you using MTF ?
Your code is correct, the strategy should QUIT if the overall achieved profit is under -300$.