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

Re: [amibroker] Calculate only last Few Days of Indicators for Futures



PureBytes Links

Trading Reference Links

provided you do not have setbarsrequired, or use a for loop, AB
automatically determines the number of bars it requires to plot the
chart, minimising the number of bars used making it faster. This is
called quickafl

however loops mess this up and you need to use setbarsrequired, but
you could try using the setbarsrewquired with just enough bars defined
for your needs

Another small point if you use this approach, that I ahve found, is
that if you use (barcount-1) you will need to change this to
lastvalue(barindex()) as barcount requires all the database bars to be
defined in setbarsrequired

--
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 4/2/06, Mike Mann <m3m@xxxxxxxxxxxxx> wrote:
> I am running some custom indicators on minute data on Futures and my
> computer bogs down calculating minute indicators for a long history of
> data.  Is there a simple way in AFL to just begin the calculation a
> few days ago?
>
> I didn't see anything obvious in the help references or any historical
> posts, but I'm sure it must be quite simple.
>
> Thank you,
>
> Mike
>
>
>
>
>
>
>
> 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
>
>
>
>
>
>
>


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/