How can I make the strategy to stop trading when a certain profit is hit and then reset it the next day without having to disable it
I tried the following but this does not seem to work.
double MyNetProfit = SystemPerformance.AllTrades.TradesPerformance.NetP rofit ;
if (MyNetProfit >= MaxProfitHit) return;
if (Bars.IsFirstBarOfSession) MyNetProfit = 0;
Thanks
Comment