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

[amibroker] Test Request



PureBytes Links

Trading Reference Links

Thanks guys I donīt know what I should do without you guys !!!

I run this on my ETF list and AGG was creating this problem so I 
removed it temp. Results of scan below !

I could remove the Ranknum section because itīs basicly the same just 
different way calculating. Iīm not sure as to why RankArray works and 
Ranknum doesnīt, maybe because RankArray uses REF( , ). But for the 
future is there a way to throwout tickers with not enough data ???  
I thought SetBarsRequired( m,n ) would do the job but this is not the 
case ?
Thanks for your help !!
M

LQD	30/04/2004	0.99	0.99	
IEF	30/04/2004	0.99	0.99	
TLT	30/04/2004	0.99	0.99	
SHY	30/04/2004	1.00	1.00	
EWF	30/04/2004	1.00	1.00	
IYR	30/04/2004	1.01	1.01	
ICF	30/04/2004	1.01	1.01	
RWR	30/04/2004	1.01	1.01	
OEF	30/04/2004	1.02	1.02	
XLV	30/04/2004	1.02	1.02	
XLK	30/04/2004	1.02	1.02	
IYW	30/04/2004	1.02	1.02	
IYZ	30/04/2004	1.02	1.02	
IVW	30/04/2004	1.02	1.02	
EWC	30/04/2004	1.03	1.03	
IYH	30/04/2004	1.03	1.03	
ELV	30/04/2004	1.03	1.03	
ELG	30/04/2004	1.03	1.03	
IYF	30/04/2004	1.03	1.03	
DIA	30/04/2004	1.03	1.03	
DGT	30/04/2004	1.03	1.03	
IWB	30/04/2004	1.03	1.03	
IVV	30/04/2004	1.03	1.03	
IDU	30/04/2004	1.03	1.03	
XLU	30/04/2004	1.03	1.03	
XLF	30/04/2004	1.03	1.03	
IXJ	30/04/2004	1.03	1.03	
FFF	30/04/2004	1.03	1.03	
IWF	30/04/2004	1.03	1.03	
IYG	30/04/2004	1.03	1.03	
SPY	30/04/2004	1.03	1.03	
IWV	30/04/2004	1.04	1.04	
VTI	30/04/2004	1.04	1.04	
IWZ	30/04/2004	1.04	1.04	
XLB	30/04/2004	1.04	1.04	
EZU	30/04/2004	1.04	1.04	
FEU	30/04/2004	1.04	1.04	
FEZ	30/04/2004	1.04	1.04	
IXG	30/04/2004	1.04	1.04	
IWD	30/04/2004	1.04	1.04	
EWN	30/04/2004	1.04	1.04	
IXN	30/04/2004	1.04	1.04	
IXP	30/04/2004	1.04	1.04	
IYC	30/04/2004	1.04	1.04	
IYY	30/04/2004	1.04	1.04	
IGM	30/04/2004	1.04	1.04	
XLI	30/04/2004	1.04	1.04	
IGV	30/04/2004	1.04	1.04	
EWA	30/04/2004	1.04	1.04	
IYJ	30/04/2004	1.04	1.04	
IVE	30/04/2004	1.04	1.04	
IYM	30/04/2004	1.04	1.04	
IWW	30/04/2004	1.04	1.04	
QQQ	30/04/2004	1.04	1.04	
IOO	30/04/2004	1.04	1.04	
ILF	30/04/2004	1.05	1.05	
ADRD	30/04/2004	1.05	1.05	
IJK	30/04/2004	1.05	1.05	
DSV	30/04/2004	1.05	1.05	
XLP	30/04/2004	1.05	1.05	
IGW	30/04/2004	1.05	1.05	
IEV	30/04/2004	1.05	1.05	
EWI	30/04/2004	1.05	1.05	
EZA	30/04/2004	1.05	1.05	
EWL	30/04/2004	1.05	1.05	
EWP	30/04/2004	1.05	1.05	
EWQ	30/04/2004	1.05	1.05	
MDY	30/04/2004	1.05	1.05	
XLY	30/04/2004	1.05	1.05	
IWS	30/04/2004	1.05	1.05	
EWW	30/04/2004	1.05	1.05	
EWU	30/04/2004	1.05	1.05	
IWR	30/04/2004	1.06	1.06	
IWP	30/04/2004	1.06	1.06	
IWO	30/04/2004	1.06	1.06	
IWN	30/04/2004	1.06	1.06	
EWM	30/04/2004	1.06	1.06	
IWM	30/04/2004	1.06	1.06	
EWK	30/04/2004	1.06	1.06	
IBB	30/04/2004	1.06	1.06	
EWH	30/04/2004	1.06	1.06	
IJH	30/04/2004	1.06	1.06	
EPP	30/04/2004	1.06	1.06	
EFA	30/04/2004	1.06	1.06	
IJJ	30/04/2004	1.06	1.06	
DSG	30/04/2004	1.06	1.06	
ADRU	30/04/2004	1.06	1.06	
IJT	30/04/2004	1.06	1.06	
VXF	30/04/2004	1.06	1.06	
IYK	30/04/2004	1.07	1.07	
ADRE	30/04/2004	1.07	1.07	
EWG	30/04/2004	1.07	1.07	
XLE	30/04/2004	1.07	1.07	
IJS	30/04/2004	1.07	1.07	
IJR	30/04/2004	1.07	1.07	
IGN	30/04/2004	1.07	1.07	
IGE	30/04/2004	1.07	1.07	
EWZ	30/04/2004	1.07	1.07	
EWY	30/04/2004	1.07	1.07	
EWT	30/04/2004	1.07	1.07	
EWS	30/04/2004	1.08	1.08	
IYE	30/04/2004	1.08	1.08	
EEM	30/04/2004	1.08	1.08	
IXC	30/04/2004	1.08	1.08	
EWD	30/04/2004	1.09	1.09	
ADRA	30/04/2004	1.09	1.09	
ITF	30/04/2004	1.10	1.10	
EWJ	30/04/2004	1.11	1.11	
EWO	30/04/2004	1.12	1.12	


