Well I guess we are all n00bs basically!! I think you can definitely get burned if you start thinking you're an expert. Trading's a head-game, remember??

Besides, I think it's neat how the Zorro project attracts such a wide range of thinkers... they range from n00b to mad scientist, and everything inbetween.

Btw in the above code, it occurred to me that I do not need the "periodic save" logic, because the only items being saved currently are metrics that are linked to trade opens/closes. Therefore that activity in-and-of-itself is the best trigger I think. Here is what I'm using now on my demo account:
Code:
static int numOpenLastCheck, zorroIteration; //track changes in trade open/closes
if(is(INITRUN)) numOpenLastCheck=0; else numOpenLastCheck=NumOpenTotal;
if(is(INITRUN)) zorroIteration=1; else zorroIteration++;
if (zorroIteration==2) loadStats("dt-e9-htc-30min.ini"); //load most recent stats that were saved to disk
if(NumOpenTotal != numOpenLastCheck) saveStats("dt-e9-htc-30min.ini"); //save stats to disk upon trade count changes