I have created an oscillator that is to check 5 timeframes and return a 1 if all 5 timeframes are either overbought or oversold. I am using the Stochastic RSI to make that determination.
The indicator plots on the chart, but appears to not be giving accurate information.
So far I have:
- confirmed all timeframes are represented in the AddDataSeries()
- ensured all overbought/oversold values are accurate
- ensured all bool values are returned back to false
- ensured correct </> operators were used.
At this point, I do not see what would be causing the incorrect plots. I am attaching the full code as well as a screenshot of the weekly AUDCAD chart showing 3 examples of incorrect plots.
Could you help me with looking to see if there is something wrong in my logic. I have debugged as far as what I can figure out up to this point.
Comment