[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EquisMetaStock Group] Re: Keltner



PureBytes Links

Trading Reference Links




Thank's a lot.

Works Great

Martin




--- In equismetastock@xxxxxxxxxxxxxxx, "Jose Silva" 
<josesilva22@xxxx> wrote:
> 
> Adapted from http://www.metastocktools.com/#metastock :
> 
> =========================
> 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,150);
> spread:=Input("Keltner Bands % spread",
>  0,1000,400)/100;
> dev:=Input("Bollinger Bands deviation",
>  .001,10,1);
> 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<---------------------------
> 
> 
> jose '-)
> http://www.metastocktools.com
> 
> 
> 
> 
> --- In equismetastock@xxxxxxxxxxxxxxx, "mrtnhrtly" 
<m.hartley@xxxx> 
> wrote:
> > 
> > 
> > Hello,
> > 
> > I need a keltner Channel set up to 150 length and 400% width,
> > 
> > I have tried all the indicator searches, can anyone please help
> > 
> > Ta,
> > 
> > Martin








------------------------ Yahoo! Groups Sponsor --------------------~--> 
Has someone you know been affected by illness or disease?
Network for Good is THE place to support health awareness efforts!
http://us.click.yahoo.com/Rcy2bD/UOnJAA/cosFAA/BefplB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/equismetastock/

<*> To unsubscribe from this group, send an email to:
    equismetastock-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/