OPEN-SOURCE SCRIPT

Opposing Candle V2

215
🟩 OC (Opposing Candle) Multi–Timeframe Framework
🔍 Overview

The OC Indicator automatically detects and displays Opposing Candles (OCs) across up to three timeframes.
An Opposing Candle is a candle that fully engulfs the previous one, signaling a potential shift in control — either a trend continuation or a trend reversal.

This multi–timeframe framework gives traders a structured way to visualize displacement, pullbacks, and momentum shifts between timeframes.

⚙️ How It Works

Each OC is drawn as a box showing:

High & Low → The candle’s full range

Open Line (black) → Key control level

Midline (white) → Candle equilibrium

Optional labels for timeframe and session

You can enable up to 3 timeframes (e.g., 30m / 1H / 4H) and adjust how many OCs to display for each.

📈 Trading Framework
🔹 Continuation Setup (Trend Following)

1. 4H Bias → Bullish or Bearish

Identify clear trend structure (HH/HL = bullish, LH/LL = bearish).

Confirm strong displacement and visible gaps between OCs — signs of momentum and healthy trend continuation.

2. 1H Confirmation OC

OC forms in the direction of the 4H bias, confirming control.

3. 30min Pullback OC

Opposite–colored OC appears → represents the pullback.

4. Entry Trigger

A yellow candle closes beyond the 30min OC open line, confirming the end of the pullback.
→ Enter in trend direction.

🎯 Targets

Target 1: Next 1H OC high or low (in trend direction)

Target 2: Next 4H OC high or low
🛑 Stop: Beyond the 30min OC’s opposite wick

🔹 Reversal Setup (Trend Shift)

1. 4H Structure → Extended or Losing Momentum

When there are no higher–timeframe gaps and no displacement, momentum weakens — often a sign of potential reversal.

2. Opposing OC Forms on HTF

A strong engulfing OC appears against the previous trend at a key structural level.

3. Lower–Timeframe Alignment

1H and 30min OCs begin forming in the new direction, confirming control shift.

4. Entry Trigger

Break of the lower–timeframe OC open line signals the reversal confirmation.

🟢 Example: Bullish Reversal

4H downtrend shows compression (no displacement)

4H bullish OC forms at support

30min breaks above a bearish OC’s open line → Go long

🔴 Example: Bearish Reversal

4H uptrend stalls at resistance

4H bearish OC forms

30min breaks below a bullish OC’s open line → Go short

🎯 Targets

Target 1: Nearest opposing 1H OC high/low

Target 2: Major 4H structural high/low
🛑 Stop: Beyond the reversal OC wick

🧠 Key Concepts

Displacement = Strength. Strong, impulsive moves with clear gaps between OCs show continuation.

Compression = Weakness. Overlapping candles and no HTF displacement often hint at reversal.

OC = Control Candle. The open line is the “line in the sand” — when price breaks it, control flips.

Multi–TF Confluence = Precision. 4H → 1H → 30m gives you structure → confirmation → entry accuracy.

🎨 Features

✅ Multi–Timeframe OC detection (default: 30m / 1H / 4H)
✅ Bullish & Bearish boxes with open and midlines
✅ Break candles highlighted yellow
✅ Optional labels (timeframe + session)
✅ Session filters (Asia, London, NYAM, NYPM)
✅ Fully customizable visuals and extension lengths

Wyłączenie odpowiedzialności

Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.