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


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Stochastics of O, H or L? Is is possible? Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
traderlees
Posted : Sunday, May 17, 2009 6:27:11 PM
Registered User
Joined: 1/28/2008
Posts: 7
Support,
    I know about the STOC function (based on CLOSE), but is there a way to find the stochastics of a different value, such as the Pivot, (H+L+C)/3?  Thanks.

Lee
Bruce_L
Posted : Monday, May 18, 2009 9:08:03 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
Is there a way? Yes. Is it practical? Maybe.

If you wanted to find the raw Stochastic of the Open, it would just be a matter of using the MIN() and MAX() functions on the Open (the following is a 10-Period Stochastic):

Understanding Stochastics
PCF Formula Descriptions

100 * (O - MIN(O,10)) / (MAX(O, 10) - MIN(O, 10) + .0000001)

The MIN() and MAX() functions do not work on formulas or other functions however, so things would get a lot more complicated when attempting to do the same for a Pivot Point (the following is a 8-Period Stochastic):

Min Max PCFs

100 * (O + H + L - (O + H + L + O1 + H1 + L1 - ABS(O + H + L - O1 - H1 - L1) + O2 + H2 + L2 + O3 + H3 + L3 - ABS(O2 + H2 + L2 - O3 - H3 - L3) - ABS(O + H + L + O1 + H1 + L1 - ABS(O + H + L - O1 - H1 - L1) - O2 - H2 - L2 - O3 - H3 - L3 + ABS(O2 + H2 + L2 - O3 - H3 - L3)) + O4 + H4 + L4 + O5 + H5 + L5 - ABS(O4 + H4 + L4 - O5 - H5 - L5) + O6 + H6 + L6 + O7 + H7 + L7 - ABS(O6 + H6 + L6 - O7 - H7 - L7) - ABS(O4 + H4 + L4 + O5 + H5 + L5 - ABS(O4 + H4 + L4 - O5 - H5 - L5) - O6 - H6 - L6 - O7 - H7 - L7 + ABS(O6 + H6 + L6 - O7 - H7 - L7)) - ABS(O + H + L + O1 + H1 + L1 - ABS(O + H + L - O1 - H1 - L1) + O2 + H2 + L2 + O3 + H3 + L3 - ABS(O2 + H2 + L2 - O3 - H3 - L3) - ABS(O + H + L + O1 + H1 + L1 - ABS(O + H + L - O1 - H1 - L1) - O2 - H2 - L2 - O3 - H3 - L3 + ABS(O2 + H2 + L2 - O3 - H3 - L3)) - O4 - H4 - L4 - O5 - H5 - L5 + ABS(O4 + H4 + L4 - O5 - H5 - L5) - O6 - H6 - L6 - O7 - H7 - L7 + ABS(O6 + H6 + L6 - O7 - H7 - L7) + ABS(O4 + H4 + L4 + O5 + H5 + L5 - ABS(O4 + H4 + L4 - O5 - H5 - L5) - O6 - H6 - L6 - O7 - H7 - L7 + ABS(O6 + H6 + L6 - O7 - H7 - L7)))) / 8) / ((O + H + L + O1 + H1 + L1 + ABS(O + H + L - O1 - H1 - L1) + O2 + H2 + L2 + O3 + H3 + L3 + ABS(O2 + H2 + L2 - O3 - H3 - L3) + ABS(O + H + L + O1 + H1 + L1 + ABS(O + H + L - O1 - H1 - L1) - O2 - H2 - L2 - O3 - H3 - L3 - ABS(O2 + H2 + L2 - O3 - H3 - L3)) + O4 + H4 + L4 + O5 + H5 + L5 + ABS(O4 + H4 + L4 - O5 - H5 - L5) + O6 + H6 + L6 + O7 + H7 + L7 + ABS(O6 + H6 + L6 - O7 - H7 - L7) + ABS(O4 + H4 + L4 + O5 + H5 + L5 + ABS(O4 + H4 + L4 - O5 - H5 - L5) - O6 - H6 - L6 - O7 - H7 - L7 - ABS(O6 + H6 + L6 - O7 - H7 - L7)) + ABS(O + H + L + O1 + H1 + L1 + ABS(O + H + L - O1 - H1 - L1) + O2 + H2 + L2 + O3 + H3 + L3 + ABS(O2 + H2 + L2 - O3 - H3 - L3) + ABS(O + H + L + O1 + H1 + L1 + ABS(O + H + L - O1 - H1 - L1) - O2 - H2 - L2 - O3 - H3 - L3 - ABS(O2 + H2 + L2 - O3 - H3 - L3)) - O4 - H4 - L4 - O5 - H5 - L5 - ABS(O4 + H4 + L4 - O5 - H5 - L5) - O6 - H6 - L6 - O7 - H7 - L7 - ABS(O6 + H6 + L6 - O7 - H7 - L7) - ABS(O4 + H4 + L4 + O5 + H5 + L5 + ABS(O4 + H4 + L4 - O5 - H5 - L5) - O6 - H6 - L6 - O7 - H7 - L7 - ABS(O6 + H6 + L6 - O7 - H7 - L7)))) / 8 - (O + H + L + O1 + H1 + L1 - ABS(O + H + L - O1 - H1 - L1) + O2 + H2 + L2 + O3 + H3 + L3 - ABS(O2 + H2 + L2 - O3 - H3 - L3) - ABS(O + H + L + O1 + H1 + L1 - ABS(O + H + L - O1 - H1 - L1) - O2 - H2 - L2 - O3 - H3 - L3 + ABS(O2 + H2 + L2 - O3 - H3 - L3)) + O4 + H4 + L4 + O5 + H5 + L5 - ABS(O4 + H4 + L4 - O5 - H5 - L5) + O6 + H6 + L6 + O7 + H7 + L7 - ABS(O6 + H6 + L6 - O7 - H7 - L7) - ABS(O4 + H4 + L4 + O5 + H5 + L5 - ABS(O4 + H4 + L4 - O5 - H5 - L5) - O6 - H6 - L6 - O7 - H7 - L7 + ABS(O6 + H6 + L6 - O7 - H7 - L7)) - ABS(O + H + L + O1 + H1 + L1 - ABS(O + H + L - O1 - H1 - L1) + O2 + H2 + L2 + O3 + H3 + L3 - ABS(O2 + H2 + L2 - O3 - H3 - L3) - ABS(O + H + L + O1 + H1 + L1 - ABS(O + H + L - O1 - H1 - L1) - O2 - H2 - L2 - O3 - H3 - L3 + ABS(O2 + H2 + L2 - O3 - H3 - L3)) - O4 - H4 - L4 - O5 - H5 - L5 + ABS(O4 + H4 + L4 - O5 - H5 - L5) - O6 - H6 - L6 - O7 - H7 - L7 + ABS(O6 + H6 + L6 - O7 - H7 - L7) + ABS(O4 + H4 + L4 + O5 + H5 + L5 - ABS(O4 + H4 + L4 - O5 - H5 - L5) - O6 - H6 - L6 - O7 - H7 - L7 + ABS(O6 + H6 + L6 - O7 - H7 - L7)))) / 8 + .0000001)

You may wish to review the following:

How to create a Personal Criteria Forumula (PCF)
Plotting Custom Indicators with Examples
Handy PCF example formulas to help you learn the syntax of PCFs!

-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.