I was testing a strategy in real-time using Market Replay. I had no issues applying the strategy, running playback, observing, stopping playback, making modifications to strategy code, resetting the playback time (moving the slider, which resets the strategy as well), and continuing to test.
However, at some point along the way, it got out of whack. Now every time I enable the strategy, it immediately shows as being in a position, even before starting the market replay. The Playback101 account has no positions in it, nothing in the DOM, Sync status in the strategy pane also shows true.
I have tried the following with no success:
- reverting code to a state where it worked perfectly before
- saving strategy as a different name, re-compiling, and applying to chart
- deleting the market replay data and re-downloading (using a few different days also)
- removing the strategy from the chart, and also making sure it was removed from the main strategy pane, then adding it back
- deleting the cache folder from the Documents > Ninja Trader 8 > db directory (saw this mentioned in another post, so thought I would try it)
- Close the workspace I was in, and attempting in another workspace
- used a completely different strategy (built with strategy builder), and it started with a position as well (same symptoms)
- Restart NT8
- Update NT8 (from 8.0.26 to 8.0.26.1)
It doesn't make much sense to me why it was working fine before, and now it won't work at all. Perhaps there is some other cache causing the problem, but I really don't know. Very frustrating indeed. Any help would be much appreciated.
-Chris
Comment