OPEN-SOURCE SCRIPT

Simple Trailing Buy & Stop Strategy

Allows you to backtest a simple percentage based trailing stop, with a trailing buy. Experiment with different percentages on different timeframes for different charts.

For BTCUSD, on daily 4.3% stop and 1.9% buy works well, while on 4hr a 1.5% stop and 1.9% buy works best.

Please comment with any other combos that work well for you on different markets or timeframes.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.