--- In amibroker@xxxxxxxxxxxxxxx, "Bob Jagow" <bjagow@xxxx> wrote:
> You thought right--it is due to insufficient # of bars.
> RankArray will work fine because AB throws out tickers if  the bar 
is
> unavailable.
> RankNum fails because AB doesn't throws out tickers if
> Price[BarCount-1-251]) is unavailable.
> 
> SetBarsRequired( m,n ) only controls how many of the available bars 
get
> loaded: E.g., the help example: setbarsrequired( 100000, 
100000 ) // require
> all past and all future bars
> If you want RankNum, then you need to correctly test that the 
ticker has
> enough bars!
> 
> 
> 
> 
> -----Original Message-----
> From: mickeyamelinckx [mailto:mickeyA@x...]
> Sent: Friday, April 30, 2004 6:20 AM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] need some debugging help on this one
> 
> 
> Anyone could give me a hand with solving this error I get with some
> tickers on the formula below ????
> 
> This is the error Iīm getting !   I thought this was due to too
> little data, so I added SETBARSREQUIRED but this did not solve the
> thing, I guess because of the filter already included !
> 
> I thank you !!!!
> 
> Line 14, Column 29:
> RankNum = (Price[b]/price[b-62]*2+
> Price[b-63]/Price[b-125]+
> Price[b-126]/Price[b-188]+
> Price[b-189]/Price[b-251])/5;
> ----------------------------^
> 
> Error 7.
> Subscript out of range
> 
> 
> 
> // QP QRS Calculations
> Buy=Sell=Short=Cover=0;
> Filter=Status("LastBarInTest") AND BarCount-1 > 252;
> SetOption("NoDefaultColumns",False);
> SetBarsRequired( 255, 0 ) ;
> Price = Close;
> 
> // using numbers (faster)
> b=BarCount-1;
> 
> RankNum = (Price[b]/price[b-62]*2+
> Price[b-63]/Price[b-125]+
> Price[b-126]/Price[b-188]+
> Price[b-189]/Price[b-251])/5;
> 
> // using arrays (slower)
> RankArray = Price/Ref(Price,-62)*0.4+
> Ref(Price,-63)/Ref(Price,-125)*0.2+
> Ref(Price,-126)/Ref(Price,-188)*0.2+
> Ref(Price,-189)/Ref(Price,-251)*0.2;
> 
> AddColumn(RankNum,"RankNum",1.2);
> AddColumn(RankArray,"RankArray",1.2);
> 
> 
> 
> 
> Send BUG REPORTS to bugs@xxxx
> Send SUGGESTIONS to suggest@xxxx
> -----------------------------------------
> 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
> Yahoo! Groups Links



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com.  Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

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