Dennis,
If you are "applying" the code - it is for the first time executed
with ALL bars, regardless of QuickAFL and SetBarsRequired settings.
Now *if* your formula is complex and uses looping and you are using
for example tick database with hundreds of thousands of bars
it may take a while. Usually it is non-issue as people are not using such
complex formulas.
(1 second is *very* long for execution under normal circumstances.
My formulas usually execute well below 0.1 sec).
You may wrap your code into
if( Status("action")==actionIndicator)
{
...
}
and this will prevent this effect.
Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: "Dennis Brown" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, September 04, 2007 11:25 PM
Subject: [amibroker] Why does it take so long to apply edits?
> Hello,
>
> I have noticed that the time it takes to apply an edit to my large
> indicator AFL takes a long but variable amount of time. It might
> take 15 seconds one time and 3 minutes another time. It usually
> takes about 2.5 minutes to apply an edit, though if there is a syntax
> error, it comes back right away. The AFL itself has an execution of
> about 1 second per pass and starts up right away from scratch.
>
> I was wondering if there were any general rules that I should be
> aware of that would make applying edits faster and more consistent?
>
> Another thing that is interesting is that if I click anywhere on the
> chart or UI while the edit is being applied, it runs even slower, and
> always resets all the params.
>
> Insights anyone?
>
> Thanks,
> Dennis
>
>
>
> 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
>
>
>
>
>