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%)
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.