I've programmed the center line to function properly however its the outer lines that I'm having an issue with. In order for me to properly plot them I need a way to read the line value X bars ago.
For example: I have a linRegChan that spans 50 bars. The line is then plotted in the center as it should. I want to be able to read the value of that line at any given point.
I originally created an array to store the previous values, but this will not work because the line value changes with each bar and thus will not be the same value that is seen visually.
Basically, I have a line that's drawn over 50 bars. I have access to the most current lines value, Is there a function to get the value the line passes over X bars ago?
Comment