PandL = Performance.RealtimeTrades.TradesPerformance.Currency.CumProfit; if (PandL < -500) ProfitLossForDayReached = true;
That shuts down trading in any day if I lose more than $500 on that strategy. However, this doesn't work while back testing.
I've tried using AllTrades instead of RealtimeTrades, but then it shuts down the whole backtest when it loses more than $500.
Any ideas on how I can get something that will work during back testing (and hopefully live at the same time)?
Thanks
Comment