| 
 PureBytes Links 
Trading Reference Links 
 | 
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.
 
for(j=<FONT color=#ff00ff 
face="Courier New" size=1>1;<FONT 
color=#000000 face="Courier New" size=1> j<<FONT color=#ff00ff 
face="Courier New" size=1>500<FONT 
color=#000000 size=1>; 
j++)
{ 
Count[j]=0<FONT 
color=#000000 face="Courier New" size=1>;
for<FONT color=#000000 
size=1>( i=0<FONT 
color=#000000 face="Courier New" size=1>; i<BarCount-<FONT 
color=#ff00ff face="Courier New" size=1>1; 
i++<FONT 
color=#000000 size=1> )
{
if<FONT 
color=#000000 face="Courier New" size=1>(H[i]-L[i]==j)
count[j]=count[j]+<FONT color=#ff00ff face="Courier New" 
size=1>1;
}
}<FONT color=#0000ff 
face="Courier New" size=1>
Plot(Count,<FONT 
color=#ff00ff face="Courier New" size=1>""<FONT color=#000000 
face="Courier New" size=1>,colorRed,styleHistogram|<FONT 
color=#ff00ff face="Courier New" size=1>4<FONT color=#000000 
face="Courier New" size=1>);
Tks
KK 
 
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.
 |