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 |

Custom Dot over Candlestick for Stocastic Cross Topic Rating:
Previous Topic · Next Topic Watch this topic · Print this topic ·
cpolaritz
Posted : Tuesday, January 29, 2013 9:37:01 AM
Registered User
Joined: 12/30/2004
Posts: 123

I use the Worden Stocastics with default settings (12 %K3 %D5). I know that the Worden Stocastic is a proprietary item, but I would like to get a STOC cross that is close to the Worden version, and I would like to paint a dot over the candlestick when that cross occurs. I saw a discussion recently of how to simulate changing the color of candlesticks for inside bars and that got me thinking that it would be great if I could do something like that for the Worden Stocastic crosses. Is that possible?

In fact, I think it would be great if the development team would add a few conditional color selections for the candlestick based on a condition for each in the Edit for Price History, maybe in a future release.

Bruce_L
Posted : Tuesday, January 29, 2013 10:59:09 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

You need to be able to create a formula to be able use this technique. As the Worden Stochastic is a proprietary indicator, it is not possible to create a formula for this. That said, we might be able to approximate things to some extent.

For example you could try something similar to the following as the Formula in a Custom PCF Indicator using the Dot Plot Style for crossups:

H * ABS(SGN(4 * (SGN(C - C1) + SGN(C - C2) + SGN(C - C3) + SGN(C - C4) + SGN(C - C5) + SGN(C - C6) + SGN(C - C7) + SGN(C - C8) + SGN(C - C9) + SGN(C - C10) + SGN(C - C11)) + 3 * (SGN(C1 - C2) + SGN(C1 - C3) + SGN(C1 - C4) + SGN(C1 - C5) + SGN(C1 - C6) + SGN(C1 - C7) + SGN(C1 - C8) + SGN(C1 - C9) + SGN(C1 - C10) + SGN(C1 - C11) + SGN(C1 - C12)) + 2 * (SGN(C2 - C3) + SGN(C2 - C4) + SGN(C2 - C5) + SGN(C2 - C6) + SGN(C2 - C7) + SGN(C2 - C8) + SGN(C2 - C9) + SGN(C2 - C10) + SGN(C2 - C11) + SGN(C2 - C12) + SGN(C2 - C13)) - 3 * (SGN(C3 - C4) + SGN(C3 - C5) + SGN(C3 - C6) + SGN(C3 - C7) + SGN(C3 - C8) + SGN(C3 - C9) + SGN(C3 - C10) + SGN(C3 - C11) + SGN(C3 - C12) + SGN(C3 - C13) + SGN(C3 - C14)) - 3 * (SGN(C4 - C5) + SGN(C4 - C6) + SGN(C3 - C7) + SGN(C3 - C8) + SGN(C3 - C9) + SGN(C3 - C10) + SGN(C3 - C11) + SGN(C3 - C12) + SGN(C3 - C13) + SGN(C3 - C14) + SGN(C3 - C15)) - 2 * (SGN(C5 - C6) + SGN(C5 - C7) + SGN(C5 - C8) + SGN(C5 - C9) + SGN(C5 - C10) + SGN(C5 - C11) + SGN(C5 - C12) + SGN(C5 - C13) + SGN(C5 - C14) + SGN(C5 - C15) + SGN(C5 - C16)) - (SGN(C6 - C7) + SGN(C6 - C8) + SGN(C6 - C9) + SGN(C6 - C10) + SGN(C6 - C11) + SGN(C6 - C12) + SGN(C6 - C13) + SGN(C6 - C14) + SGN(C6 - C15) + SGN(C6 - C16) + SGN(C6 - C17))) > SGN(4 * (SGN(C1 - C2) + SGN(C1 - C3) + SGN(C1 - C4) + SGN(C1 - C5) + SGN(C1 - C6) + SGN(C1 - C7) + SGN(C1 - C8) + SGN(C1 - C9) + SGN(C1 - C10) + SGN(C1 - C11) + SGN(C1 - C12)) + 3 * (SGN(C2 - C3) + SGN(C2 - C4) + SGN(C2 - C5) + SGN(C2 - C6) + SGN(C2 - C7) + SGN(C2 - C8) + SGN(C2 - C9) + SGN(C2 - C10) + SGN(C2 - C11) + SGN(C2 - C12) + SGN(C2 - C13)) + 2 * (SGN(C3 - C4) + SGN(C3 - C5) + SGN(C3 - C6) + SGN(C3 - C7) + SGN(C3 - C8) + SGN(C3 - C9) + SGN(C3 - C10) + SGN(C3 - C11) + SGN(C3 - C12) + SGN(C3 - C13) + SGN(C3 - C14)) - 3 * (SGN(C4 - C5) + SGN(C4 - C6) + SGN(C3 - C7) + SGN(C3 - C8) + SGN(C3 - C9) + SGN(C3 - C10) + SGN(C3 - C11) + SGN(C3 - C12) + SGN(C3 - C13) + SGN(C3 - C14) + SGN(C3 - C15)) - 3 * (SGN(C5 - C6) + SGN(C5 - C7) + SGN(C5 - C8) + SGN(C5 - C9) + SGN(C5 - C10) + SGN(C5 - C11) + SGN(C5 - C12) + SGN(C5 - C13) + SGN(C5 - C14) + SGN(C5 - C15) + SGN(C5 - C16)) - 2 * (SGN(C6 - C7) + SGN(C6 - C8) + SGN(C6 - C9) + SGN(C6 - C10) + SGN(C6 - C11) + SGN(C6 - C12) + SGN(C6 - C13) + SGN(C6 - C14) + SGN(C6 - C15) + SGN(C6 - C16) + SGN(C6 - C17)) - (SGN(C7 - C8) + SGN(C7 - C9) + SGN(C7 - C10) + SGN(C7 - C11) + SGN(C7 - C12) + SGN(C7 - C13) + SGN(C7 - C14) + SGN(C7 - C15) + SGN(C7 - C16) + SGN(C7 - C17) + SGN(C7 - C18))))

