Learn R Programming

QuantTools (version 0.5.7.1)

Stochastic: C++ Stochastic class

Description

C++ class documentation

Arguments

InputType

Tick or double

n

indicator period

nFast

fast smooth

nSlow

slow smooth

Usage

Stochastic< InputType >( int n, int nFast, int nSlow )

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?
GetValue() StochasticValue has members double kFast, dFast, dSlow
GetKFastnHistory() std::vector< double > return k fast history
GetDFastHistory() std::vector< double > return d fast history
GetDSlowHistory() std::vector< double > return d slow history

Details

R function stochastic.

See Also

Other C++ indicators: BBands, Crossover, Ema, Indicator, RollLinReg, RollPercentRank, RollRange, RollSd, RollVolumeProfile, Rsi, Sma

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