... being put on the spot like that, I loaded up a few experiments, backtesting only, and, well, I think there's a bit to go. It looks nice, decorating peaks blue and troughs red, on the prospect of catching the next major jump up or down.
But, is it a winner?
Well, it keeps opening trades by breach level logic, until one of a few things come about
: firstly it might reach a favourable profit situation, secondly it might reach a limit to the number of trades, and thirdly it might reach a "terminal" loss situation. The first is good, the second is 50-50, and the third is bad.
By design, the third won't happen without the second, because while new trades can be added in the most recent price move direction, the EA does so, and thereby it changes the effective trade size and direction. (No need to redo the math

).
It seems the trade limit has two reasons: either reaching the set count of trades, or reaching as many trades as margin allows. The count of trades is also tied to an optional force closing, while a margin limit merely makes the EA sit and wait for an eventual win or loss.
Perhaps the force close option should apply to margin limit as well? The exits would then be either profitable or the 50-50 force close, which perhaps would make it statistically a 50-50 machine, though tunable to lean towards winning for finite time and a sub set of potential price move histories.
Ok, so it's easy to be critical, and to shine of pretentious wisdom without having trialled all, or most, even, of the options. That's what you get when you ask for it
