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

Re: [amibroker] it is OK, but very slow



PureBytes Links

Trading Reference Links

Hello,

1. Rewrite everything to AFL if possible. 
AFL loops are 10 times faster than JScript.
AFL array processing is even faster (upto 100 faster than JScript)

2. Yes restricting execution to visible bars is essential.
You should check SetBarsRequired function.

Essentially, things like you describe should be flying very fast 
if properly coded.

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "groups" <groups@xxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Wednesday, December 08, 2004 11:17 PM
Subject: [amibroker] it is OK, but very slow


> 
> hello,
> 
> I use four linked windows for four timeframes, each consists of 8 
> sheets. I created some indicator template which consists of price and 
> some overlayes/rescaled indicators and placed it onto four sheets in 
> every window. this template also uses JScript and many "general-type" 
> functions so that I can change type of function via parameters window.
> 
> It works OK but it works veryyyy slow. I have rewritten everything which 
> improved the speed of execution, but it is still kinda slow. The 
> database I use is composed of 10 symbols, over 260000 bars each.
> 
> My question is: if I rewrite everything again using AFL and creating 
> user defined functions for moving averages and many other indicators but 
> restricting those evaluations only to visible bars (plus some necessary 
> number of preceeding bars), and place everything in loops which 
> execution is restricted to visible bars -- will that improve overall 
> speed of execution?
> 
> I would appreciate any help and suggestion in that matter.
> 
> cheers,
> BM
> 
> 
> 
> 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 --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/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/