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

RE: [amibroker] [Repost] How to do long process run one time only ?



PureBytes Links

Trading Reference Links

If you work EOD you could try to save the data in tables using the OSAKA DLL and readit only when you need it. Do a search for ASAKA and you'll find some examples.
 
My first approach would be to streamline the code, you can use DebugView to see where the time goes.
 
best regards,
herman
-----Original Message-----
From: tintin92 [mailto:tintin922002@xxxxxxxx]
Sent: Wednesday, February 02, 2005 3:15 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] [Repost] How to do long process run one time only ?

>
> 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
>


I tried something like that without success.
I will try once again.


> http://www.amibroker.com/f?addtocomposite
> http://www.amibroker.com/f?foreign
>
> b) write DLL that performs complex calculations.
>

I tried also.
I dont know VC++.
I have Delphi 5, but they are nothing  ready to use.

Regards.

Tintin92



> 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




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