Hello, Iterating through bars using loop is a lot slower than array operation. It can be 10x or more depending on number of bars.
Best regards, Tomasz Janeczko amibroker.com ----- Original Message ----- From: "sidhartha70" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Tuesday, August 12, 2008 11:30 PM Subject: [amibroker] Re: AFL Execution time for indicator code > Thanks TJ. That's impressive. > > What happens where you are not using AFL in array mode and are using > looping structures through each bar...? > > I think you have said before that there is no special execution > penalty for this...? > > Many Thanks > > --- In [email protected], "Tomasz Janeczko" <[EMAIL PROTECTED]> wrote: >> >> Hello, >> >> Here is an article that covers that in detail: >> http://www.amibroker.com/kb/2008/08/12/afl-execution-speed/ >> >> >> Best regards, >> Tomasz Janeczko >> amibroker.com >> ----- Original Message ----- >> From: "Tomasz Janeczko" <[EMAIL PROTECTED]> >> To: <[email protected]> >> Sent: Tuesday, August 12, 2008 6:21 PM >> Subject: Re: [amibroker] Re: AFL Execution time for indicator code >> >> >> > AFL array processing is at native machine code speed. Can't be > faster than that. >> > >> > Best regards, >> > Tomasz Janeczko >> > amibroker.com >> > ----- Original Message ----- >> > From: "sidhartha70" <[EMAIL PROTECTED]> >> > To: <[email protected]> >> > Sent: Tuesday, August 12, 2008 4:59 PM >> > Subject: [amibroker] Re: AFL Execution time for indicator code >> > >> > >> >> Thanks TJ. I am using 5.16 actually. >> >> >> >> As a point of interest, how does AFL execution speed compare with > C#...? >> >> >> >> >> >> --- In [email protected], "Tomasz Janeczko" <groups@> wrote: >> >>> >> >>> If you are using linked charts, it is recommeded to upgrade to 5.16 >> >>> >> >>> Best regards, >> >>> Tomasz Janeczko >> >>> amibroker.com >> >>> ----- Original Message ----- >> >>> From: "sidhartha70" <sidhartha70@> >> >>> To: <[email protected]> >> >>> Sent: Tuesday, August 12, 2008 2:24 PM >> >>> Subject: [amibroker] Re: AFL Execution time for indicator code >> >>> >> >>> >> >>> > TJ... no I don't. >> >>> > >> >>> > --- In [email protected], "Tomasz Janeczko" <groups@> > wrote: >> >>> >> >> >>> >> Do you use lots of Foreign()/SetForeign() ? >> >>> >> >> >>> >> Best regards, >> >>> >> Tomasz Janeczko >> >>> >> amibroker.com >> >>> >> ----- Original Message ----- >> >>> >> From: "sidhartha70" <sidhartha70@> >> >>> >> To: <[email protected]> >> >>> >> Sent: Tuesday, August 12, 2008 1:17 PM >> >>> >> Subject: [amibroker] AFL Execution time for indicator code >> >>> >> >> >>> >> >> >>> >> > Lets say I'm looking at 200 tick charts ... I use a number > of quite >> >>> >> > complex indictaors to guide my trading... what's the highest >> >>> >> > realistically usable 'total execution time' for any given > indicator >> >>> >> > under those cirumstances...? I want to check my coding is ok. >> >>> >> > >> >>> >> > Why do I ask...? Because I have 9 charts on my dual screen set >> >> up... >> >>> >> > some are just price graphs. Other's price graphs + more > complex AFL >> >>> >> > code... a number of my 'panes' indicate that they take 0.02 >> >> secs total >> >>> >> > execution time... in concert these seem to be taking my > AmiBroker >> >>> >> > session towards unusable slowness... >> >>> >> > >> >>> >> > As I mentioned yesterday my average total exec time for all >> >> graphs is >> >>> >> > 0.65-0.7 secs... as well as this I have a real time quote >> >> window open. >> >>> >> > >> >>> >> > As I sit here now, I have one of my 8 x 3Ghz cores grinding > away at >> >>> >> > about 80%... >> >>> >> > >> >>> >> > Oh... I use IQ Feed by the way. >> >>> >> > >> >>> >> > Many Thanks >> >>> >> > >> >>> >> > >> >>> >> > ------------------------------------ >> >>> >> > >> >>> >> > 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 >> >>> >> > >> >>> >> > >> >>> >> > >> >>> >> >> >>> > >> >>> > >> >>> > >> >>> > ------------------------------------ >> >>> > >> >>> > 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 >> >>> > >> >>> > >> >>> > >> >>> >> >> >> >> >> >> >> >> ------------------------------------ >> >> >> >> 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 >> >> >> >> >> >> >> > >> > ------------------------------------ >> > >> > 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 >> > >> > >> > >> > > > > ------------------------------------ > > 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 > > >
