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

[amibroker] Re: perform calculations only on selected range



PureBytes Links

Trading Reference Links

Thanks Tomasz,

QuickAFL is exactly what I need

--- In amibroker@xxxxxxxxxxxxxxx, Tomasz Janeczko <groups@xxx> wrote:
>
> Hello,
> 
> Status("barinrange")
> 
> http://www.amibroker.com/f?status
> 
> See also Knowledge Base article about QuickAFL:
> http://www.amibroker.com/kb/2008/07/03/quickafl/
> 
> Best regards,
> Tomasz Janeczko
> amibroker.com
> 
> bigitop wrote:
> > I have a minute-database with more than 3 million bars. The problem I have is that i'm using loops and complex calculations and the program is crashing.
> >
> > I would just like to perform these calculations on the bars that are within the AA date range. How can I find out the barindex of the first and last bar within the AA date range??
> >
> > The code should work something like this:
> >
> > for(i=firstBarinRange;i<lastBarinRange; i++){....}
> >
> > I was trying this to get the last bar in the range:
> >
> > index = BarIndex();
> > lastindex = SelectedValue(index);
> >
> > The problem with this is that the index array is being calculated for ALL bars and it is very slow. But any similar code to get the first index of the range will do.
> >
> > Any help is appreciated.  Thanks in advance.
> >
> >
> >
> > ------------------------------------
> >
> > **** IMPORTANT PLEASE READ ****
> > This group is for the discussion between users only.
> > This is *NOT* technical support channel.
> >
> > TO GET TECHNICAL SUPPORT send an e-mail directly to 
> > SUPPORT {at} amibroker.com
> >
> > TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
> > http://www.amibroker.com/feedback/
> > (submissions sent via other channels won't be considered)
> >
> > For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> > http://www.amibroker.com/devlog/
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
>




------------------------------------

**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to 
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

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/