OPEN-SOURCE SCRIPT
ONLY LONG – 4H Breakout → 1H EMA(12/21) [Signals]

🔹 ONLY LONG – 4H Breakout → 1H EMA(12/21) [Signals]
Author: SystemsOverFeelings
Type: Signal-only indicator (non-repainting)
Timeframe: Designed for the 1H chart
Markets: BTCUSDT perpetual& major pairs
📖 Concept
A high-timeframe confirmation model for trend-continuation longs.
It detects:
A 4-Hour breakout candle closing above recent range highs,
With very-high volume confirmation, and
Then waits for a 1-Hour pullback into the EMA(12/21) band or a Break of Structure (BOS) to re-enter.
No repainting — all 4H logic uses request.security(..., lookahead_off) for confirmed data.
🧩 Signal Logic
✅ 4H Trigger: Breakout candle with volume > SMA(20) × user multiplier.
✅ Armed Regime: Green background = system ready for 1H entries.
🟢 LONG Signal: 1H candle consolidates inside or touches the EMA band, or shows BOS confirmation.
❌ EXIT Signal: 4H EMA(12) crosses below EMA(21).
All signals are visually marked and alert-ready.
⚙️ Adjustable Parameters
4H volume multiplier
Range lookback days
Pullback strictness (inside/touch)
1H BOS pivot length & mode
Expiry time for invalidated setups
🔔 Alerts
Built-in alerts for:
4H breakout trigger
1H long entry signal
4H band exit
Use them directly via “Create Alert → Condition → This Script → Choose Signal.”
💡 Notes
Works best on BTC/ETH 1H chart.
Non-repainting, multi-timeframe logic.
Use for directional bias or entry timing — not financial advice.
Author: SystemsOverFeelings
Type: Signal-only indicator (non-repainting)
Timeframe: Designed for the 1H chart
Markets: BTCUSDT perpetual& major pairs
📖 Concept
A high-timeframe confirmation model for trend-continuation longs.
It detects:
A 4-Hour breakout candle closing above recent range highs,
With very-high volume confirmation, and
Then waits for a 1-Hour pullback into the EMA(12/21) band or a Break of Structure (BOS) to re-enter.
No repainting — all 4H logic uses request.security(..., lookahead_off) for confirmed data.
🧩 Signal Logic
✅ 4H Trigger: Breakout candle with volume > SMA(20) × user multiplier.
✅ Armed Regime: Green background = system ready for 1H entries.
🟢 LONG Signal: 1H candle consolidates inside or touches the EMA band, or shows BOS confirmation.
❌ EXIT Signal: 4H EMA(12) crosses below EMA(21).
All signals are visually marked and alert-ready.
⚙️ Adjustable Parameters
4H volume multiplier
Range lookback days
Pullback strictness (inside/touch)
1H BOS pivot length & mode
Expiry time for invalidated setups
🔔 Alerts
Built-in alerts for:
4H breakout trigger
1H long entry signal
4H band exit
Use them directly via “Create Alert → Condition → This Script → Choose Signal.”
💡 Notes
Works best on BTC/ETH 1H chart.
Non-repainting, multi-timeframe logic.
Use for directional bias or entry timing — 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.