Initialize()
Add(Period.Type.Day, 1) // this ruins everything, other timeframe minutes
OnBarUpdate()
if (BarsInProgress == 1 ) do something; return:
if (Historical) return;
if ( signalcondition which happens some time ago ) // like one hour earlier
EnterLong(); // or some other position, this will be entered when strategy is enabled !!!!???? although should not.
How to avoid that, this will run on backtest Ok but when enabled as a live strategy the order entry is entered, no effect with "sync account position" property.
NT7, RC1
Comment