Regression Relative Strength
Author: The_Viper
Creation Date: 3/23/2014 11:30 AM
profile picture

The_Viper

#1
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)?
profile picture

Cone

#2
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.
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).