![]() |
Trading System API
3.0
Library for Simulating and Deploying Trading and Investment Strategies
|
Functor for calculating Stochastic indicator over a given period. More...
#include <TSAFunctors.h>
Inherits tsa::functor::parent< T >.
Public Member Functions | |
const parent & | operator() (const series< double > &hi, const series< double > &lo, const series< double > &cl, size_t period, size_t k_smooth_period=3, size_t d_smooth_period=3) |
Functor for calculating Stochastic indicator over a given period.
const parent< double > & tsa::functor::stochastic::operator() | ( | const series< double > & | hi, |
const series< double > & | lo, | ||
const series< double > & | cl, | ||
size_t | period, | ||
size_t | k_smooth_period = 3 , |
||
size_t | d_smooth_period = 3 |
||
) |
Returns the components of the Stochastic Indicator as a tuple.
hi | series of highs |
lo | Series of lows |
cl | Series of closes |
period | Indicator period |
k_smooth_period | fast smooting |