Coded fixes for the bugs uncovered by Pavel at FF. At least, I think I have - the code is pretty straightforward, but we shall see. 'Tis working ok in strategy tester. The bugs are in the stop loss functions; they have not shown up on my demo because I am using hedging rather than stops.
Added a couple of new inputs. From the relevant parts of the user guide:
- MinStopLoss: the smallest stop loss you will accept if you are not using hedging to manage losing trades.
- BreakEvenProfit: this allows you to lock in some of the profit at breakeven time. It tells the robot to add\subtract this figure from the breakeven stop loss.