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

Re: [amibroker] Graphics performance question



PureBytes Links

Trading Reference Links

Hello,

It depends on your formula but generally speaking
SetBarsRequired() allows you to control that.
If you place it at the end of the formula, you can actually
force it to use less bars than normal.

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "Charles Stangor" <cstangor232@xxxxxxxxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Friday, November 18, 2005 7:07 PM
Subject: Re: [amibroker] Graphics performance question


> Right, and thanks  Is there a way to prevent all bars that are loaded from 
> being processed online when the IB plugin is running?  I was wondering if 
> setting a range might do that, but I think not.  Alternatively, I think I 
> should delete prior days bars while I am day trading.  Thanks
> 
> 
> ----- Original Message ----- 
> From: "Tomasz Janeczko" <amibroker@xxxxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Friday, November 18, 2005 12:04 PM
> Subject: Re: [amibroker] Graphics performance question
> 
> 
>> Hello,
>>
>> No, not as much, because actually display area is zero but formula is 
>> still executed
>> (if real-time data stream in) so, if it is complex enough it may take 
>> similar time.
>> Minimized window in non-real-time situation does not take any CPU cycles.
>>
>> Best regards,
>> Tomasz Janeczko
>> amibroker.com
>> ----- Original Message ----- 
>> From: "Charles Stangor" <cstangor232@xxxxxxxxxxxxxxxxxx>
>> To: <amibroker@xxxxxxxxxxxxxxx>
>> Sent: Friday, November 18, 2005 6:00 PM
>> Subject: Re: [amibroker] Graphics performance question
>>
>>
>>> Thanks Thomasz.  Thanks Terry.
>>>
>>> What is the status of a minimized window?  My impression is that it takes 
>>> up
>>> as much CPU as a window that opened for display.  Is that the case?
>>>
>>> ----- Original Message ----- 
>>> From: "Tomasz Janeczko" <amibroker@xxxxxx>
>>> To: <amibroker@xxxxxxxxxxxxxxx>
>>> Sent: Friday, November 18, 2005 11:44 AM
>>> Subject: Re: [amibroker] Graphics performance question
>>>
>>>
>>>> Hello,
>>>>
>>>> It all depends on many factors including
>>>> a) complexity of the formulas you use
>>>> b) length of data used and number of bars visible
>>>> c) screen resolution / color depth
>>>> d) 2D graphic card performance / drivers / amount of memory on the card,
>>>> etc
>>>>
>>>> As for a) and c) - for example
>>>>
>>>> "Price all in one" formula shipped with AmiBroker
>>>> that plots price candlesticks, 3 moving averages, bollinger bands, and
>>>> volume chart
>>>> takes about 0.008 sec when run on AthlonXP @1.8GHz clock speed when
>>>> applied to 6000 daily bars.
>>>> It takes 0.009 sec when applied to 60000 1-minute bars if it is zoommed 
>>>> it
>>>> and
>>>> can take as much as 0.4 sec when zoomed-out max (all bars visible).
>>>>
>>>> As you can see timings depend largely on amounts of data that need to be
>>>> processed.
>>>> All built-in formulas are written in optimum way so they take advantage 
>>>> of
>>>> QuickAFL feature that allows to use only visible bars to speed up
>>>> processing.
>>>>
>>>> However some user's formulas use functions like for example Cum() that
>>>> by nature require all bars. If your formula uses Cum() then, it forces
>>>> using all bars
>>>> regardless of what visible bars are. This greatly increases execution
>>>> time.
>>>> To find out how many bars your formula requires use Formula Editor,
>>>> Tools->CHECK
>>>> menu. It will display the number of past and future bars required.
>>>>
>>>> As for c) and d) depending on screen resolution / color depth / graphic
>>>> card
>>>> certain operations may be hardware accelerated and some not. You may 
>>>> play
>>>> with these settings to find out optimum.
>>>>
>>>> By the way: next version of AmiBroker will include the "chart timing
>>>> display" feature
>>>> that display time spent in execution and drawing each chart pane, to 
>>>> help
>>>> you
>>>> finding out which pane is causing biggest CPU load.
>>>>
>>>> Best regards,
>>>> Tomasz Janeczko
>>>> amibroker.com
>>>> ----- Original Message ----- 
>>>> From: "Charles Stangor" <cstangor232@xxxxxxxxxxxxxxxxxx>
>>>> To: <amibroker@xxxxxxxxxxxxxxx>
>>>> Sent: Friday, November 18, 2005 5:28 PM
>>>> Subject: Re: [amibroker] Graphics performance question
>>>>
>>>>
>>>>> What I discovered that is curious to me is that the CPU usage is 
>>>>> involved
>>>>> in
>>>>> displaying the charts, not running the AFLs.  My CPU usage ranges from
>>>>> 40-70
>>>>> percent max when AB is minimized -- the autotrading is working fine. 
>>>>> But
>>>>> when I maximize AB the CPU goes immediately to 100%
>>>>>
>>>>> In any case, I'm going to need a deskop! How would the following specs
>>>>> from
>>>>> Dell compare to a dual core Athlon64?
>>>>>
>>>>> Description: Dell Dimension 5150 Series. Intel(r) Pentium(r) 4 
>>>>> Processor
>>>>> 630 w/HT Technology (3.0GHz,800FSB)
>>>>>
>>>>> Is the the dual-core from Intel a lot faster than a P4?
>>>>>
>>>>> Thanks!
>>>>>
>>>>> chuck
>>>>>
>>>>>
>>>>> ----- Original Message ----- 
>>>>> From: "Gino" <ggen@xxxxxxxxxxxxx>
>>>>> To: <amibroker@xxxxxxxxxxxxxxx>
>>>>> Sent: Friday, November 18, 2005 11:03 AM
>>>>> Subject: RE: [amibroker] Graphics performance question
>>>>>
>>>>>
>>>>>> Yep, time for a dual-core Athlon64.
>>>>>>
>>>>>> I am upgrading my box as we speak. Just waiting for the new 
>>>>>> motherboard,
>>>>>> unfortunately on backorder.
>>>>>>
>>>>>> If you have any questions, just ask, hope I can help.
>>>>>>
>>>>>> Gino
>>>>>>
>>>>>>
>>>>>> -----Original Message-----
>>>>>> From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On
>>>>>> Behalf
>>>>>> Of Charles Stangor
>>>>>> Sent: Friday, November 18, 2005 10:44 AM
>>>>>> To: amibroker@xxxxxxxxxxxxxxx
>>>>>> Subject: Re: [amibroker] Graphics performance question
>>>>>>
>>>>>> Gino.  The answer you gave me is correct - 100% CPU.  Solution is a
>>>>>> faster
>>>>>> computer or fewer windows I suppose?    Thanks
>>>>>>
>>>>>>
>>>>>> ----- Original Message ----- 
>>>>>> From: "Gino" <ggen@xxxxxxxxxxxxx>
>>>>>> To: <amibroker@xxxxxxxxxxxxxxx>
>>>>>> Sent: Friday, November 18, 2005 10:18 AM
>>>>>> Subject: RE: [amibroker] Graphics performance question
>>>>>>
>>>>>>
>>>>>>> Hey Charles,
>>>>>>>
>>>>>>> You can check your "CPU Utilization" - most probably your CPU is
>>>>>>> "saturated", running at 90+ to 100% utilization.
>>>>>>>
>>>>>>> Go to Task Manager, Performance and you will see a graph of your CPU.
>>>>>>>
>>>>>>> Hope this will help.
>>>>>>>
>>>>>>> Best regards,
>>>>>>>
>>>>>>> Gino
>>>>>>>
>>>>>>>
>>>>>>> -----Original Message-----
>>>>>>> From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On
>>>>>>> Behalf
>>>>>>> Of Charles Stangor
>>>>>>> Sent: Friday, November 18, 2005 9:44 AM
>>>>>>> To: amibroker@xxxxxxxxxxxxxxx
>>>>>>> Subject: [amibroker] Graphics performance question
>>>>>>>
>>>>>>> I have 6 charts open, each running 3 1-minute AFLs.  I'm at the point
>>>>>>> that
>>>>>>> the windows display very slowly, if at all.  The graphics from prior
>>>>>>> windows
>>>>>>>
>>>>>>> sometimes do not close when I switch to AB, so this seems like a 
>>>>>>> video
>>>>>>> memory problem (as far as I can tell the execution of the AFLs is 
>>>>>>> OK).
>>>>>>> I'm
>>>>>>>
>>>>>>> wondering if anyone else has dealt with this issue.
>>>>>>>
>>>>>>> Thanks in advance
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Please note that this group is for discussion between users only.
>>>>>>>
>>>>>>> To get support from AmiBroker please send an e-mail directly to
>>>>>>> SUPPORT {at} amibroker.com
>>>>>>>
>>>>>>> For other support material please check also:
>>>>>>> http://www.amibroker.com/support.html
>>>>>>>
>>>>>>>
>>>>>>> Yahoo! Groups Links
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Please note that this group is for discussion between users only.
>>>>>>>
>>>>>>> To get support from AmiBroker please send an e-mail directly to
>>>>>>> SUPPORT {at} amibroker.com
>>>>>>>
>>>>>>> For other support material please check also:
>>>>>>> http://www.amibroker.com/support.html
>>>>>>>
>>>>>>>
>>>>>>> Yahoo! Groups Links
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Please note that this group is for discussion between users only.
>>>>>>
>>>>>> To get support from AmiBroker please send an e-mail directly to
>>>>>> SUPPORT {at} amibroker.com
>>>>>>
>>>>>> For other support material please check also:
>>>>>> http://www.amibroker.com/support.html
>>>>>>
>>>>>>
>>>>>> Yahoo! Groups Links
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Please note that this group is for discussion between users only.
>>>>>>
>>>>>> To get support from AmiBroker please send an e-mail directly to
>>>>>> SUPPORT {at} amibroker.com
>>>>>>
>>>>>> For other support material please check also:
>>>>>> http://www.amibroker.com/support.html
>>>>>>
>>>>>>
>>>>>> Yahoo! Groups Links
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Please note that this group is for discussion between users only.
>>>>>
>>>>> To get support from AmiBroker please send an e-mail directly to
>>>>> SUPPORT {at} amibroker.com
>>>>>
>>>>> For other support material please check also:
>>>>> http://www.amibroker.com/support.html
>>>>>
>>>>>
>>>>> Yahoo! Groups Links
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> Please note that this group is for discussion between users only.
>>>>
>>>> To get support from AmiBroker please send an e-mail directly to
>>>> SUPPORT {at} amibroker.com
>>>>
>>>> For other support material please check also:
>>>> http://www.amibroker.com/support.html
>>>>
>>>>
>>>> Yahoo! Groups Links
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>>> Please note that this group is for discussion between users only.
>>>
>>> To get support from AmiBroker please send an e-mail directly to
>>> SUPPORT {at} amibroker.com
>>>
>>> For other support material please check also:
>>> http://www.amibroker.com/support.html
>>>
>>>
>>> Yahoo! Groups Links
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>> Please note that this group is for discussion between users only.
>>
>> To get support from AmiBroker please send an e-mail directly to
>> SUPPORT {at} amibroker.com
>>
>> For other support material please check also:
>> http://www.amibroker.com/support.html
>>
>>
>> Yahoo! Groups Links
>>
>>
>>
>>
>>
>> 
> 
> 
> 
> 
> Please note that this group is for discussion between users only.
> 
> To get support from AmiBroker please send an e-mail directly to 
> SUPPORT {at} amibroker.com
> 
> For other support material please check also:
> http://www.amibroker.com/support.html
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
>


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.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/