We go long when an uptrend started 2 candles ago. We close the position when an uptrend ended 2 candles ago.
Parameters are just the required parameters for the indicator + backtest timeframe
To avoid the noise and catch big uptrends, run on higher timeframes (4h, 1D ...)
The script also contains a code to show some stats suitable when on a mobile device.
DISCLAIMER: This is not an advice to trade. Use at your own risk. The author of this script cannot be held responsible for any losses incurred directly or indirectly by the usage of this strategy.