Wednesday, December 10, 2008

DLL now adapts calculation depth to CPU speed

One size doesn't quite fit all so I have added a routine which sets a Population Multiplier in our Genetic Algorithm according to CPU speed. Of course, CPUs nowadays are multi-core, but since it is not clear how TradeStation utilizes processing power, it was decided to keep this simple.

if ( nCPUSpeed > 3000 ) nPopMult = 12;
else if ( nCPUSpeed > 2000 ) nPopMult = 9;
else if ( nCPUSpeed > 1500 ) nPopMult = 6;
else nPopMult = 3;

In other words, if the CPU is over 3GHz (3000) it will look 4 times deeper than an old or low entry processor running under 1.5GHz.

No other functionalities added in this release, except for Swing2 which calculates Fib automatically (hence eliminating synch issues). The RetrievePivotInfo indicator is left for tutorial purposes.


DLL version is 1.21 (Dec 10th 2008)