OPEN-SOURCE SCRIPT
BTC Breakout Bot (TP/SL + Alerts) ๐

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%)
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%)
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.