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

Re: [amibroker] AmiBroker 4.50.8 Maintenance Update released



PureBytes Links

Trading Reference Links

Hello,

You have to use a while statement

j=1 ;
While(j<500)
{
…..
j=j+1 ;
}

Regards, Patrick

--- In amibroker@xxxxxxxxxxxxxxx, "kk2628" <kk2628@xxxx> wrote:
> 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=1; j<500; j++)
> 
> { 
> 
> Count[j]=0;
> 
> for( i=0; i<BarCount-1; i++ )
> 
> {
> 
> if(H[i]-L[i]==j)
> 
> count[j]=count[j]+1;
> 
> }
> 
> }
> 
> Plot(Count,"",colorRed,styleHistogram|4);
> 
> 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 ---------------------~-->
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
---------------------------------------------------------------------~->

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/