Added scalper mode (only for backtesting). This still needs to be worked out, but hopefully conveys the idea I was trying to implement. I'm not following the development any further as it doesn't make sense with the current state of Tradingview's 'Strategy Tester'. Further development would only make sense with a 'strategy tester' similar to that of MT4/MT5.
The example doesn't use the scalping mode. All parameters are default but Trade direction = short, trend start = 2022-08-10, Break even = "Partly close" enabled, Stop loss count = enabled