I've been experimenting with a custom indicator I found on the site a while back called "SpreadZScore". Please see attached code.
Here is the problem I'm seeing and how it can be replicated: Load this indicator onto a 5 minute chart with say, 10 days of data. Take note of the last printed value of the indicator. Now modify the chart's data series to show 20 days of data. Look at the last printed indicator value again... it will be different than what you saw on the 10 day chart.
I believe there is a problem with the way the DataSeries is set up, but I can't figure out how to correct this.
Thanks in advance for any assistance with this. I see some great potential in this indicator but need to know it shows consistent values regardless of the size of the chart.
Fred
Comment