simple script. enter rule is open>open=BUY_else_SELL (open means open price 1 candle ago, so basically its if price now greater than price 1 candle ago...)
exit rule is Trailing Stop.
1 trade per candle, here on daily chart BTCUSDT with binance commision included in result.
254 million percent profit....
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Want to use this script on a chart?