PureBytes Links
Trading Reference Links
|
You don't say, but it appears that this is running on real time data. Anyway, here are some things that I've used to speed up my real time scans. I run a scan every 1 minute over 150 symbols - it takes about 3 seconds to complete. To get there I used Task Manager -> Performance -> Resource Monitor to check for bottle necks.
Here is what I did to speed things up.
1. my database is small - 2500 bars of 5 minutes each for about 150 symbols. (Only the "Hard Right Edge" is important for me.) I have another larger db that I use for historical testing. What happens is when each new bar arrives, the oldest bar gets deleted and the run times remain constant.
2. Make sure that all unnecessary programs are not running. The biggest offender for me was a real time virus checker "Windows Defender". Run Task Manager - Processes when your scan is running to see if other programs are competing for CPU time. For me Broker.exe uses about 20% of CPU #2 and IQConnect.exe uses about 5-10% of CPU #1
3. Make sure you have plenty of memory. Zero page file usage.
4. Eliminate the window pane effect around the edge of each window you have open - I forget how to turn that off.
5. Make sure that your cpus are not running in "power save" mode.
6. Look through your *.afl and eliminate all unnecessary code. I had several lines that I used for debugging laying around.
--- In amibroker@xxxxxxxxxxxxxxx, "sidhartha70" <sidhartha70@xxx> wrote:
>
> I'm confused.
> I have a scan that I call every 5 mins (or hope to). This scan is used to set up a series of static arrays that I use elsewhere in my code.
>
> The scan code is 30 lines long. A 'check' of the code says it takes 0.035 secs to run.
>
> I'm running the code over a defined filter which is a watch list of symbols. It runs across 24 symbols.
>
> My DB has 100,000 bars in it.
>
> Even with everything backfilled, I have seen this scan take 14 mins to run. That can't be right can it...??
>
------------------------------------
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> 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/
|