Steps to replicate:
- Close NT down out of market hours
- Open NT and load strategy on chart
- Enable strategy
- When market opens, strategy is not functioning
- Disable/enable strategy (or reload historical data on chart) when market is open, strategy starts functioning
This is a snippet of the start of my code which is the only thing I can see that could be stalling the strategy logic:
protected override void OnBarUpdate() { Print(ToTime(Time[0])+" strategyName: Running"); if(CurrentBars[0] < 60) return; if(CurrentBars[1] < 4) return; strategy logic here }
Comment