V177 backtesting

 
Thanks for the changes in 177 backtesting... it now does seem to work much better than 176!!

I still have a bit of a mystery: my gridmaker handles both long and short grids at the same time. In forward testing, this works as expected. In backtesting, it does not. For example, If i run 'longs only' and 'shorts only', the sum of the results should give me the same as 'longs and shorts'.

This does not happen in backtesting and there are far fewer trades.

Also a small suggetsion that could be useful: if i have a boolean parameter in the input, it currently cannot be optimised. It is a pity because it generated two cases: true and false, which would be easy to optimise!

Thanks and reagrds,
Reason: