PureBytes Links
Trading Reference Links
|
Hello,
i had better to read the manual before trying some answer.
The for(j=1;j<500;j++) is correct in AFL
Regards, Patrick
--- In amibroker@xxxxxxxxxxxxxxx, "pdumain_f" <pdumain.f@xxxx> wrote:
> 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 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/
|