And something similar to the following to check for crossdowns:

L * ABS(SGN(4 * (SGN(C - C1) + SGN(C - C2) + SGN(C - C3) + SGN(C - C4) + SGN(C - C5) + SGN(C - C6) + SGN(C - C7) + SGN(C - C8) + SGN(C - C9) + SGN(C - C10) + SGN(C - C11)) + 3 * (SGN(C1 - C2) + SGN(C1 - C3) + SGN(C1 - C4) + SGN(C1 - C5) + SGN(C1 - C6) + SGN(C1 - C7) + SGN(C1 - C8) + SGN(C1 - C9) + SGN(C1 - C10) + SGN(C1 - C11) + SGN(C1 - C12)) + 2 * (SGN(C2 - C3) + SGN(C2 - C4) + SGN(C2 - C5) + SGN(C2 - C6) + SGN(C2 - C7) + SGN(C2 - C8) + SGN(C2 - C9) + SGN(C2 - C10) + SGN(C2 - C11) + SGN(C2 - C12) + SGN(C2 - C13)) - 3 * (SGN(C3 - C4) + SGN(C3 - C5) + SGN(C3 - C6) + SGN(C3 - C7) + SGN(C3 - C8) + SGN(C3 - C9) + SGN(C3 - C10) + SGN(C3 - C11) + SGN(C3 - C12) + SGN(C3 - C13) + SGN(C3 - C14)) - 3 * (SGN(C4 - C5) + SGN(C4 - C6) + SGN(C3 - C7) + SGN(C3 - C8) + SGN(C3 - C9) + SGN(C3 - C10) + SGN(C3 - C11) + SGN(C3 - C12) + SGN(C3 - C13) + SGN(C3 - C14) + SGN(C3 - C15)) - 2 * (SGN(C5 - C6) + SGN(C5 - C7) + SGN(C5 - C8) + SGN(C5 - C9) + SGN(C5 - C10) + SGN(C5 - C11) + SGN(C5 - C12) + SGN(C5 - C13) + SGN(C5 - C14) + SGN(C5 - C15) + SGN(C5 - C16)) - (SGN(C6 - C7) + SGN(C6 - C8) + SGN(C6 - C9) + SGN(C6 - C10) + SGN(C6 - C11) + SGN(C6 - C12) + SGN(C6 - C13) + SGN(C6 - C14) + SGN(C6 - C15) + SGN(C6 - C16) + SGN(C6 - C17))) < SGN(4 * (SGN(C1 - C2) + SGN(C1 - C3) + SGN(C1 - C4) + SGN(C1 - C5) + SGN(C1 - C6) + SGN(C1 - C7) + SGN(C1 - C8) + SGN(C1 - C9) + SGN(C1 - C10) + SGN(C1 - C11) + SGN(C1 - C12)) + 3 * (SGN(C2 - C3) + SGN(C2 - C4) + SGN(C2 - C5) + SGN(C2 - C6) + SGN(C2 - C7) + SGN(C2 - C8) + SGN(C2 - C9) + SGN(C2 - C10) + SGN(C2 - C11) + SGN(C2 - C12) + SGN(C2 - C13)) + 2 * (SGN(C3 - C4) + SGN(C3 - C5) + SGN(C3 - C6) + SGN(C3 - C7) + SGN(C3 - C8) + SGN(C3 - C9) + SGN(C3 - C10) + SGN(C3 - C11) + SGN(C3 - C12) + SGN(C3 - C13) + SGN(C3 - C14)) - 3 * (SGN(C4 - C5) + SGN(C4 - C6) + SGN(C3 - C7) + SGN(C3 - C8) + SGN(C3 - C9) + SGN(C3 - C10) + SGN(C3 - C11) + SGN(C3 - C12) + SGN(C3 - C13) + SGN(C3 - C14) + SGN(C3 - C15)) - 3 * (SGN(C5 - C6) + SGN(C5 - C7) + SGN(C5 - C8) + SGN(C5 - C9) + SGN(C5 - C10) + SGN(C5 - C11) + SGN(C5 - C12) + SGN(C5 - C13) + SGN(C5 - C14) + SGN(C5 - C15) + SGN(C5 - C16)) - 2 * (SGN(C6 - C7) + SGN(C6 - C8) + SGN(C6 - C9) + SGN(C6 - C10) + SGN(C6 - C11) + SGN(C6 - C12) + SGN(C6 - C13) + SGN(C6 - C14) + SGN(C6 - C15) + SGN(C6 - C16) + SGN(C6 - C17)) - (SGN(C7 - C8) + SGN(C7 - C9) + SGN(C7 - C10) + SGN(C7 - C11) + SGN(C7 - C12) + SGN(C7 - C13) + SGN(C7 - C14) + SGN(C7 - C15) + SGN(C7 - C16) + SGN(C7 - C17) + SGN(C7 - C18))))

