The indicators are the same indicator for different versions that show the incorrect behavior. The indicators both use the RSI as the input data series. The problem in NT8 is that is gives chart values instead of RSI indicator values. The RSI is supposed to return values between 0 and 100 but that isn't what NT8 shows. Instead, it plots what looks like something similar to the RSI but with chart values. NT7 shows the values correctly.
I attached two screen shots of an indicator with basically the same code. The first is the output when plotted in NT8 and the second is the output when plotted in NT7. The NT7 version plots correctly and the NT8 version does not.
Here is the NT7 output. As you can see, the RSI values that are output correctly. Those are not chart values in the y-axis like you see in the NT8 version.
Steps to reproduce:
1. Load TestIndicatorV8 on an 8 range NQ chart.
a) Before clicking OK to load the indicator, change the data series input to the RSI. It doesn't matter what parameters you use but you need to remember them so you can apply the same parameters to the real RSI chart.
2. Load the RSI on a chart with the same parameters you used for when you loaded the RSI as the input data series for TestIndicatorV8.
3. I put Print statements in the code so load an Output window.
Notice the charts are very similar but not exactly the same. Also notice, the values for the RSI the indicator plots are actually the chart values, not the indicator values. The fact that the charts are not exactly the same is why the divergence indicator give incorrect results. It shows divergence when there really isn't and vice versa.
Now do exactly the same in NT7 using the same steps to reproduce. I attached the CS files for both. Notice how the charts in the indicator panels are exactly the same. Also notice the values the indicator plots are the actual values for the RSI.
It looks to me like Closes is returning the incorrect values for the underlying data series, which in this case is the RSI(14,3) plotted on an NQ 8-range.
Can you suggest a way to reproduce the NT8 output just like we have in NT7?
TestIndicatorDataV8.cs
TestIndicatorV7.cs
The following image shows why it's a problem:
Comment