For some reason ninja is not accessing every bar on the chart. I am using ninja 7. The code I was working on when ninja started this problem is identical to the code in the "@Stochastics.cs" file in the custom indicators folder.
I noticed it when my indicator was returning null for some values in the K plot. I had the indicator dump the values to the output window and it showed some values of CurrentBar are being skipped. As long as the bars on the chart do not change, the exact same values are skipped when I re-apply the indicator. If I connect to my broker and update the chart, it skips completely different bars.
It doesn't seem to matter what the bars are doing (moving up vs moving down), or what size they are. In addition, all bars report correct values in the Data Box, and on the skipped bars, the indicator reports "N/A" for the K value. I have tried it on different charts and it still skips seemingly random bars.
I am attaching a pic of a chart this is happening on, and a pic of the relevant data dump from the output window.
Comment