PureBytes Links
Trading Reference Links
|
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
<A title=kk2628@xxxxxxxxxxxxxxxx
href="">kk2628
To: <A title=amibroker@xxxxxxxxxxxxxxx
href="">amibroker@xxxxxxxxxxxxxxx
Sent: Saturday, January 17, 2004 10:40
AM
Subject: [amibroker] subscript out of
range
Hi,
Appreciate someone point out my error. I get the
subscript out of range error for the following code. The symbol that I use has
about 1920 bars.
Are you mixing up 0 and o (zero and
letter o)?
for(j=<FONT face="Courier New"
color=#ff00ff size=1>1;<FONT
face="Courier New" color=#000000 size=1> j<<FONT face="Courier New"
color=#ff00ff size=1>500<FONT
color=#000000 size=1>;
j++)
{
Count[j]=0<FONT
face="Courier New" color=#000000 size=1>;<FONT color=#000000
size=1>
for<FONT color=#000000
size=1>( i=0<FONT
face="Courier New" color=#000000 size=1>; i<BarCount-<FONT
face="Courier New" color=#ff00ff size=1>1;
i++<FONT
color=#000000 size=1> )<FONT face="Courier New" color=#000000
size=1>
{
if<FONT
face="Courier New" color=#000000 size=1>(H[i]-L[i]==j)
count[j]=count[j]+<FONT face="Courier New" color=#ff00ff
size=1>1;
}
}<FONT face="Courier New"
color=#0000ff size=1>
Plot<FONT face="Courier New" color=#000000
size=1>(Count,<FONT face="Courier New" color=#ff00ff
size=1>""<FONT face="Courier New" color=#000000
size=1>,colorRed,styleHistogram|<FONT face="Courier New"
color=#ff00ff size=1>4<FONT face="Courier New" color=#000000
size=1>);
Tks
KK
Send BUG REPORTS to <A
href="">bugs@xxxxxxxxxxxxxSend SUGGESTIONS to
suggest@xxxxxxxxxxxxx-----------------------------------------Post
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
To visit your group on the web, go to:<A
href="">http://groups.yahoo.com/group/amibroker/
To unsubscribe from this group, send an email to:<A
href="">amibroker-unsubscribe@xxxxxxxxxxxxxxx
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
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.
|