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
=============================================================");