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

Re: [amibroker] OT- Optimization



PureBytes Links

Trading Reference Links

You didnıt say how many iterations it is performing. Let us know and we can
tell you if thatıs normal or not. 9 variables doesnıt give a real clue as to
how much youıre asking AB to do.
-- 
Terry


From: "Herman van den Bergen" <psytek@xxxxxxxx>
Reply-To: amibroker@xxxxxxxxxxxxxxx
Date: Tue, 28 Sep 2004 15:51:27 -0400
To: <amibroker@xxxxxxxxxxxxxxx>
Subject: RE: [amibroker] OT- Optimization

Hello Joe,

There have been discussions on how to upgrade hardware to increase code
executions however my personal experience is that "cleaning" up and
"Sreamlining" the code is far more effective than upgrading hardware... but
i agree that it is less fun to do :-) A simple memory upgrade will however
help.

If you have nine variables you have to determine whether these variables
have any synergy, the question to ask is whether there is interaction
between all of them. If so you have no choice but to perform a brute force
nine-variable optimization. If some variables have an independent effect on
system performance then you can run those separately, one at a time. I think
you can optimize variables separately with some additional coding if need
be - can't put my fingers on that code right now.

Some instructions take longer then others, you may be able to reduce
execution time identifying where the time goes. You can do this using
DebugView, it allows you to measure the relative time it takes to process a
certain piece of code. Finding the processing bottleneck may help you to
make that part of the code more efficient.

If you read many arrays from disk that you may want to read them just once
and store them in dynamic variables. These can be read faster than reading
from disk. I remember a case not too long ago where doing that reduced
execution time nearly a hundred times.

Without knowing you code it is difficult to give specific help, but the
above should help you bring the time down quite a bit.

have fun,
herman
  -----Original Message-----
  From: joeemmett2000 [mailto:joeemmett@xxxxxxxxxxxxx]
  Sent: Tuesday, September 28, 2004 3:14 PM
  To: amibroker@xxxxxxxxxxxxxxx
  Subject: [amibroker] OT- Optimization


  I am still using Amibroker 4.60.1. I have a Pent 4, 1.6GHz, 1.00GB of
  Ram. Running XP Pro. My task manager shows 33 processes with
  available memory of 851,500k.

  I have one code that I optimize for 9 variables. I try and set the
  range as small as possible, but even then it can take 30 to 45
  minutes to complete.

  Is there anything I can do to speed up this process? Would it run
  faster using Windows 2000? I tried running it using 'safe mode' but
  it seemed to take just as long.

  Any ideas or suggestions appreciated. Joe



  Check AmiBroker web page at:
  http://www.amibroker.com/

  Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html


        Yahoo! Groups Sponsor
              ADVERTISEMENT





----------------------------------------------------------------------------
--
  Yahoo! Groups Links

    a.. To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

    b.. To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

    c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



[Non-text portions of this message have been removed]



Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html


Yahoo! Groups Sponsor
 
 ADVERTISEMENT
 <http://us.ard.yahoo.com/SIG=129qe9cc3/M=295196.4901138.6071305.3001176/D=g
roups/S=1705632198:HM/EXP=1096487508/A=2128215/R=0/SIG=10se96mf6/*http://com
panion.yahoo.com>  


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
<mailto:amibroker-unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe>
*  
* Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
<http://docs.yahoo.com/info/terms/> .




[Non-text portions of this message have been removed]



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