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

[amibroker] simple question regarding arrays



PureBytes Links

Trading Reference Links

Hi,
I am very new to afl and I have a stupid problem on coding my indicator.
I have 50,000 1 minute candle in my database and on my chart , now I
want to access the close of the price on the bar #10000 , but when I
use C[10000] I get "subscription out of range/error 10" message. it
tells me I can not access the array out of [0..countbar-1] !
as I know countbar shows how many candles are visible on chart right
now and it is a low number for example 150 or 160 if you zoom-in in
decreases , if u zoom-out it increases , so how can I access the
candles regardless of the zoom of the window ?
Regards




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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

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/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> 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/