| 
 PureBytes Links 
Trading Reference Links 
 | 
AB uses only the visible bars for charting, plus what is necessary outside the window. to enable more bars to be used you add setbarsrequired function to the chart
  Setbarsrequired(50000,50000);
  then for the value of 10000th bar 
barValue = lastvalue(valuewhen(barindex()==999,C));
  --  Cheers Graham Kav AFL Writing Service http://www.aflwriting.com
 
 
 On 05/02/2008, wavemechanic <timesarrow@xxxxxxxxxxxxx> wrote:
Don't recall but maybe there is something in the 
settings that will work.  If not, valuewhen(cum(1) == 10000, c, 1) 
will. 
  
Bill 
  
----- Original Message ----- 
Sent: Monday, February 04, 2008 8:05 
AM 
Subject: [amibroker] simple question regarding 
arrays  
  > 
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/ 
 >  >  >  > --  > No virus found in this 
incoming message. > Checked by AVG Free Edition.  > Version: 7.5.516 
/ Virus Database: 269.19.19/1257 - Release Date: 2/3/2008 5:49 PM > 
 >
 
  
 
  
__._,_.___
  
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 
  
     
  
 
      
   
__,_._,___
 |