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

Notification

Icon
Error

Options
Go to last post Go to first unread
klkoo  
#1 Posted : Sunday, June 18, 2006 5:57:46 AM(UTC)
klkoo

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/21/2005(UTC)
Posts: 16

What is the Metastock fomula for the Tradestation formula for Keltner Band (20,2)?
wabbit  
#2 Posted : Sunday, June 18, 2006 6:22:52 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)
Without wanting to start an argument about the exact definition of these Bands... of which there appears to many, here is one version: --8<------------------------------------- {Simple Keltner Bands} len:= Input("Length",2,100,10); MA:=Mov((H+L+C)/3, len, S); x:=Mov((H-L), len,S); MA+x; {UpperKeltner Band} MA; {Moving Average} MA-x; {LowerKeltner Band} --8<------------------------------------- and here's another... --8<------------------------------------- {Variable Keltner Bands} 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; --8<------------------------------------- I am sure there are plenty more out there too! Hope these help. wabbit :D
wabbit  
#3 Posted : Sunday, June 18, 2006 6:33:34 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)
You can even mix them up! --8<------------------------------------- {More Variable Keltner Bands} len:= Input("Length",2,100,10); multiplier:= Input("Multiplier",1,10,1.5); MA:=Mov((H+L+C)/3, len, S); x:=Mov((H-L), len,S); MA+(x*multiplier); {UpperKeltner Band} MA; {Moving Average} MA-(x*multiplier); {LowerKeltner Band} --8<------------------------------------- wabbit :D
henry1224  
#4 Posted : Sunday, June 18, 2006 11:12:31 PM(UTC)
henry1224

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 10/29/2004(UTC)
Posts: 1,394
Location: Glastonbury, CT

Was thanked: 2 time(s) in 2 post(s)
This indicator will allow you to plot the indicator from a higher time frame onto a lower time frame chart you will need the powerpivot Plus Add-on for this indicator to work x:=Input("Number of Periods", 2,500,21); Factor1:=Input("TFactor1", 0, 1000, 1); offset:=Input("Offset", 0, 1000, 0); HD:=ExtFml("PowerPivots.TDataCreate",1, factor1); LD:=ExtFml("PowerPivots.TDataCreate",2, factor1); CD:=ExtFml("PowerPivots.TDataCreate",3, factor1); A1:=Mov((HD+LD+CD)/3,x,S); A2:=Mov((HD+LD+CD)/3,x,S) + Mov((HD-LD),x,S); A3:=Mov((HD+LD+CD)/3,x,S) - Mov((HD-LD),x,S); A1:=ExtFml("PowerPivots.TDataLocalize", A1, factor1, offset); A2:=ExtFml("PowerPivots.TDataLocalize", A2, factor1, offset); A3:=ExtFml("PowerPivots.TDataLocalize", A3, factor1, offset); A1;A2;A3;
Users browsing this topic
Guest (Hidden)
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.