Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Fast Stochastic
The Stochastic indicator built into TC2000 is a Full Stochastic, not a Fast Stochastic, but it can be used to reproduce a Fast Stochastic.
A Fast Stochastic can be reproduced using a Full Stochastic by setting the Period or %K of the Fast Stochastic to the Period setting of the Full Stochastic and setting the %K to 1. The %D setting would match that of the Fast Stochastic.
Template (simple)
%K
Function Version (v17+, price)
STOC(k, 1, z)
Indicator Version (price)
STOCk.1.z
General Version (v17+)
100 * ((w - MIN(w, k)) / (MAX(w, k) - MIN(w, k))
%D
Function Version (v17+, price)
STOC(k, d, z)
Indicator Version (price)
STOCk.d.z
General Version (v17+)
100 * AVG((w - MIN(w, k)) / (MAX(w, k) - MIN(w, k)), d)
Where w can be any formula which returns a numeric value.
Where k is the period of the stochastic or %K.
Where d is the period of the %D.
Where z is the number of Bars Ago. z can also be a date in the indicator version. May 4, 2015 would be (single quotes required): '05/04/2015'
The Average Type is assumed to be Simple. If you want to change this, it is best to use the generalized version or one of the following version of the %D which avoids the use of the built in simple moving average.
%D
AVG(STOCk.1.z, d)
Change AVG to FAVG for a Front Weighted Average Type.
Change AVG to HAVG for a Hull Average Type.
Change AVG to XAVG for an Exponential Average Type.
Related Topics
-Bruce Personal Criteria Formulas TC2000 Support Articles
|