Difference between LinearRegSlope .Series and .Value
Author: redliontrader
Creation Date: 9/9/2008 7:05 PM
profile picture

redliontrader

#1
I have the following code snippet where I want to find the 23 period lookback LinearRegSlope of the lastbar on the chart. If I generate a series and ask for the lastbar I get a different result than asking to calculate the value for the lastbar on the chart.

What am I doing wrong? Shouldn't both LRSlope and LRSeries[Bars.Count-1] calculate the the same value?

CODE:
Please log in to see this code.
profile picture

Eugene

#2
It's a bug. Thanks for the heads up.
profile picture

redliontrader

#3
Any idea which is giving me the correct answer? I suspect that the .Series is correct, but I don't want to do the math by hand :)
profile picture

Eugene

#4
Yes, the .Series is OK and the .Value is broken.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).