So, I added several data series in the OnStateChange() method's Configure conditional. Everything looked good but then I noticed that one of the securities in question had a recent 1 to 10 stock split. Since the kinetick free data is not adjustable for splits, I tried to fix the problem by going to my instruments and adding a stock split on the instrument in question with a factor of 10 on the specific date.
When I returned to my charts, I realized that it was not working at all, so I decided to delete the entire historical database of prices for this ticker and adjust the prices manually on a semi-colon separated spreadsheet. I basically took all the prices prior to the split date and divided them by 10. This seemed to fix all the prices so it didn't look like there was a 90% drop on the split date, so I re-imported the prices back using the historical data manager.
Now, all the prices look good in the Historical Data manager, but when I run my charts with my custom indicator, the prices used by my indicator's AddDataSeries seem to come from a cache and still show the old prices. Interestingly enough, if I run a chart of the security itself without any indicators, the prices appear correctly.
I have since removed the split entry (since the data is already manually adjusted), and I've cleared the NT8 cache directory, shut down and restarted NT8 and my computer several times, and recreated the chart from scratch, but it still shows the old prices with the 90% drop!
I even recreated my indicator with a new name and the prices are still the old prices.
This is most definitely a bug in NT8. I am guessing that prices added through AddDataSeries not only cache, but might also be caching the split entry that I had added, and then later removed.
Can someone please help me? I will be happy to supply the code, or even a remote session if necessary.
Thank you very much in advance.
Here are some screenshots:
Comment