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

Re: [amibroker] Code for smoothing



PureBytes Links

Trading Reference Links





Title="RSI Ehlers Smooth with 
EMA";
len=10<FONT 
size=2>;//Input("No of 
bars",1,100,14);
smooth23=C+(2<FONT 
size=2>*Ref<FONT 
size=2>(C,-1<FONT 
size=2>))+(2<FONT 
size=2>*Ref<FONT 
size=2>(C,-2<FONT 
size=2>)+Ref<FONT 
size=2>(C,-3<FONT 
size=2>))/6;
change=ROC<FONT 
size=2>(smooth23,1<FONT 
size=2>);
cu23=Sum(<FONT 
color=#0000ff size=2>IIf(change><FONT 
color=#ff00ff size=2>0,change,<FONT 
color=#ff00ff size=2>0),len);
cd23=Sum(<FONT 
color=#0000ff size=2>IIf(change<<FONT 
color=#ff00ff size=2>0,<FONT color=#0000ff 
size=2>abs(change),<FONT color=#ff00ff 
size=2>0),len);
final=cu23/(cu23+cd23);
Plot(final,<FONT color=#ff00ff 
size=2>"",colorRed,styleLine);<FONT 
face="Courier New" size=2>
EMAPeriods=<FONT face="Courier New" color=#0000ff 
size=2>Param(<FONT 
face="Courier New" color=#ff00ff size=2>"ema"<FONT face="Courier New" 
size=2>,<FONT face="Courier New" color=#ff00ff 
size=2>10,<FONT 
face="Courier New" color=#ff00ff size=2>5<FONT face="Courier New" 
size=2>,<FONT face="Courier New" color=#ff00ff 
size=2>14,<FONT 
face="Courier New" color=#ff00ff size=2>1<FONT face="Courier New" 
size=2>);
Plot(<FONT face="Courier New" 
color=#0000ff size=2>EMA<FONT face="Courier New" 
size=2>(final,EMAPeriods),<FONT face="Courier New" color=#ff00ff 
size=2>""<FONT face="Courier New" 
size=2>,colorBlue,styleLine); 
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  mrdavis9 
  
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Sunday, June 15, 2003 11:14 
PM
  Subject: Re: [amibroker] Code for 
  smoothing
  
  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 
  size=1>*Ref<FONT 
  size=1>(C,-2<FONT 
  size=1>)+Ref<FONT 
  size=1>(C,-3<FONT 
  size=1>))/6;
  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: 
    <A title=knewhous@xxxxxxxxxxxxxxx 
    href="">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. 
    
  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. 
  
<BLOCKQUOTE 
><FONT 
  face="Courier New">---Outgoing mail is certified Virus 
  Free.Checked by AVG anti-virus system (<A 
  href="">http://www.grisoft.com).Version: 6.0.489 
  / Virus Database: 288 - Release Date: 
6/10/2003






Yahoo! Groups Sponsor


  ADVERTISEMENT 









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.