Trend Filter & XCODE (H4)
A swing‑trend framework on H4 that pairs a directional Trend Filter with XCODE momentum signals. We only engage when bias and impulse agree, with strict break‑and‑hold confirmation.

Tools & settings
- Trend Filter (e.g., EMA(50) slope + HH‑HL / LH‑LL structure) to define bias.
- XCODE momentum / color‑flip for timing (use closes, not ticks).
- Optional: ATR(14, H4) for stop sizing; session markers for context.

Idea
Trade pullbacks within the dominant swing. Let price mean‑revert into value; act when XCODE flips back with structure aligned.

Long setup
- Bias up (Trend Filter confirms); pullback into value zone.
- XCODE turns bullish and price closes back above the micro‑level/EMA20. Trigger: confirm close or break‑and‑hold of the pullback high.

Short setup
- Bias down; rally into value.
- XCODE turns bearish and price closes below the micro‑level/EMA20. Trigger: confirm close or break‑and‑hold of the pullback low.