I've developed a strategy that I've been working with for quite a while and everything has worked as expect on non-market replay charts and in the strategy analyzer.
The issue is that when I run my strategy in Market Playback, the strategy plots (mostly OHLC type lines) show momentarily then go away, however the strategy does execute trades and stays enabled. Similarly, if I right-click the playback chart and choose "Reload NinjaScript" all the strategy plots will momentarily flash on the screen and then immediately go away, but trades will continue to execute and the strategy still stays enabled. If that isn't quirky enough, as I'm writing this I've discovered that enabling a built-in NT8 strategy, such as 'Sample MA Crossover' not only displays correctly itself, but also somehow forces my custom strategy's plots to show up!
I suppose that's a workaround of sorts, but ideally I would be able to have my strategy's plots show correctly without needing to enable another strategy to do it. I've tried several different tweaks to various settings (onBarClose vs OnPriceChange and 'Bars required to trade') and so far I haven't found anything to fix this behavior. Thank you for any assistance in getting the strategy to display properly in Market Playback.
Comment