Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

cpp_Stochastic

C++ Stochastic class


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


QuantTools

Enhanced Quantitative Trading Modelling

v0.5.7.1
GPL-3
Authors
Stanislav Kovalevsky
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.