Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Full Stochastic
The Stochastic indicator built into TC2000 is a Full Stochastic, but it can be used to reproduce both a Fast Stochastic and a Slow 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.
A Slow Stochastic can be reproduced using a Full Stochastic by setting the Period or %K of the Slow Stochastic to the Period setting of the Full Stochastic and setting the %K to 3. The %D setting would match that of the Slow Stochastic.
Template (simple)
%K
Function Version (v17+, price)
STOC(p, k, z)
Indicator Version (price)
STOCp.k.z
General Version (v17+)
100 * AVG((w - MIN(w, p)) / (MAX(w, p) - MIN(w, p)), k)
%D
Function Version (v17+, price)
AVG(STOC(p, k, z), d)
Indicator Version (price)
AVG(STOCp.k.z, d}
General Version (v17+)
100 * AVG(AVG((w - MIN(w, p)) / (MAX(w, p) - MIN(w, p)), k), d)
Where w can be any formula which returns a numeric value.
Where p is the period of the stochastic.
Where k is the period of the %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 versions which avoid the use of the built in simple moving average.
%K
AVG(STOCp.1.z, k)
%D (v17+)
AVG(AVG(STOCp.1.z, k), 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
|