logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
garykong  
#1 Posted : Tuesday, August 2, 2005 11:41:17 AM(UTC)
garykong

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 4/30/2005(UTC)
Posts: 112

Hi there, Can anyone give me the Keltner Channel formula for 20, 20, 1.5? I don't know why my MS doesn't has the formula... Gary
wabbit  
#2 Posted : Tuesday, August 2, 2005 12:30:13 PM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location:: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
Try this.... {Keltner Bands} {edited - Thanks IR} prd1:= Input("EMA Periods",1,100,20); prd2:= Input("ATR Periods",1,100,20); multiplier:= Input("ATR Multiplier",1,10,1.5); x:=Input("Data: 1-O 2-H 3-L 4-C 5-MP 6-Typ",1,6,4); x:=If(x=1,O,If(x=2,H,If(x=3,L,If(x=4,C,If(x=5,MP(),Typical()))))); AV:= Mov(x,prd1,e); UL:= AV+ATR(prd2)*multiplier; LL:= AV-ATR(prd2)*multiplier; AV;UL;LL; See also : http://www.chartfilter.com/reports/c19.htm wabbit :D
investorretired  
#3 Posted : Tuesday, August 2, 2005 2:43:54 PM(UTC)
investorretired

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 6/13/2005(UTC)
Posts: 52

I have a question on your Indicator formula. Are the UL and LL formulas correct? I tried it and I got an error message. Maybe it's me.
wabbit  
#4 Posted : Tuesday, August 2, 2005 2:49:32 PM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location:: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
...fixed
Jose  
#5 Posted : Wednesday, August 3, 2005 7:43:09 AM(UTC)
Jose

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 1/19/2005(UTC)
Posts: 1,065
Location: Koh Pha-Ngan, Earth

Was thanked: 2 time(s) in 2 post(s)
Also take a look at this MS indicator code if you like: [code:1:aa8466de0c] ========================= Keltner & Bollinger Bands ========================= ---8<--------------------------- { ©Copyright 2004~2005 Jose Silva } { For personal use only } { http://www.metastocktools.com } { User inputs } pds:=Input("Keltner/Bollinger Bands periods", 1,252,20); spread:=Input("Keltner Bands % spread", 0,1000,100)/100; dev:=Input("Bollinger Bands deviation", .001,10,1.5); plot:=Input("[1]Keltner, [2]Bollinger, [3]Keltner+Bollinger",1,3,1); { Keltner bands } KBmid:=Mov(Typ(),pds,S); KBtop:=KBmid+Mov(H-L,pds,S); KBtopDiff:=(KBtop-KBmid)*spread; KBtop:=KBmid+KBtopDiff; KBbot:=KBmid-Mov(H-L,pds,S); KBbotDiff:=(KBbot-KBmid)*spread; KBbot:=KBmid+KBbotDiff; KBwidth:=KBtop-KBbot; KBwidthAvg:=Cum(KBwidth)/Cum(KBwidth>-1); { Bollinger bands } BBtop:=BBandTop(C,pds,S,dev); BBmid:=Mov(C,pds,S); BBbot:=BBandBot(C,pds,S,dev); { Plot on price chart } If(plot=1,KBtop,BBtop); If(plot=1,KBmid,If(plot=2,BBmid,KBtop)); If(plot=1,KBbot,BBbot); If(plot=1,KBbot,If(plot=2,BBbot,KBbot)) ---8<--------------------------- [/code:1:aa8466de0c] jose '-) http://www.metastocktools.com .
garykong  
#6 Posted : Wednesday, August 3, 2005 8:40:11 AM(UTC)
garykong

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 4/30/2005(UTC)
Posts: 112

Hi Jose and Wabbit, I notice that there are two difference in your formulae:- EXPONENTIAL VS. SIMPLE: -- Wabbit: AV:= Mov(x,prd1,e); Jose:- KBmid:=Mov(Typ(),pds,S); AND MOV(H-C) VS ATR():---- Jose: KBtop:=KBmid+Mov(H-L,pds,S); Wabbit: UL:= AV+ATR(prd2)*multiplier; Are the two formulae correct knowing that there are only a minor difference? Besides, with reference to http://www.chartfilter.com/reports/c19.htm it seems to be that it is exactly as Wabbit's version. Is this the "original" version of Keltner Bands?? Regards, Gary :?:
Jose  
#7 Posted : Wednesday, August 3, 2005 9:32:49 AM(UTC)
Jose

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 1/19/2005(UTC)
Posts: 1,065
Location: Koh Pha-Ngan, Earth

Was thanked: 2 time(s) in 2 post(s)
From http://www.trading-naked...20Manual_C25_213-224.pdf :
Quote:
The (Keltner) bands are created by employing a moving average of each bar’s volatility from high to low, and then multiplying that moving average by a constant number to adjust the band distances from the moving average line.
I'm no expert on Keltner bands, but it is my understanding that they are derived as per the explanation above. In any case, plot both variations on a chart, and use the one that looks/works best for you. jose '-) http://metastocktools.com/#metastock .
wabbit  
#8 Posted : Wednesday, August 3, 2005 10:56:57 AM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location:: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
One of the problems with some of these 'named' systems/indicators is that over time they get 'customised' by users and re-promulgated, often with the same name. Eventually, it becomes very difficult to find the original indicator. This could be one of these cases. Take my interpretation, and Jose's interpretation, add them together, customise the product to your liking, test it, manipulate it some more, then name it the JoKongBit Indicator (Jose, GaryKong & Wabbit)!! It's what these indicator 'authors' do anyway! wabbit :D P.S. Remember to post your version of the code
Users browsing this topic
Guest (Hidden)
Similar Topics
Enhanced System Tester combining Keltner Channels and CCI (Formula Assistance)
by Staggie 3/1/2010 7:20:33 AM(UTC)
Keltner Channels on 2 day chart exploration (Formula Assistance)
by dino74 1/9/2007 4:22:23 AM(UTC)
King Keltner Channels Expert (Formula Assistance)
by henry1224 9/5/2005 2:02:49 AM(UTC)
Keltner Channels (Formula Assistance)
by Patrick 8/19/2005 4:21:30 PM(UTC)
Keltner Channels (Formula Assistance)
by Talarico 2/4/2005 1:39:29 AM(UTC)
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.