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 |

Pring's KST formulas revisited Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
Glassmoons
Posted : Monday, August 28, 2006 5:36:15 AM
Registered User
Joined: 12/16/2004
Posts: 9
I have been trying to set PCFs for Pring's KST system without much success. I have viewed the discussion threads already posted on KST but I don't think they are accurate. I copied and pasted the formulas posted by Bruce under the thread "Prin's KST Indicator" (see: Pring's KST indicator). The Daily KST given in the thread is:

((C/C10 +C1/C11 +C2/C12 +C3/C13 +C4/C14 +C5/C15 +C6/C16 +C7/C17 +C8/C18 +C9/C19)*30 +(C/C15 +C1/C16 +C2/C17 +C3/C18 +C4/C19 +C5/C20 +C6/C21 +C7/C22 +C8/C23 +C9/C24)*60 +(C/C20 +C1/C21 +C2/C22 +C3/C23 +C4/C24 +C5/C25 +C6/C26 +C7/C27 +C8/C28 +C9/C29)*90 +(C/C30 +C1/C31 +C2/C32 +C3/C33 +C4/C34 +C5/C35 +C6/C36 +C7/C37 +C8/C38 +C9/C39 +C10/C40 +C11/C41 +C12/C42 +C13/C43 +C14/C44)*80)/3-1000

When I plot this formula on a chart of say, IYR, it doesn't match up with the chart from Pring's website (URL removed by Moderator). For instance, the indicator lags the May ག price bottom by at least 5 trading days but on Pring's Daily KST page it shows up as a coincident indicator. I have had similar problems with the intermediate and long term indicators.

In the above formula, I don't understand why each ROC series calculated in each set of parentheses is not divided by 10, 10, 10, and 15, respectively. I also don't understand why they are multiplied by 30, 60, 90, and 80, respectively, instead of being multiplied by a weighting factor of 1, 2, 3, and 4, respectively. Nor do I understand why the whole quantity is divided by three and then decreased by 1000. If you can explain this to me I'd greatly appreciate it.

Ultimately, I'd like to have the formulas for all of Pring's KST time periods, both SMA and EMA, as well at formulas for KST moving averages. Any help getting there would be greatly appreciated!

The MetaStock formulas I am looking to replicate in TC Platinum are:

Daily KST Simple Moving Average
(Mov(Roc(C,10,%),10,S)*1) + (Mov(Roc(C,15,%),10,S)*2) + (Mov(Roc(C,20,%),10,S)*3) + (Mov(Roc(C,30,%),15,S)*4)

Long-term Monthly KST Simple Moving Average
(Mov(Roc(C,9,%),6,S)*1) + (Mov(Roc(C,12,%),6,S)*2) + (Mov(Roc(C,18,%),6,S)*3) + (Mov(Roc(C,24,%),9,S)*4)

Intermediate KST Simple Moving Average
(Mov(Roc(C,10,%),10,S)*1) + (Mov(Roc(C,13,%),13,S)*2) + (Mov(Roc(C,15,%),15,S)*3) + (Mov(Roc(C,20,%),20,S)*4)

Intermediate KST Exponential Moving Average
(Mov(Roc(C,10,%),10,E)*1) + (Mov(Roc(C,13,%),13,E)*2) + (Mov(Roc(C,15,%),15,E)*3) + (Mov(Roc(C,20,%),20,E)*4)

Long-term KST Exponential Moving Average
(Mov(Roc(C,39,%),26,E)*1) + (Mov(Roc(C,52,%),26,E)*2) + (Mov(Roc(C,78,%),26,E)*3) + (Mov(Roc(C,109,%),39,E)*4)

Short-term KST Weekly Exponential Moving Average
(Mov(Roc(C,3,%),3, E)*1) + (Mov(Roc(C,4,%),4, E)*2) + (Mov(Roc(C,6,%),6, E)*3) + (Mov(Roc(C,10,%),8, E)*4)

5-Minute Bar Short-term KST
(Mov(ROC(C,6,%),10,S)*1)+(Mov(ROC(C,10,%),10,S)*2)+(Mov(ROC(C,15,%),8,S)*3)+(Mov(ROC(C,20,%),15,S)*4)

5-Minute Bar Long-term KST
(Mov(ROC(C,60,%),30,S)*1)+(Mov(ROC(C,90,%),40,S)*2)+(Mov(ROC(C,120,%),60,S)*3)+(Mov(ROC(C,200,%),100,S)*4)

10/15-Minute Bar Short-term KST
(Mov(ROC(C,10,%),10,S)*1)+(Mov(ROC(C,15,%),10,S)*2)+(Mov(ROC(C,20,%),10,S)*3)+(Mov(ROC(C,30,%),15,S)*4)

10/15-Minute Bar Long-term KST
(Mov(ROC(C,30,%),15,S)*1)+(Mov(ROC(C,45,%),20,S)*2)+(Mov(ROC(C,60,%),30,S)*3)+(Mov(ROC(C,90,%),45,S)*4)

Short-term Tick KST
(Mov(ROC(C,12,%),10,S)*1)+(Mov(ROC(C,20,%),10,S)*2)+(Mov(ROC(C,30,%),8,S)*3)+(Mov(ROC(C,40,%),15,S)*4)
Bruce_L
Posted : Monday, August 28, 2006 1:47:58 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
QUOTE (Glassmoons)
When I plot this formula on a chart of say, IYR, it doesn't match up with the chart from Pring's website. For instance, the indicator lags the May ? price bottom by at least 5 trading days but on Pring's Daily KST page it shows up as a coincident indicator. I have had similar problems with the intermediate and long term indicators.

Daily KST Charting has a Short Term KST with a Moving Average Child Indicator. Weekly KST Charting has Short Term KST, Intermediate KST and Long Term KST, all with Moving Average Child Indicators. The charts do not indicate the settings beyond the label and I have no way of knowing for sure what settings have been used. My impression from looking at the charts is that all of the KST Indicators use Exponential Smoothing, but this would not correspond with the formulas provided for MetaStock. The provided formulas do not include settings for Moving Average Child Indicators.

It is also possible that I just have all of the indicators wrong. I'm not a MetaStock Trainer and don't have a copy of the software. My assumption is that Mov(Roc(C,10,%),10,S) is the 10-Period Simple Moving Average of the 10-Period Price Percent Change, but if it isn't, I have no way of knowing and no method of determining what adjustments would be necessary.

QUOTE (Glassmoons)
In the above formula, I don't understand why each ROC series calculated in each set of parentheses is not divided by 10, 10, 10, and 15, respectively. I also don't understand why they are multiplied by 30, 60, 90, and 80, respectively, instead of being multiplied by a weighting factor of 1, 2, 3, and 4, respectively. Nor do I understand why the whole quantity is divided by three and then decreased by 1000. If you can explain this to me I'd greatly appreciate it.

The following formula is one way to write a 10-Period Price Percent Change using TeleChart's Personal Criteria Formula Language:

100 * C / C10 - 100

Here's one (long, but obvious) way to write the 10-Period Simple Moving Average of this formula:

(100 * C / C10 - 100 + 100 * C1 / C11 - 100 + 100 * C2 / C12 - 100 + 100 * C3 / C13 - 100 + 100 * C4 / C14 - 100 + 100 * C5 / C15 - 100 + 100 * C6 / C16 - 100 + 100 * C7 / C17 - 100 + 100 * C8 / C18 - 100 + 100 * C9 / C19 - 100) / 10

But we can combine all of the -100s:

(100 * C / C10 + 100 * C1 / C11 + 100 * C2 / C12 + 100 * C3 / C13 + 100 * C4 / C14 + 100 * C5 / C15 + 100 * C6 / C16 + 100 * C7 / C17 + 100 * C8 / C18 + 100 * C9 / C19 - 1000) / 10

And 100*s can be combined as well by adding some parentheses:

((C / C10 + C1 / C11 + C2 / C12 + C3 / C13 + C4 / C14 + C5 / C15 + C6 / C16 + C7 / C17 + C8 / C18 + C9 / C19) * 100 - 1000) / 10

And 100 and 1000 are both divisible by 10:

(C / C10 + C1 / C11 + C2 / C12 + C3 / C13 + C4 / C14 + C5 / C15 + C6 / C16 + C7 / C17 + C8 / C18 + C9 / C19) * 10 - 100

Similar things can be done with the next two components:

2 * ((C / C15 + C1 / C16 + C2 / C17 + C3 / C18 + C4 / C19 + C5 / C20 + C6 / C21 + C7 / C22 + C8 / C23 + C9 / C24) * 10 - 100)

3 * ((C / C20 + C1 / C21 + C2 / C22 + C3 / C23 + C4 / C24 + C5 / C25 + C6 / C26 + C7 / C27 + C8 / C28 + C9 / C29) * 10 - 100)

But 100 / 15 doesn't work out quite as well as 100 / 10, so it has a slightly different form:

4 * ((C / C30 + C1 / C31 + C2 / C32 + C3 / C33 + C4 / C34 + C5 / C35 + C6 / C36 + C7 / C37 + C8 / C38 + C9 / C39 + C10 / C40 + C11 / C41 + C12 / C42 + C13 / C43 + C14 / C44) * 20 / 3 - 100)

At this point we can take out the - 100 at the end of each formula and move it to the end:

(1 + 2 + 3 + 4) * ( - 100) = - 1000

So we get:

(C / C10 + C1 / C11 + C2 / C12 + C3 / C13 + C4 / C14 + C5 / C15 + C6 / C16 + C7 / C17 + C8 / C18 + C9 / C19) * 10 + 2 * ((C / C15 + C1 / C16 + C2 / C17 + C3 / C18 + C4 / C19 + C5 / C20 + C6 / C21 + C7 / C22 + C8 / C23 + C9 / C24) * 10) + 3 * ((C / C20 + C1 / C21 + C2 / C22 + C3 / C23 + C4 / C24 + C5 / C25 + C6 / C26 + C7 / C27 + C8 / C28 + C9 / C29) * 10) + 4 * ((C / C30 + C1 / C31 + C2 / C32 + C3 / C33 + C4 / C34 + C5 / C35 + C6 / C36 + C7 / C37 + C8 / C38 + C9 / C39 + C10 / C40 + C11 / C41 + C12 / C42 + C13 / C43 + C14 / C44) * 20 / 3) - 1000

Multiplying the coefficients for the four sections results in:

(C / C10 + C1 / C11 + C2 / C12 + C3 / C13 + C4 / C14 + C5 / C15 + C6 / C16 + C7 / C17 + C8 / C18 + C9 / C19) * 10 + (C / C15 + C1 / C16 + C2 / C17 + C3 / C18 + C4 / C19 + C5 / C20 + C6 / C21 + C7 / C22 + C8 / C23 + C9 / C24) * 20 + (C / C20 + C1 / C21 + C2 / C22 + C3 / C23 + C4 / C24 + C5 / C25 + C6 / C26 + C7 / C27 + C8 / C28 + C9 / C29) * 30 + (C / C30 + C1 / C31 + C2 / C32 + C3 / C33 + C4 / C34 + C5 / C35 + C6 / C36 + C7 / C37 + C8 / C38 + C9 / C39 + C10 / C40 + C11 / C41 + C12 / C42 + C13 / C43 + C14 / C44) * 80 / 3 - 1000

I also multiplied and divided everything before the - 1000 by 3 just so they would have the same denominator. This results in a slightly longer formula in this case, but has shortened others and I do it to be consistent:

((C / C10 + C1 / C11 + C2 / C12 + C3 / C13 + C4 / C14 + C5 / C15 + C6 / C16 + C7 / C17 + C8 / C18 + C9 / C19) * 30 + (C / C15 + C1 / C16 + C2 / C17 + C3 / C18 + C4 / C19 + C5 / C20 + C6 / C21 + C7 / C22 + C8 / C23 + C9 / C24) * 60 + (C / C20 + C1 / C21 + C2 / C22 + C3 / C23 + C4 / C24 + C5 / C25 + C6 / C26 + C7 / C27 + C8 / C28 + C9 / C29) * 90 + (C / C30 + C1 / C31 + C2 / C32 + C3 / C33 + C4 / C34 + C5 / C35 + C6 / C36 + C7 / C37 + C8 / C38 + C9 / C39 + C10 / C40 + C11 / C41 + C12 / C42 + C13 / C43 + C14 / C44) * 80) / 3 - 1000

QUOTE (Glassmoons)
Ultimately, I'd like to have the formulas for all of Pring's KST time periods, both SMA and EMA, as well at formulas for KST moving averages. Any help getting there would be greatly appreciated!

I've added the Exponential formulas to Pring's KST indicator. The bolded titles are TeleChart versions of the provided MetaStock formulas. I've also provided both Simple and Exponential versions of each of the Moving Average and Price Percent Change combinations. No title is provided if no MetaStock formula was provided for that type of Moving Average. The Long Term Exponential KST formulas are too long to be practical as Custom Indicators and this has been noted in the appropriate posts in the original topic.

As indicated earlier, no formulas or settings have been provided for the Moving Average Child Indicators, but you can just add a Moving Average as a Child Indicator to the chart if KST is plotted as a Custom Indicator.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Glassmoons
Posted : Thursday, August 31, 2006 2:37:42 PM
Registered User
Joined: 12/16/2004
Posts: 9
Thanks Bruc, I appreciate you walking me through the steps, and thanks for adding the EMAs to the list.
Bruce_L
Posted : Thursday, August 31, 2006 3:04:53 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
You're welcome.

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