OPEN-SOURCE SCRIPT

BTC Breakout Bot (TP/SL + Alerts) ๐Ÿš€

292
This strategy targets Bitcoin (BTC/USDT) breakout trades by detecting price moves beyond recent highs and lows, with built-in risk management and alerts.

How it works:
๐Ÿ“ˆ Long Entry: When price breaks above the highest high of the last N candles (default 20)
๐Ÿ“‰ Short Entry: When price breaks below the lowest low of the last N candles
๐ŸŽฏ Take Profit: Automatically set at a percentage from entry price (default 5%)
โš ๏ธ Stop Loss: Automatically set at a percentage from entry price (default 2%)
๐Ÿ”” Alerts: Triggered on every long and short breakout trade, compatible with Telegram/webhook notifications
Parameters:
โณ Breakout Lookback: Number of candles used to identify breakout levels (default 20)
๐Ÿ’ฐ Take Profit (%): Profit target as % from entry (default 5%)
๐Ÿ›‘ Stop Loss (%): Maximum allowed loss as % from entry (default 2%)

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.