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

Re: [amibroker] Code for smoothing



PureBytes Links

Trading Reference Links

Hello,

You can smooth it by any of: MA, EMA, WMA, DEMA, TEMA, Wilders, etc.

//{Chande's Momentum Indicator}
CMI=100 * 
((Sum(IIf(C>Ref(C,-1),(C-Ref(C,-1)),0),14)) - 
(Sum(IIf(C<Ref(C,-1),(Ref(C,-1)-C),0),14))) / 
((Sum(IIf(C>Ref(C,-1),(C-Ref(C,-1)),0),14) + 
(Sum(IIf(C<Ref(C,-1),(Ref(C,-1)-C),0),14))));

Plot(CMI,"CMI",colorRed,styleLine);
Plot( MA( CMI, 10 ), "Simple moving average of CMI", colorBlue );

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "Keith Newhouse" <knewhous@xxxxxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Monday, June 16, 2003 4:13 AM
Subject: [amibroker] Code for smoothing


> Hi all,
> 
> I am looking for help with code for smoothing Chande's Momentum 
> Indicator, details of which are below.  If some one can show me how 
> to apply smoothing I would be grateful.
> 
> Also does anyone have the code, or know where I can find it,  for 
> VEL, a smoothed momentum indicator. I understand it has been coded in 
> AFL although I cannot find it in the libary.
> 
> Regards,
> Keith.
> 
> //{Chande's Momentum Indicator}
> CMI=100 * 
> ((Sum(IIf(C>Ref(C,-1),(C-Ref(C,-1)),0),14)) - 
> (Sum(IIf(C<Ref(C,-1),(Ref(C,-1)-C),0),14))) / 
> ((Sum(IIf(C>Ref(C,-1),(C-Ref(C,-1)),0),14) + 
> (Sum(IIf(C<Ref(C,-1),(Ref(C,-1)-C),0),14))));
> Plot(CMI,"CMI",colorRed,styleLine);
> 
> 
> 
> 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/ 
> 
> 
> 

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