And the results might be close, but not exact. The dots may be off by a bar or two, appear when there isn't a cross or not appear when there is a cross. It is probably as close of an approximation as I will be able to provide however and should be better than just using Stochastics to try and duplicate a Worden Stochastic.

Thank you for your suggestion. It has been assigned case number 10057.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
cpolaritz
Posted : Tuesday, January 29, 2013 8:55:28 PM
Registered User
Joined: 12/30/2004
Posts: 123

Bruce,

This works pretty darn well. It makes a great uncluttering visual aid for following the Worden Stocastic crossovers. I tried to post a screen shot, but I got a rendering error. Thanks again for all your good work.

Anek
Posted : Sunday, February 3, 2013 11:15:43 PM
Registered User
Joined: 1/26/2012
Posts: 40

Good God look at that formula.

Talk about wasted cpu cycles.

Would infecciency be understatement of the year?

 

Bruce_L
Posted : Monday, February 4, 2013 8:36:34 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

The SGN() function is actually more computationally efficient than sort for creating percentile ranks.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
yurinc
Posted : Monday, November 11, 2013 1:49:41 PM
Registered User
Joined: 4/19/2013
Posts: 15
This is correct thanks 
 
days = 40 
% K = 5 
 %D = 10
 
could support me to develop the formula in simple stochastic exponential, very grateful
 
yurinc
Posted : Tuesday, November 12, 2013 9:44:56 AM
Registered User
Joined: 4/19/2013
Posts: 15
Good morning I would appreciate help with this formula. 
need to make a EasyScans when% K crossing% D with these values 
a simple stochastic in exponential. 
 
days = 40 
% K = 5 
 D = 10% 
  
I'll be grateful help me with this formula, thanks
StockGuy
Posted : Tuesday, November 12, 2013 10:15:01 AM

Administration

Joined: 9/30/2004
Posts: 9,187

In TC2000 version 12, add Stochastics to your chart and edit to set the period = 40, %K = 5 and %D = 10.

Cick on Stochastics and then select Create Scan Condition.  Set the condition to "Stochastics 40 % K 5 Crossing Up %D 10".

You can Save the condition to your Condition library or add it directly to a scan or to a watchlist as a sort.

Bruce_L
Posted : Tuesday, November 12, 2013 2:09:37 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

As StockGuy indicated, the best way to do this is by adding the indicator to you chart, adjust the settings as desired and then click on the indicator to select Create Scan Condition.

The long formula given above is designed for use with a Worden Stochastic. If you are interested in a standard stochastic instead of a Worden Stochastic, the formulas are more straighforward.

For example, a Condition Formula for a Simple Stochastic 40,5,10 %K crossing up through %D could be written as:

STOC40.5 > AVG(STOC40.5,10) AND STOC40.5.1 <= AVG(STOC40.5.1,10)

%K crossing down through %D reverses the > and < signs:

STOC40.5 < AVG(STOC40.5,10) AND STOC40.5.1 >= AVG(STOC40.5.1,10)

We could check for crossovers in either direction using the following (which cannot be done by using Create Scan Condition):

SGN(STOC40.5 - AVG(STOC40.5,10)) <> SGN(STOC40.5.1 - AVG(STOC40.5.1,10))

A Condition Formula for an Exponential Stochastic 40,5,10 %K crossing up through %D could be written as:

XAVG(STOC40,5) > XAVG(STOC40,10) AND XAVG(STOC40.1.1,5) <= XAVG(STOC40.1.1,10)

%K crossing down through %D reverses the > and < signs:

XAVG(STOC40,5) < XAVG(STOC40,10) AND XAVG(STOC40.1.1,5) >= XAVG(STOC40.1.1,10)

We could check for crossovers in either direction using the following (which cannot be done by using Create Scan Condition):

SGN(XAVG(STOC40,5) - XAVG(STOC40,10)) <> SGN(XAVG(STOC40.1.1,5) - XAVG(STOC40.1.1,10))

Understanding Stochastics
Cascades of Moving Averages



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