PureBytes Links
Trading Reference Links
|
You will find the Keltner channels at
http://www.amibroker.com/library/detail.php?id=43
with other related topics.
Select Logarithmic from IB settings, if you prefer.
DT
--- In amibroker@xxxxxxxxxxxxxxx, "dtfreak1025" <dtfreak1025@xxxx>
wrote:
> Does anyone know a way to get the keltner channel to adapt to a
> logarithmic chart? The channel works well on a standard chart but
> goes wacky on a logarithmic chart.
>
> TIA
> Here is the code off the AFL website.
>
> // Keltner Channels are constructed similar to Bollinger Bands
> // around a moving average +/- volatility.
> // The difference is in the measurement of volatility.
> // Bollinger uses standar= 2d deviation. MA(Close,20) +/- #STDs
> // Keltner uses ATR (Average True Range). MA(Close,20) +/- #ATRs
> // Keltner channels may be easier to use for detecting oversold /
> overbought conditions
>
>
>
> Length = 22; Num_ATRs = 2;
> // Length and Num_ATRs parameters should be personalized for your
> preferred settings.
>
> Mov_Avg = EMA(C,Length);
> KUP = Mov_Avg + Num_ATRs * ATR(Length);
> KDOWN = Mov_Avg - Num_ATRs * ATR(Length);
>
>
> Plot (KUP,"KUP",1,1);
> Plot (KDown,"Kdown",1,1);
> Plot (Mov_Avg,"Mov_Avg",6,1);
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading! Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/Lj3uPC/Me7FAA/ySSFAA/GHeqlB/TM
---------------------------------------------------------------------~->
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|