Return value of the Stochastic oscillator %K line over N periods of the selected price serie.
Syntax:
|
Stochastic[N,K](price1,price2,price3) |
Calculation :
The first parameter is the number of days used to calculate %K, the second is the number of days to be considered for the moving average of %K (generally 1 for Fast Stochastic and 3 or 5 for Slow Stochastic), the third is the number of days to be considered for the moving average of %D.
“price1”, “price2” and “price3” are optional. By default the stochastic will be calculated with Close on the High/Low scale (same as the internal platform indicator). But you can adjust it with any other price or data series (e.g. Stochastic[N,K](close,close,close) or Stochastic[N,K](var1,var2,var3) )
(more…)