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

Re: [amibroker] while/for loop compiler error 3 question



PureBytes Links

Trading Reference Links

I have been trying to get some composite data on the Russell 2000 
using TC2000 data.  My code is:

// Gets data for 6 week new highs and lows
AddToComposite(IIf(H > HHV(Ref(High,-1),30),1,0),"~RUTNewHighs", "X");
AddToComposite(IIf(L < LLV(Ref(Low,-1),30),1,0),"~RUTNewLows", "X");
AddToComposite(1,"~RUTCount", "X");
Buy = Close > 100000;

When I plot "~RUTCount" vs time, I get values that smoothly increase 
from 335 on 1/4/1984 to 1592 on 1/3/2000 to 1831 on 8/6/2004 (last 
Friday).  I would expect major steps every six months or so, but not 
smoothly increasing like this.  Also, I would expect full 2000 for 
recent data.  I downloaded my list of stocks from Russell on 7/6/2004.

Does anyone have any idea what is going on here?



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/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/