Actualizado
3CandleWar

3CandleWar — 3-Candle Sweep & Reclaim Pattern with Order Block Confluence
3CandleWar is a price-action indicator that detects a precise 3-candle reversal pattern based on liquidity sweeps, reclaims, and institutional Order Blocks (OB). It is designed for discretionary and semi-automated traders who want clean, high-probability entries with trend confirmation.
🔍 How the Pattern Works
The indicator tracks a 3-candle sequence (C1 → C2 → C3):
C1 — the reference candle. Its high and low define the range to be swept.
C2 — the manipulation candle. Price must sweep only one side of C1's range (low for a bullish setup, high for a bearish setup) and then close back inside the C1 range (reclaim).
C3 — the confirmation candle. Price must:
hold above C1's low (bullish) or below C1's high (bearish),
break the opposite side of C1's range,
close beyond that level (with an optional ATR-based tolerance).
When all conditions align, a ★ BUY or ★ SELL signal is printed on the chart.
📦 Order Block Confluence
The script automatically detects Bullish and Bearish Order Blocks using:
A classic engulfing structure (last opposite candle before displacement).
An optional ATR-based displacement filter to avoid weak OBs.
Two powerful features are built on top of this:
OB Confluence Tag — when the confirmed signal forms right at (or near) a matching Order Block, an "OB" label is shown to highlight the confluence.
Opposite OB Warning — if the signal forms near an opposite-side Order Block, a ⚠OB warning label appears, signaling a possible reversal risk.
The script also supports an MA bypass: if C1 or C2 touched a matching OB, the moving-average trend filter can be automatically skipped.
📈 Trend Filter
An optional SMA filter (custom timeframe, default 5 min, length 20) ensures signals are only taken in the direction of the prevailing trend. The MA can be plotted with dynamic coloring (green above, red below) for instant visual feedback.
🎨 Visual Features
Horizontal C1 high/low lines, gray while waiting for C2, fuchsia once the setup is valid and awaiting C3.
Order Block boxes with configurable transparency, mitigation on close or wick, and real-time or confirmed drawing.
Historical confirmed setups are kept on screen (configurable, default 50).
Debug mode to inspect OB touches, tolerance, and internal state.
🔔 Alerts
Fully compatible with TradingView alerts, including:
Buy / Sell Setup Pending (C2 valid, awaiting C3)
Buy / Sell Confirmed (C3 completes the pattern)
Buy / Sell + Order Block (confluence)
Buy / Sell Warning — Opposite OB (reversal risk)
⚙️ Suggested Use
Best on liquid markets (FX majors, indices, crypto, futures).
Recommended timeframes: 5m to 15m for intraday, 1H to 4H for swing.
Works well combined with market structure, session levels, or higher-timeframe bias.
⚠️ Notes
With "Draw OB on live candle" enabled, Order Block boxes may repaint until the candle closes. Disable it for non-repainting behavior.
This is a discretionary tool, not a full trading system. Always combine with proper risk management.
3CandleWar is a price-action indicator that detects a precise 3-candle reversal pattern based on liquidity sweeps, reclaims, and institutional Order Blocks (OB). It is designed for discretionary and semi-automated traders who want clean, high-probability entries with trend confirmation.
🔍 How the Pattern Works
The indicator tracks a 3-candle sequence (C1 → C2 → C3):
C1 — the reference candle. Its high and low define the range to be swept.
C2 — the manipulation candle. Price must sweep only one side of C1's range (low for a bullish setup, high for a bearish setup) and then close back inside the C1 range (reclaim).
C3 — the confirmation candle. Price must:
hold above C1's low (bullish) or below C1's high (bearish),
break the opposite side of C1's range,
close beyond that level (with an optional ATR-based tolerance).
When all conditions align, a ★ BUY or ★ SELL signal is printed on the chart.
📦 Order Block Confluence
The script automatically detects Bullish and Bearish Order Blocks using:
A classic engulfing structure (last opposite candle before displacement).
An optional ATR-based displacement filter to avoid weak OBs.
Two powerful features are built on top of this:
OB Confluence Tag — when the confirmed signal forms right at (or near) a matching Order Block, an "OB" label is shown to highlight the confluence.
Opposite OB Warning — if the signal forms near an opposite-side Order Block, a ⚠OB warning label appears, signaling a possible reversal risk.
The script also supports an MA bypass: if C1 or C2 touched a matching OB, the moving-average trend filter can be automatically skipped.
📈 Trend Filter
An optional SMA filter (custom timeframe, default 5 min, length 20) ensures signals are only taken in the direction of the prevailing trend. The MA can be plotted with dynamic coloring (green above, red below) for instant visual feedback.
🎨 Visual Features
Horizontal C1 high/low lines, gray while waiting for C2, fuchsia once the setup is valid and awaiting C3.
Order Block boxes with configurable transparency, mitigation on close or wick, and real-time or confirmed drawing.
Historical confirmed setups are kept on screen (configurable, default 50).
Debug mode to inspect OB touches, tolerance, and internal state.
🔔 Alerts
Fully compatible with TradingView alerts, including:
Buy / Sell Setup Pending (C2 valid, awaiting C3)
Buy / Sell Confirmed (C3 completes the pattern)
Buy / Sell + Order Block (confluence)
Buy / Sell Warning — Opposite OB (reversal risk)
⚙️ Suggested Use
Best on liquid markets (FX majors, indices, crypto, futures).
Recommended timeframes: 5m to 15m for intraday, 1H to 4H for swing.
Works well combined with market structure, session levels, or higher-timeframe bias.
⚠️ Notes
With "Draw OB on live candle" enabled, Order Block boxes may repaint until the candle closes. Disable it for non-repainting behavior.
This is a discretionary tool, not a full trading system. Always combine with proper risk management.
Notas de prensa
🔄 What's New vs. Previous VersionOB Touch Label module — highlights only the first touch of significant Order Blocks (size-filtered in ATR), with a configurable label limit. This avoids chart clutter and marks the most relevant reactions.
Automatic SL/TP drawing — every confirmed signal now plots:
an Entry line at the close,
a Stop Loss box beyond C1 with an ATR-based minimum distance,
a Take Profit box at a user-defined R:R ratio,
an optional R:R info label.
Trade box management — capped history, right-extension control, and independent colors/transparency for TP and SL.
Non-repainting trade levels — SL/TP are drawn only on confirmed bars, so risk levels are stable once printed.
Additional alert for important OB touches.
Internal refactor — bull/bear OB arrays now track a touched flag, enabling per-OB first-touch logic without affecting the original pattern detection.
Notas de prensa
Changes in This Version (3CandleWarEng)This release introduces full English localization and a set of functional improvements over the previous version:
Full English translation — every input group, input label, plot title, alert message, alertcondition title and message, and code comment has been translated into English. The indicator is now fully international and ready for a global audience.
Renamed to 3CandleWarEng — the indicator title has been updated for clarity and consistency with the English release.
OB Touch Label module — highlights only the first touch of significant Order Blocks (size-filtered in ATR), with a configurable label limit. This avoids chart clutter and marks the most relevant reactions.
Automatic SL/TP drawing — every confirmed signal now plots:
an Entry line at the close,
a Stop Loss box beyond C1 with an ATR-based minimum distance,
a Take Profit box at a user-defined R:R ratio,
an optional R:R info label.
Trade box management — capped history, right-extension control, and independent colors/transparency for TP and SL.
Non-repainting trade levels — SL/TP are drawn only on confirmed bars, so risk levels remain stable once printed.
Additional alert for important OB touches.
Internal refactor — bull/bear OB arrays now track a touched flag, enabling per-OB first-touch logic without affecting the original pattern detection.
No functional regressions — the core 3-candle pattern logic, MA filter, OB mitigation, and signal conditions are unchanged and behave exactly as before.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.