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

[amibroker] Re: RSI formula



PureBytes Links

Trading Reference Links

See earlier message #113409 on this topic.

http://finance.groups.yahoo.com/group/amibroker/message/113409

Regards,
GP


--- In amibroker@xxxxxxxxxxxxxxx, "amon_gizeh" <amon_gizeh@xxx> wrote:
>
> Hi.
> Who can translate RSI into code language?
> I write this:
> 
> n=Param("period",10,1,50,1); /*period*/
>     A=0;
>     D=0;
>   for( i = 0; i < n; i=i+1 ) 
> {
>     A=IIf(Ref(Close, - i)>Ref(Close, - i-1), A+Ref(Close, -
> i)-Ref(Close, - i-1),A);
>     D=IIf(Ref(Close, - i)<Ref(Close, - i-1), D+Ref(Close, -
> i-1)-Ref(Close, - i),D);
>         
>  }  
>  var=IIf (D==0, 100, 100-(100/(1+EMA(A,n)/EMA(D,n))));
>  Plot(var,"RSI" +n,colorDarkBlue); 
>  ... but the result is not the same with RSI(10).
> 
> Can somebody help me?
> Thanks.
>




Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html
 
Yahoo! Groups Links

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

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

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

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