Learn R Programming

QuantTools (version 0.5.3)

RollLinReg: c++ Rolling Linear Regression class

Description

c++ class documentation

Arguments

n
indicator period

Usage

RollLinReg( int n )

Public Members and Methods

Name
Return Type Description
Add( InputType value ) void
update indicator Reset()
void reset to initial state
IsFormed() bool
is indicator value valid? GetAlphaHistory()
std::vector< double > return alpha history
GetBetaHistory() std::vector< double >
return beta history GetRHistory()
std::vector< double > return r history
GetRSquaredHistory() std::vector< double >
return r squared history GetValue()
LinRegCoeffs has members double alpha, beta, r, rSquared

Details

R functions roll_lm.

See Also

Other c++ classes: BBands, Candle, Cost, Crossover, Ema, Indicator, Order, Processor, RollPercentRank, RollRange, RollSd, RollVolumeProfile, Rsi, Sma, Stochastic, Tick

Other c++ indicators: BBands, Crossover, Ema, Indicator, RollPercentRank, RollRange, RollSd, RollVolumeProfile, Rsi, Sma, Stochastic