New version with better stop-loss handling.
You may configure Max Drawdown with leverage (more drawdown but more profit) or with stop-loss (less drawdown but less profit).
Backtest for 2017-2018 with x2 leverage for counter-trend strategy.
With 0.1% comission this strategy will give 400000% profit with 27% drawdown on same settings.
No repaints, no trailing stop, no security functions.
If you are intrested in source code, or in a bot with this strategy (i planning to write one), PM me.