In Listing 34, I note that SkillLong[0] is not initialized. I believe it would have to be initialized outside the HuckTrend function or as a static within it.
In listing 29: Simple Profit System, there is an error in line 35 where the script is supposed to take on the previously optimized risk management parameters of the Short trade before it goes Short.
The revision is below: -------------------------- if (hour() == 21 ){ Stop=StopS; // should not be StopL TakeProfit=TakeProfitS;// should not be TakeProfitL enterShort(); }