PureBytes Links
Trading Reference Links
|
barindex starts counting the bars in the chart from zero. 1st bar is 0.
The area below the chart that shows the cursor position is for the bar
number as cum(1) would calculate it.
barindex is from 0 to (Barcount-1)
chart values box is from 1 to barcount
You can do a simple exploration
filter=1;
addcolumn(barindex(),"barindex",1);
or add it to your chart title
title = blahblahbalh +" barindex = "+ barindex();
or even show it in the Interpretation window for a chart, just add
this anywhere in the AFL
"barindex = "+barindex();
These techniques can be used for any variable or array.
Of course the other radical and innovative method would be to use the
help files, and type barindex into the search in there
--
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://e-wire.net.au/~eb_kavan/ab_write.htm
On 12/31/05, sslack88 <jzzpiano88@xxxxxxxxxxx> wrote:
> Does anyone know if there is a way to view the contents of an array?
>
> For example, I want to understand the barindex() function better, so I
> want to look at each value in the array. Is there a way to do this?
>
> Also, does anyone know how the barindex() function works? Does it go
> from left to right? Does it start at zero?
>
> Is this how it works:
>
> Bar 1 - Bar 2 - Bar 3 - Etc. (left to right)
>
> 0 - 1 - 2 - Etc. (barindex)
>
> Thanks!
>
------------------------ 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/
|