StrategyProfit negative Then QUIT, how its calculated
Forums › ProRealTime English forum › ProOrder support › StrategyProfit negative Then QUIT, how its calculated
- This topic has 5 replies, 2 voices, and was last updated 4 years ago by
Nicolas.
-
-
04/29/2021 at 12:47 PM #168381
I’ve the following in my code
123IF StrategyProfit<-300 thenQUITENDIFAs 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
04/29/2021 at 1:05 PM #168385Hmm, saw now that I probably posted in the wrong forum section, sorry for that. Let me know if I should re-post
04/29/2021 at 1:38 PM #16839004/29/2021 at 1:43 PM #168392Thanks Nicolas
This happened on a script that was running in Demo mode, how would I use GRAPH on a “running” script?
04/29/2021 at 1:52 PM #168393Dunno if it helps or would be comparable but here are the graphs from detailed report
04/30/2021 at 7:54 AM #168433Ok, 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$.
-
AuthorPosts
