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

Re: [amibroker] amiquote imports but data not visible in amibroker



PureBytes Links

Trading Reference Links

--- In amibroker@xxxxxxxxxxxxxxx, "send2davidlee" 
<send2davidlee@xxxx> wrote:
> Does anyone have the amibroker forumla for Cutler's RSI?

I think it looks like this:

function L_CRSI(array, period)
{
        local array, period;
        local diff, U, D, CRSI;

        diff=array-Ref(array,-1);
        U=Sum(IIf(diff>0,diff,0),period);
        D=Sum(IIf(diff<0,-diff,0),period);
        CRSI=100.-Nz(100./(1+(U/D)));

        return CRSI;
}

GraphZOrder = 1;	
GraphXSpace = 5;
p_period = Param("period",14,3,120,1); 
CRSI=L_CRSI(C,p_period); //Cutler
SRSI=RSI(p_period);	 //Standard

Plot(CRSI,"CRSI("+WriteVal(p_period,1.0)+")", colorRed, 
styleLine|styleThick);
Plot(SRSI,"RSI("+WriteVal(p_period,1.0)+")", colorGreen, 
styleLine|styleThick);



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

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

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