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

Re: [amibroker] Re: RSI formula



PureBytes Links

Trading Reference Links

Thank you. It work well.

gp_sydney <gp.investment@xxxxxxxxx> wrote:
See earlier message #113409 on this topic.

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

Regards,
GP

--- In amibroker@xxxxxxxxxps.com, "amon_gizeh" <amon_gizeh@...> 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.
>


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com __._,_.___

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




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___