I think I have found the problem. Fix in post 1.
Coders go to void StartCT().
Underneath //This function acts as start() for counter-trend trading
add this:
and recompile.
It looks as though TOB's code is incorrect unless Start_Recovery_at_trades = 2. Really useful post again Ras; cheers.
Coders go to void StartCT().
Underneath //This function acts as start() for counter-trend trading
add this:
Inserted Code
//ReadTradesIntoMemory does not set RecoveryInProgress, so do this now instead if (OpenTrades >= Start_Recovery_at_trades) RecoveryInProgress = true; else RecoveryInProgress = false;
and recompile.
It looks as though TOB's code is incorrect unless Start_Recovery_at_trades = 2. Really useful post again Ras; cheers.