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

[amibroker] Real Time time measurements



PureBytes Links

Trading Reference Links

I am using WIN 2000 with 3GHz Hyperthreading CPU... with eSignal data feed.
 
Since I use multiple windows with multiple indicators in each window, my total time for each pass on all windows is over 1 second. Way too slow...
 
 
Using TICK data base with 20000 bars of data (about 10 days for NQ) measured the time required to execute x = Foreign(..) statement.
 
I used DebugView with following code.
 
My results are that it takes 25 ms to process a single statement.  This seems like a lot of time ...
 
Can anyone verify similar timing results ....
 
Thanks
 
Ara
 
==============================================================================
 
The value of  Count may need to be increased to get meaningful results
 
==============================================================================
 
 
//File: Test bed
 

Count = 10;

_TRACE("LoopTime - Start - #1  " + Now(4));
for (i=0; i<Count; i++)
{
RT_UpVolume       = Foreign("$UVOL","Close");
}
 
_TRACE("LoopTime - end 1 - #2  " + Now(4));
 
for (i=0; i<Count; i++)
{
RT_UpVolume       = Foreign("$UVOL","Close");
RT_DnVolume       = Foreign("$DVOL","Close");
 
}
_TRACE("LoopTime - end 2 - #3  " + Now(4));
 
for (i=0; i<Count; i++)
{
RT_UpVolume       = Foreign("$UVOL","Close");
RT_DnVolume       = Foreign("$DVOL","Close");
RT_UpVolume       = Foreign("$UVOL","Close");
RT_DnVolume       = Foreign("$DVOL","Close");
}

_TRACE("LoopTime - end 2 - #4  " + Now(4));
_TRACE("LoopTime - end  - #5 =============================================================");


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