OPEN-SOURCE SCRIPT
Cập nhật Bollinger ALTswap Alert v1.0 (MA28 Rotation ALT↔BTC)

Inspired by: Bollinger Awesome Alert R1 by JustUncleL
What is it?
BBALTSWAP overlays Bollinger Bands (20, 2), a 3-EMA, and a Rotation MA (default 28), then gives state-change alerts to rotate between ALT ↔ BTC on any ALT/BTC chart.
Core rotation rule
• Rotate → ALT when close > Bollinger middle and close > MA28.
• Rotate → BTC when close < Bollinger middle and close < MA28.
• Otherwise: Wait (no rotation).
Labels only print when the state changes (to avoid spam). You can also compute the rotation on a higher timeframe (default 4h) while viewing a lower one (e.g., 1h).
Optional extras
• Breakout arrows (scalping-style) when 3-EMA crosses the Bollinger middle with an Awesome Oscillator direction filter.
• Bollinger Squeeze coloring (relative width) to highlight expansion/contraction.
• Min bars between labels to throttle how often rotation labels appear.
Inputs (highlights)
• Use EMA for Bollinger / Rotation MA
• Bollinger length & multiplier
• AO fast/slow lengths
• Higher-timeframe selector for rotation (default 240 = 4h)
• Show breakout arrows / show “Wait” / min bars between labels
How to use (simple playbook)
1. Chart: open your ALT/BTC pair (e.g., ETHBTC).
2. Direction: leave rotation HTF at 4h for steadier signals.
3. Execution: take rotations on bar close; manage entries on your lower TF (1h/15m) if desired.
4. Override check (optional): when BTCUSDT is in a fresh breakout, prefer BTC even if ALT flashes briefly.
Alerts
Add two alerts, Once per bar close:
• “Rotate to ALT (state change)”
• “Rotate to BTC (state change)”
Notes
• Works on any ALT/BTC pair.
• The breakout arrows are optional and independent from the rotation signals.
• This tool is educational; not financial advice.
What is it?
BBALTSWAP overlays Bollinger Bands (20, 2), a 3-EMA, and a Rotation MA (default 28), then gives state-change alerts to rotate between ALT ↔ BTC on any ALT/BTC chart.
Core rotation rule
• Rotate → ALT when close > Bollinger middle and close > MA28.
• Rotate → BTC when close < Bollinger middle and close < MA28.
• Otherwise: Wait (no rotation).
Labels only print when the state changes (to avoid spam). You can also compute the rotation on a higher timeframe (default 4h) while viewing a lower one (e.g., 1h).
Optional extras
• Breakout arrows (scalping-style) when 3-EMA crosses the Bollinger middle with an Awesome Oscillator direction filter.
• Bollinger Squeeze coloring (relative width) to highlight expansion/contraction.
• Min bars between labels to throttle how often rotation labels appear.
Inputs (highlights)
• Use EMA for Bollinger / Rotation MA
• Bollinger length & multiplier
• AO fast/slow lengths
• Higher-timeframe selector for rotation (default 240 = 4h)
• Show breakout arrows / show “Wait” / min bars between labels
How to use (simple playbook)
1. Chart: open your ALT/BTC pair (e.g., ETHBTC).
2. Direction: leave rotation HTF at 4h for steadier signals.
3. Execution: take rotations on bar close; manage entries on your lower TF (1h/15m) if desired.
4. Override check (optional): when BTCUSDT is in a fresh breakout, prefer BTC even if ALT flashes briefly.
Alerts
Add two alerts, Once per bar close:
• “Rotate to ALT (state change)”
• “Rotate to BTC (state change)”
Notes
• Works on any ALT/BTC pair.
• The breakout arrows are optional and independent from the rotation signals.
• This tool is educational; not financial advice.
Phát hành các Ghi chú
Inspired by: Bollinger Awesome Alert R1 by JustUncleLv1.0.2
What is it?
BBALTSWAP overlays Bollinger Bands (20, 2), a 3-EMA, and a Rotation MA (default 28), then gives state-change alerts to rotate between ALT ↔ BTC on any ALT/BTC chart.
Core rotation rule
• Rotate → ALT when close > Bollinger middle and close > MA28.
• Rotate → BTC when close < Bollinger middle and close < MA28.
• Otherwise: Wait (no rotation).
Labels only print when the state changes (to avoid spam). You can also compute the rotation on a higher timeframe (default 4h) while viewing a lower one (e.g., 1h).
Optional extras
• Breakout arrows (scalping-style) when 3-EMA crosses the Bollinger middle with an Awesome Oscillator direction filter.
• Bollinger Squeeze coloring (relative width) to highlight expansion/contraction.
• Min bars between labels to throttle how often rotation labels appear.
Inputs (highlights)
• Use EMA for Bollinger / Rotation MA
• Bollinger length & multiplier
• AO fast/slow lengths
• Higher-timeframe selector for rotation (default 240 = 4h)
• Show breakout arrows / show “Wait” / min bars between labels
How to use (simple playbook)
1. Chart: open your ALT/BTC pair (e.g., ETHBTC).
2. Direction: leave rotation HTF at 4h for steadier signals.
3. Execution: take rotations on bar close; manage entries on your lower TF (1h/15m) if desired.
4. Override check (optional): when BTCUSDT is in a fresh breakout, prefer BTC even if ALT flashes briefly.
Alerts
Add two alerts, Once per bar close:
• “Rotate to ALT (state change)”
• “Rotate to BTC (state change)”
Notes
• Works on any ALT/BTC pair.
• The breakout arrows are optional and independent from the rotation signals.
• This tool is educational; not financial advice.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.