OPEN-SOURCE SCRIPT
TwoCandle BreakZone by zbc888

📌Overview
The 2candle-break indicator identifies short-term momentum entries using a Two Bar Pullback Break strategy. Designed primarily for Binary Options (5min–1hr charts) and adaptable to Forex scalping, it highlights breakout zones with dynamic support/resistance lines and alerts.
🔍Core Strategy Logic
✅ Bullish Break (Green Arrow)
Visuals:
Filters:
Optional MACD, moving averages, or Guppy’s Three Bar Count Back method for refined signals.
References & Resources
Trading Concepts:
"Fundamentals of Price Action Trading" (YouTube).
Daryl Guppy’s Three Bar Count Back Method (YouTube).
📝Note on Code vs. Description
The provided code focuses on bullish momentum tracking (via TDUp), while the descriptive strategy emphasizes pullbacks after bearish moves. This discrepancy suggests the code may represent a simplified version or component of the full indicator. For complete functionality (statistics, filters), refer to the official resource.
The 2candle-break indicator identifies short-term momentum entries using a Two Bar Pullback Break strategy. Designed primarily for Binary Options (5min–1hr charts) and adaptable to Forex scalping, it highlights breakout zones with dynamic support/resistance lines and alerts.
🔍Core Strategy Logic
✅ Bullish Break (Green Arrow)
- Setup:
- Requires 2–3 consecutive bearish (red) candles followed by a bullish (green) candle forming a pivot.
- The breakout triggers when the bullish candle’s high exceeds the highest high of the preceding bearish candles.
- Visuals:
- A blue resistance line marks the breakout level.
- A green fill highlights the pullback range between support/resistance.
❌ - Bearish Break (Red Arrow)
- Setup:
- Requires 2–3 consecutive bullish (green) candles followed by a bearish (red) candle forming a pivot.
- The breakout triggers when the bearish candle’s low breaks the lowest low of the preceding bullish candles.
Visuals:
A red support line marks the breakdown level.
💻 Code Implementation HighlightsConsecutive Candle Counter:- Uses TDUp to track consecutive bullish candles (resets on bearish closes).
- Example: TDUp == 2 signals two consecutive bullish candles.
Support/Resistance Lines: - Draws dynamic lines using line.new based on the highest/lowest of the prior two candles.
- Lines extend to the right (extend.right) and update as new bars form.
- Labels for Consecutive Moves:
- Displays labels "2," "3," "4," or "5" above bars to indicate consecutive bullish candles (e.g., "2" for two in a row).
- Style Customization:
- Users can adjust line styles (solid/dashed/dotted).
- Trading Applications
- Binary Options
- Entry: Trade when price touches the breakout line (blue/red) and the arrow appears.
- Confirmation: Wait for a 1–2 pip pullback; if the arrow remains, enter at candle close.
- Avoid Weak Signals: Skip if the arrow disappears (lack of momentum).
- Forex Scalping
- Use default settings for quick trades.
- For longer-term trades, adjust MACD/MA filters (not shown in code but recommended).
- Additional Features (Descriptive)
- Binary Option Statistics:
- Tracks success/failure rates, max consecutive wins/losses, and more (not implemented in provided code).
Filters:
Optional MACD, moving averages, or Guppy’s Three Bar Count Back method for refined signals.
References & Resources
Trading Concepts:
"Fundamentals of Price Action Trading" (YouTube).
Daryl Guppy’s Three Bar Count Back Method (YouTube).
📝Note on Code vs. Description
The provided code focuses on bullish momentum tracking (via TDUp), while the descriptive strategy emphasizes pullbacks after bearish moves. This discrepancy suggests the code may represent a simplified version or component of the full indicator. For complete functionality (statistics, filters), refer to the official resource.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.