Regression Relative Strength measured over various numbers of market days representing 1 month. RRS is an annualized growth rate calculated from the slope of the log of the prices over the respective time period.
LinearReg.Value(bar, Close, 21 ) ?
Relative Strength Index, a momentum oscillator derived from recent gains compared to recent losses with values ranging from 0 to 100.
RSI.Series(bar, Close, 14) ? If so, how can one obtain the value, like using the not allowed RSI.Value(bar, Close, 14)?
Size:
Color:
QUOTE:
...how can one obtain the value, like using the not allowed RSI.Value(bar, Close, 14)?
The Value method isn't available for RSI because it is not valid for infinite impulse response (IIR) indicators (like RSI). Remember, the Value method is used to get an instantaneous result (new calculation) from an indicator without calculating the entire series or accessing the values from the Bars indicator cache.
The long story short... this is how you do it:
CODE:
Please log in to see this code.
Re: RRS
I think this code represents what you said;
CODE:
Please log in to see this code.
Size:
Color: