PureBytes Links
Trading Reference Links
|
Barindex() is the current bar.. you want barcount:
for ( i = 1; i <= BarCount-1; i++ )
----- Original Message -----
From: "trb0428" <trbrowne@xxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Sunday, March 05, 2006 1:12 PM
Subject: [amibroker] Looping question using BarIndex()
>I want to go through my "for" loop the number of times equal to the
> number of bars in my ticker. I have tried:
>
> for( i = 0; i <= BarIndex(); i++)
>
> but this does not work since BarIndex is an array which can't be
> compared to a value.
>
> I have also tried:
>
> bar_num = BarIndex();
> for( i = 0; i <= bar_num[0]; i++) .... but with same results.
>
> Any Ideas???
>
> Thanks,
> Tom
>
>
>
>
>
>
> Please note that this group is for discussion between users only.
>
> To get support from AmiBroker please send an e-mail directly to
> SUPPORT {at} amibroker.com
>
> For other support material please check also:
> http://www.amibroker.com/support.html
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Try Online Currency Trading with GFT. Free 50K Demo. Trade
24 Hours. Commission-Free.
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~->
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For other support material please check also:
http://www.amibroker.com/support.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/
|