cpp_Stochastic: C++ Stochastic class

Description Arguments Details Usage Public Members and Methods See Also

Description

C++ class documentation

Arguments

InputType

Tick or double

n

indicator period

nFast

fast smooth

nSlow

slow smooth

Details

R function stochastic.

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
GetHistory() List return values history data.table with columns k_fast, d_fast, d_slow

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


QuantTools documentation built on Oct. 23, 2020, 7:54 p.m.