Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
jimlou6,
The most useful indicators and functions in TeleChart's Personal Criteria Formula Language for producing Stochastics formulas are:
STOCx.y.z -> Simple Stochastic
AVG(w,x) -> Simple Moving Average
XAVG(w,x) -> Exponential moving Average
Where w is the Number or Indicator to which a Function is applied.
- w cannot be a formula or function for AVG(), XAVG()
Where x is the Period of the Indicator or Function.
Where y is a the Period of an additional Simple Moving Average.
Where z is the number of Periods Ago.
- z can also be a date. May 3, 2007 would be (single quotes required): '05/03/07'
The arguments in indicators are separated by periods while the arguments in functions are separated by commas.
You already noticed that the formula you wrote matched a charted Simple Stochastic. Since a Simple and Exponential Stochastic use different types of Moving Averages, they aren't going to be the same, meaning the same formula will not represent both types of Stochastics. The fact that the XAVG() function cannot take a formula or function as an argument means at least one of the Exponential Moving Averages will need to be expanded if the periods are the same (and in this case, they are both 10).
Exponential Stochastic 21,10,10 SK xUp SD:
XAVG(STOC21,10) > .181980276277401 * (XAVG(STOC21.1.0,10) + 9 / 11 * (XAVG(STOC21.1.1,10) + 9 / 11 * (XAVG(STOC21.1.2,10) + 9 / 11 * (XAVG(STOC21.1.3,10) + 9 / 11 * (XAVG(STOC21.1.4,10) + 9 / 11 * (XAVG(STOC21.1.5,10) + 9 / 11 * (XAVG(STOC21.1.6,10) + 9 / 11 * (XAVG(STOC21.1.7,10) + 9 / 11 * (XAVG(STOC21.1.8,10) + 9 / 11 * (XAVG(STOC21.1.9,10) + 9 / 11 * (XAVG(STOC21.1.10,10) + 9 / 11 * (XAVG(STOC21.1.11,10) + 9 / 11 * (XAVG(STOC21.1.12,10) + 9 / 11 * (XAVG(STOC21.1.13,10) + 9 / 11 * (XAVG(STOC21.1.14,10) + 9 / 11 * (XAVG(STOC21.1.15,10) + 9 / 11 * (XAVG(STOC21.1.16,10) + 9 / 11 * (XAVG(STOC21.1.17,10) + 9 / 11 * (XAVG(STOC21.1.18,10) + 9 / 11 * (XAVG(STOC21.1.19,10) + 9 / 11 * (XAVG(STOC21.1.20,10) + 9 / 11 * (XAVG(STOC21.1.21,10) + 9 / 11 * (XAVG(STOC21.1.22,10) + 9 / 11 * (XAVG(STOC21.1.23,10) + 9 / 11 * (XAVG(STOC21.1.24,10) + 9 / 11 * (XAVG(STOC21.1.25,10) + 9 / 11 * (XAVG(STOC21.1.26,10) + 9 / 11 * (XAVG(STOC21.1.27,10) + 9 / 11 * (XAVG(STOC21.1.28,10) + 9 / 11 * (XAVG(STOC21.1.29,10) + 9 / 11 * (XAVG(STOC21.1.30,10) + 9 / 11 * (XAVG(STOC21.1.31,10) + 9 / 11 * (XAVG(STOC21.1.32,10) + 9 / 11 * (XAVG(STOC21.1.33,10) + 9 / 11 * (XAVG(STOC21.1.34,10)))))))))))))))))))))))))))))))))))) AND XAVG(STOC21.1.1,10) <= .181980276277401 * (XAVG(STOC21.1.1,10) + 9 / 11 * (XAVG(STOC21.1.2,10) + 9 / 11 * (XAVG(STOC21.1.3,10) + 9 / 11 * (XAVG(STOC21.1.4,10) + 9 / 11 * (XAVG(STOC21.1.5,10) + 9 / 11 * (XAVG(STOC21.1.6,10) + 9 / 11 * (XAVG(STOC21.1.7,10) + 9 / 11 * (XAVG(STOC21.1.8,10) + 9 / 11 * (XAVG(STOC21.1.9,10) + 9 / 11 * (XAVG(STOC21.1.10,10) + 9 / 11 * (XAVG(STOC21.1.11,10) + 9 / 11 * (XAVG(STOC21.1.12,10) + 9 / 11 * (XAVG(STOC21.1.13,10) + 9 / 11 * (XAVG(STOC21.1.14,10) + 9 / 11 * (XAVG(STOC21.1.15,10) + 9 / 11 * (XAVG(STOC21.1.16,10) + 9 / 11 * (XAVG(STOC21.1.17,10) + 9 / 11 * (XAVG(STOC21.1.18,10) + 9 / 11 * (XAVG(STOC21.1.19,10) + 9 / 11 * (XAVG(STOC21.1.20,10) + 9 / 11 * (XAVG(STOC21.1.21,10) + 9 / 11 * (XAVG(STOC21.1.22,10) + 9 / 11 * (XAVG(STOC21.1.23,10) + 9 / 11 * (XAVG(STOC21.1.24,10) + 9 / 11 * (XAVG(STOC21.1.25,10) + 9 / 11 * (XAVG(STOC21.1.26,10) + 9 / 11 * (XAVG(STOC21.1.27,10) + 9 / 11 * (XAVG(STOC21.1.28,10) + 9 / 11 * (XAVG(STOC21.1.29,10) + 9 / 11 * (XAVG(STOC21.1.30,10) + 9 / 11 * (XAVG(STOC21.1.31,10) + 9 / 11 * (XAVG(STOC21.1.32,10) + 9 / 11 * (XAVG(STOC21.1.33,10) + 9 / 11 * (XAVG(STOC21.1.34,10) + 9 / 11 * (XAVG(STOC21.1.35,10))))))))))))))))))))))))))))))))))))
Exponential Stochastic 21,10,10 SK xDn SD:
XAVG(STOC21,10) < .181980276277401 * (XAVG(STOC21.1.0,10) + 9 / 11 * (XAVG(STOC21.1.1,10) + 9 / 11 * (XAVG(STOC21.1.2,10) + 9 / 11 * (XAVG(STOC21.1.3,10) + 9 / 11 * (XAVG(STOC21.1.4,10) + 9 / 11 * (XAVG(STOC21.1.5,10) + 9 / 11 * (XAVG(STOC21.1.6,10) + 9 / 11 * (XAVG(STOC21.1.7,10) + 9 / 11 * (XAVG(STOC21.1.8,10) + 9 / 11 * (XAVG(STOC21.1.9,10) + 9 / 11 * (XAVG(STOC21.1.10,10) + 9 / 11 * (XAVG(STOC21.1.11,10) + 9 / 11 * (XAVG(STOC21.1.12,10) + 9 / 11 * (XAVG(STOC21.1.13,10) + 9 / 11 * (XAVG(STOC21.1.14,10) + 9 / 11 * (XAVG(STOC21.1.15,10) + 9 / 11 * (XAVG(STOC21.1.16,10) + 9 / 11 * (XAVG(STOC21.1.17,10) + 9 / 11 * (XAVG(STOC21.1.18,10) + 9 / 11 * (XAVG(STOC21.1.19,10) + 9 / 11 * (XAVG(STOC21.1.20,10) + 9 / 11 * (XAVG(STOC21.1.21,10) + 9 / 11 * (XAVG(STOC21.1.22,10) + 9 / 11 * (XAVG(STOC21.1.23,10) + 9 / 11 * (XAVG(STOC21.1.24,10) + 9 / 11 * (XAVG(STOC21.1.25,10) + 9 / 11 * (XAVG(STOC21.1.26,10) + 9 / 11 * (XAVG(STOC21.1.27,10) + 9 / 11 * (XAVG(STOC21.1.28,10) + 9 / 11 * (XAVG(STOC21.1.29,10) + 9 / 11 * (XAVG(STOC21.1.30,10) + 9 / 11 * (XAVG(STOC21.1.31,10) + 9 / 11 * (XAVG(STOC21.1.32,10) + 9 / 11 * (XAVG(STOC21.1.33,10) + 9 / 11 * (XAVG(STOC21.1.34,10)))))))))))))))))))))))))))))))))))) AND XAVG(STOC21.1.1,10) >= .181980276277401 * (XAVG(STOC21.1.1,10) + 9 / 11 * (XAVG(STOC21.1.2,10) + 9 / 11 * (XAVG(STOC21.1.3,10) + 9 / 11 * (XAVG(STOC21.1.4,10) + 9 / 11 * (XAVG(STOC21.1.5,10) + 9 / 11 * (XAVG(STOC21.1.6,10) + 9 / 11 * (XAVG(STOC21.1.7,10) + 9 / 11 * (XAVG(STOC21.1.8,10) + 9 / 11 * (XAVG(STOC21.1.9,10) + 9 / 11 * (XAVG(STOC21.1.10,10) + 9 / 11 * (XAVG(STOC21.1.11,10) + 9 / 11 * (XAVG(STOC21.1.12,10) + 9 / 11 * (XAVG(STOC21.1.13,10) + 9 / 11 * (XAVG(STOC21.1.14,10) + 9 / 11 * (XAVG(STOC21.1.15,10) + 9 / 11 * (XAVG(STOC21.1.16,10) + 9 / 11 * (XAVG(STOC21.1.17,10) + 9 / 11 * (XAVG(STOC21.1.18,10) + 9 / 11 * (XAVG(STOC21.1.19,10) + 9 / 11 * (XAVG(STOC21.1.20,10) + 9 / 11 * (XAVG(STOC21.1.21,10) + 9 / 11 * (XAVG(STOC21.1.22,10) + 9 / 11 * (XAVG(STOC21.1.23,10) + 9 / 11 * (XAVG(STOC21.1.24,10) + 9 / 11 * (XAVG(STOC21.1.25,10) + 9 / 11 * (XAVG(STOC21.1.26,10) + 9 / 11 * (XAVG(STOC21.1.27,10) + 9 / 11 * (XAVG(STOC21.1.28,10) + 9 / 11 * (XAVG(STOC21.1.29,10) + 9 / 11 * (XAVG(STOC21.1.30,10) + 9 / 11 * (XAVG(STOC21.1.31,10) + 9 / 11 * (XAVG(STOC21.1.32,10) + 9 / 11 * (XAVG(STOC21.1.33,10) + 9 / 11 * (XAVG(STOC21.1.34,10) + 9 / 11 * (XAVG(STOC21.1.35,10))))))))))))))))))))))))))))))))))))
Exponential Stochastic 21,10,10 SK crossing SD (either direction):
SGN(XAVG(STOC21,10) - .181980276277401 * (XAVG(STOC21.1.0,10) + 9 / 11 * (XAVG(STOC21.1.1,10) + 9 / 11 * (XAVG(STOC21.1.2,10) + 9 / 11 * (XAVG(STOC21.1.3,10) + 9 / 11 * (XAVG(STOC21.1.4,10) + 9 / 11 * (XAVG(STOC21.1.5,10) + 9 / 11 * (XAVG(STOC21.1.6,10) + 9 / 11 * (XAVG(STOC21.1.7,10) + 9 / 11 * (XAVG(STOC21.1.8,10) + 9 / 11 * (XAVG(STOC21.1.9,10) + 9 / 11 * (XAVG(STOC21.1.10,10) + 9 / 11 * (XAVG(STOC21.1.11,10) + 9 / 11 * (XAVG(STOC21.1.12,10) + 9 / 11 * (XAVG(STOC21.1.13,10) + 9 / 11 * (XAVG(STOC21.1.14,10) + 9 / 11 * (XAVG(STOC21.1.15,10) + 9 / 11 * (XAVG(STOC21.1.16,10) + 9 / 11 * (XAVG(STOC21.1.17,10) + 9 / 11 * (XAVG(STOC21.1.18,10) + 9 / 11 * (XAVG(STOC21.1.19,10) + 9 / 11 * (XAVG(STOC21.1.20,10) + 9 / 11 * (XAVG(STOC21.1.21,10) + 9 / 11 * (XAVG(STOC21.1.22,10) + 9 / 11 * (XAVG(STOC21.1.23,10) + 9 / 11 * (XAVG(STOC21.1.24,10) + 9 / 11 * (XAVG(STOC21.1.25,10) + 9 / 11 * (XAVG(STOC21.1.26,10) + 9 / 11 * (XAVG(STOC21.1.27,10) + 9 / 11 * (XAVG(STOC21.1.28,10) + 9 / 11 * (XAVG(STOC21.1.29,10) + 9 / 11 * (XAVG(STOC21.1.30,10) + 9 / 11 * (XAVG(STOC21.1.31,10) + 9 / 11 * (XAVG(STOC21.1.32,10) + 9 / 11 * (XAVG(STOC21.1.33,10) + 9 / 11 * (XAVG(STOC21.1.34,10))))))))))))))))))))))))))))))))))))) <> SGN(XAVG(STOC21.1.1,10) - .181980276277401 * (XAVG(STOC21.1.1,10) + 9 / 11 * (XAVG(STOC21.1.2,10) + 9 / 11 * (XAVG(STOC21.1.3,10) + 9 / 11 * (XAVG(STOC21.1.4,10) + 9 / 11 * (XAVG(STOC21.1.5,10) + 9 / 11 * (XAVG(STOC21.1.6,10) + 9 / 11 * (XAVG(STOC21.1.7,10) + 9 / 11 * (XAVG(STOC21.1.8,10) + 9 / 11 * (XAVG(STOC21.1.9,10) + 9 / 11 * (XAVG(STOC21.1.10,10) + 9 / 11 * (XAVG(STOC21.1.11,10) + 9 / 11 * (XAVG(STOC21.1.12,10) + 9 / 11 * (XAVG(STOC21.1.13,10) + 9 / 11 * (XAVG(STOC21.1.14,10) + 9 / 11 * (XAVG(STOC21.1.15,10) + 9 / 11 * (XAVG(STOC21.1.16,10) + 9 / 11 * (XAVG(STOC21.1.17,10) + 9 / 11 * (XAVG(STOC21.1.18,10) + 9 / 11 * (XAVG(STOC21.1.19,10) + 9 / 11 * (XAVG(STOC21.1.20,10) + 9 / 11 * (XAVG(STOC21.1.21,10) + 9 / 11 * (XAVG(STOC21.1.22,10) + 9 / 11 * (XAVG(STOC21.1.23,10) + 9 / 11 * (XAVG(STOC21.1.24,10) + 9 / 11 * (XAVG(STOC21.1.25,10) + 9 / 11 * (XAVG(STOC21.1.26,10) + 9 / 11 * (XAVG(STOC21.1.27,10) + 9 / 11 * (XAVG(STOC21.1.28,10) + 9 / 11 * (XAVG(STOC21.1.29,10) + 9 / 11 * (XAVG(STOC21.1.30,10) + 9 / 11 * (XAVG(STOC21.1.31,10) + 9 / 11 * (XAVG(STOC21.1.32,10) + 9 / 11 * (XAVG(STOC21.1.33,10) + 9 / 11 * (XAVG(STOC21.1.34,10) + 9 / 11 * (XAVG(STOC21.1.35,10)))))))))))))))))))))))))))))))))))))
You may wish to review the following:
Cascades of Moving Averages
-Bruce Personal Criteria Formulas TC2000 Support Articles
|