PureBytes Links
Trading Reference Links
|
You thought right--<SPAN
class=860232817-30042004>it is due to insufficient # of bars<SPAN
class=860232817-30042004>.
RankArray <SPAN
class=860232817-30042004>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<SPAN
class=860232817-30042004>: 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
[<FONT face=Arial
size=2>mailto:mickeyA@xxxxxxxxxxx]Sent:
Friday, April 30, 2004 6:20 AMTo: amibroker@xxxxxxxxxxxxxxxSubject:
[amibroker] need some debugging help on this oneAnyone could give me
a hand with solving this error I get with sometickers on the formula below
????This is the error I´m getting ! I thought this was due
to toolittle data, so I added SETBARSREQUIRED but this did not solve
thething, 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
CalculationsBuy=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);------------------------
Yahoo! Groups Sponsor ---------------------~-->Buy Ink Cartridges or
Refill Kits for your HP, Epson, Canon or LexmarkPrinter at MyInks.com.
Free s/h on orders $50 or more to the US & Canada.<A
href="" target=_blank><FONT face=Arial
size=2>http://www.c1tracking.com/l.asp?cid=5511<A
href=""
target=_blank><FONT face=Arial
size=2>http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM<FONT
face=Arial
size=2>---------------------------------------------------------------------~->Send
BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to
suggest@xxxxxxxxxxxxx-----------------------------------------Post
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx(Web page:
<A href=""
target=_blank><FONT face=Arial
size=2>http://groups.yahoo.com/group/amiquote/messages/<FONT
face=Arial size=2>)--------------------------------------------Check
group FAQ at: <A
href=""
target=_blank><FONT face=Arial
size=2>http://groups.yahoo.com/group/amibroker/files/groupfaq.html<FONT
face=Arial size=2>Yahoo! Groups Links<*> To visit your group on
the web, go to: <A
href="" target=_blank><FONT face=Arial
size=2>http://groups.yahoo.com/group/amibroker/<FONT
face=Arial size=2><*> To unsubscribe from this group, send an email
to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx<*> Your use of Yahoo! Groups
is subject to: <A
href="" target=_blank><FONT face=Arial
size=2>http://docs.yahoo.com/info/terms/<FONT
size=2>
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 Sponsor
ADVERTISEMENT
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 the Yahoo! Terms of Service.
|