| 
 PureBytes Links 
Trading Reference Links 
 | 
Hello,
Indicator code should be not too long if you intend to use it in RT operation.
If you are computing something that is very complex you should either:
a) compute values once using AA scan and put the results into
composite using AddToComposite and then only retrieve pre-computed
values usign Foreign() call in indicator
http://www.amibroker.com/f?addtocomposite
http://www.amibroker.com/f?foreign
b) write DLL that performs complex calculations.
Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "tintin92" <tintin922002@xxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Wednesday, February 02, 2005 4:22 PM
Subject: [amibroker] [Repost] How to do long process run one time only ?
> 
> Hi,
> 
> Repost.
> 
> I have quotes in 1 mn.
> I have formula with things like this :
> for( i = 1; i < BarCount; i++ )
> { etc...
> 
> First time I show the graphs, it take time.
> It'is right, they are many quotes ( 1mn ), and I have a AFL formula with
> long process.
> OK.
> 
> What I dont understand it is the following fact.
> If I try to scroll the graph or zoom it, each click take the same time than
> the first time.
> Or near, I dont know, but I feel like it take the same time.
> The cpu is 100% during this time.
> 
> Why AB reprocess all my stuff ?
> There is a way to say to AB in AFL code :
> 
> From_Here_Do_It_One_Time_Next_Click_Reuse_Your_Job
> {
> All my stuff
> }
> 
> Thanks.
> 
> Tintn92
> 
> 
> 
> Check AmiBroker web page at:
> http://www.amibroker.com/
> 
> Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
> 
>
------------------------ Yahoo! Groups Sponsor --------------------~--> 
Has someone you know been affected by illness or disease?
Network for Good is THE place to support health awareness efforts!
http://us.click.yahoo.com/Rcy2bD/UOnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.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/
 
 |