"Close partially with profit" + "Only after deal N" + "New martingale deals only on signal"
A martingale focused in lowering floating losses
A strategy in which if the martingale is over "x" number of trades open (or "x" floating loss) it starts to close the martingale partially everytime the signal changes to the opposite direction.
To exemplify: imagine that the 6th trade of a martingale becomes positive, and we already have a big floating loss, and the positive of the 6th trade isn't enough to close the prior 5 trades, but is enough to close the negative of the 5th, 4th and 3rd trades, so we would close the 6th, 5th, 4th and 3rd trades and let the 1st and 2nd open (and the martingale could even continue again). This way we would, hopefully, reduce the maximum potential DD
1. When this algo must start it's work? After deal #X (parameter)? After loss >= X usd?
2. Which part of deals it must close?
Firstly, profit of 6th will be enough to cover only 5th loss. Then — to cover 5th and 4th.
If it close 6+5 with 0 profit, 1-4 deals continue to increase loss and how it will be covered?
3. After close of part of deals (4th, 5th and 6th for example), EA open the next martingale deal because price is far enough from last opened deal. So, it will reopen 4th deal at the current price right after closing.
Show me where I'm wrong.