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

Re: [amibroker] Code for smoothing



PureBytes Links

Trading Reference Links




Keith, why not just use Ehler' smooth RSI 
instead.  Compare this with Chande's indicator.  Ehler's smooth RSI 
looks just like Chandes will look after it is smoothed.
I would appreciate it if someone would post Ehler's 
smooth RSI with a 10 period EMA on it.  Ron D
 
 
Title=<FONT 
color=#ff00ff size=1>"RSI Ehlers Smooth with EMA";

len=10;<FONT 
color=#008000 size=1>//Input("No of bars",1,100,14);
smooth23=(C+(2<FONT 
size=1>*Ref<FONT 
size=1>(C,-1<FONT 
size=1>))+(2*<FONT 
color=#0000ff size=1>Ref(C,-<FONT 
color=#ff00ff size=1>2)+<FONT color=#0000ff 
size=1>Ref(C,-<FONT color=#ff00ff 
size=1>3))/6<FONT 
size=1>;
change=ROC<FONT 
size=1>(smooth23,1);
cu23=Sum(<FONT 
color=#0000ff size=1>IIf(change><FONT 
color=#ff00ff size=1>0,change,<FONT color=#ff00ff 
size=1>0),len);
cd23=Sum(<FONT 
color=#0000ff size=1>IIf(change<<FONT 
color=#ff00ff size=1>0,<FONT color=#0000ff 
size=1>abs(change),<FONT color=#ff00ff 
size=1>0),len);
final=cu23/(cu23+cd23);
Plot(final,<FONT color=#ff00ff 
size=1>""<FONT 
size=1>,colorRed,styleLine);
 
<FONT face=Arial 
size=1>=======================================================================================
 
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  Keith 
  Newhouse 
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Sunday, June 15, 2003 9:13 PM
  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@xxxxxxxxxxxxxSend SUGGESTIONS to 
  suggest@xxxxxxxxxxxxx-----------------------------------------Post 
  AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
  group FAQ at: <A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
  Your use of Yahoo! Groups is subject to the <A 
  href="">Yahoo! Terms of Service. 







Yahoo! Groups Sponsor












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 the Yahoo! Terms of Service.