@dr_panther,

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();
}


Thanks so much,

OptimusPrime