I created a simple condition
if ( profittarget >=500)
return;
this should stop trading if profit target for the day is above or equal to 500.
While backtesting, I reached this profit target of 500 on day 1 of my historical data, so it completely stopped backtesting data of next days...
Hence I felt the need to reset this 'return' at the start of next day's electronic market open. I'm talking about Crude Oil futures. Please inform how to do that.

Comment