New version 17 available now


Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Stochastic Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
Bruce_L
Posted : Wednesday, March 15, 2017 3:25:48 PM


Worden Trainer

Joined: 10/7/2004
Posts: 59,297

Stochastic

This topic primarily documents the syntax of the stochastic function and indicator built into the Personal Criteria Formula Language. This syntax can be used for creating the Full Stochastic (what is used by TC2000), the Fast Stochastic, the Slow Stochastic, and Williams Percent Range (%R). How to write formulas for these indicators is actually covered in specific articles about each indicator.

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

Function Version (v17+)

STOC(x, y, z)

Indicator Version

STOCx.y.z

General Version (v17+)

100 * AVG((w - MIN(w, x)) / (MAX(w, x) - MIN(w, x)), y)

Where w can be any formula which returns a numeric value.
Where x is the Period of the Indicator
Where y is a the Period of an additional Simple Moving Average
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'

Related Topics



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.