# Technical Analysis

> Complete technical analysis knowledge base covering candlestick patterns, chart patterns, technical indicators, support/resistance, Fibonacci levels, pivot points, and supply/demand zones. Includes Python strategy engines for Fibonacci retracement/extension, Ichimoku cloud signals, MA ribbons, pivot point strategies, momentum/ROC, divergences (regular and hidden), Heikin-Ashi candles, Renko bricks, volume profile (POC/VAH/VAL), trend following systems, and mean reversion setups. Trigger when analyzing charts, identifying patterns, using indicators like RSI, MACD, Bollinger Bands, Stochastic, ADX, Ichimoku, ATR, or any technical analysis concept. USE FOR: candlestick patterns, hammer pattern, shooting star, doji, marubozu, spinning top, engulfing pattern, harami, tweezer top bottom, piercing line, dark cloud cover, morning star, evening star, three white soldiers, three black crows, abandoned baby, chart patterns, head and shoulders, double top double bottom, triple top triple bottom, ascending triangle, desce

- Skill: `mahmoud20138/technical-analysis` (Agent Skill)
- Install (CLI): `npx skillmds@latest add mahmoud20138/technical-analysis`
- Raw SKILL.md: https://api.skillmd.com/api/skills/mahmoud20138/technical-analysis/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: mahmoud20138 (https://skillmd.com/u/mahmoud20138)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/mahmoud20138/technical-analysis

---

> **Skill:** Technical Analysis  |  **Domain:** trading  |  **Category:** analysis  |  **Level:** intermediate
> **Tags:** `trading`, `analysis`, `technical`, `supply-demand`, `fibonacci`, `vwap`, `pivots`, `candlestick`


# Technical Analysis

---

## 1. Candlestick Patterns

### Reading Candlesticks
```
       High ──── ┐
                 │ Upper Wick (Shadow)
       Open ─── [█] Body (Bullish: Close > Open = White/Green)
       Close ── [█]
                 │ Lower Wick (Shadow)
       Low  ──── ┘

Body Color:
  Green/White = Close ABOVE Open (Bullish)
  Red/Black   = Close BELOW Open (Bearish)
```

---

### Single Candlestick Patterns

#### Hammer (Bullish Reversal)
- **Shape**: Small body at top, long lower wick (≥2× body), little/no upper wick
- **Context**: Must appear at BOTTOM of downtrend
- **Signal**: Bulls pushed price back up from lows; rejection of lower prices
- **Reliability**: 60–65%
- **Confirmation**: Next candle closes above hammer body
- **Colors**: Green hammer more bullish than red hammer (both valid)

#### Inverted Hammer (Bullish Reversal)
- **Shape**: Small body at bottom, long upper wick (≥2× body)
- **Context**: At bottom of downtrend
- **Signal**: Initial buying attempt; needs confirmation
- **Reliability**: 55–60%
- **Confirmation**: Next candle closes bullish

#### Hanging Man (Bearish Reversal)
- **Shape**: Identical to Hammer but at TOP of uptrend
- **Context**: Must appear at TOP of uptrend (context = opposite signal)
- **Signal**: Intraday selling pressure; warning of reversal
- **Reliability**: 55–60%

#### Shooting Star (Bearish Reversal)
- **Shape**: Small body at bottom, long upper wick (≥2× body), little/no lower wick
- **Context**: At TOP of uptrend
- **Signal**: Bears pushed price back from highs; rejection of higher prices
- **Reliability**: 65–70%
- **Confirmation**: Next candle closes below shooting star body

#### Doji Patterns
| Doji Type | Shape | Signal | Reliability |
|-----------|-------|--------|-------------|
| **Standard Doji** | Open ≈ Close, equal wicks | Indecision | 50% (needs context) |
| **Long-Legged Doji** | Very long upper & lower wicks | High volatility indecision | 55% |
| **Gravestone Doji** | Open=Close at LOW, long upper wick | Bearish reversal at tops | 65% |
| **Dragonfly Doji** | Open=Close at HIGH, long lower wick | Bullish reversal at bottoms | 65% |
| **Four Price Doji** | All four prices identical | Extreme indecision (illiquid) | N/A |
| **Rickshaw Man** | Open≈Close in middle, very long wicks | Major indecision | 55% |

#### Marubozu (Strong Momentum)
| Type | Shape | Signal | Reliability |
|------|-------|--------|-------------|
| **Bullish Marubozu** | Large green body, NO wicks | Strong bullish momentum | 75–80% |
| **Bearish Marubozu** | Large red body, NO wicks | Strong bearish momentum | 75–80% |
| **Opening Marubozu** | No opening wick, has closing wick | Momentum fading at close | 60% |
| **Closing Marubozu** | No closing wick, has opening wick | Strong closing momentum | 65% |

#### Spinning Top
- **Shape**: Small body (any color), significant upper AND lower wicks
- **Signal**: Indecision; neither bulls nor bears in control
- **Reliability**: 45–50% (needs strong context)
- **Use**: Warning of trend pause or reversal when in extended trend

#### Belt Hold
- **Bullish**: Opens at low of session (no lower wick), rallies strongly
- **Bearish**: Opens at high of session (no upper wick), falls strongly
- **Reliability**: 55–60%

---

### Double Candlestick Patterns

#### Bullish Engulfing (★★★★ Reversal)
- **Setup**: Small bearish candle followed by large bullish candle that completely engulfs it
- **Rules**: Green body must cover entire red body (wicks optional)
- **Context**: Must be at bottom of downtrend or key support
- **Reliability**: 72–78%
- **Strength Factors**: Higher volume on bullish candle, larger relative size, at major S/R

#### Bearish Engulfing (★★★★ Reversal)
- **Setup**: Small bullish candle followed by large bearish candle that engulfs it
- **Context**: Must be at top of uptrend or key resistance
- **Reliability**: 72–78%

#### Bullish Harami (Reversal)
- **Setup**: Large bearish candle followed by small bullish candle INSIDE prior body
- **Signal**: Selling momentum slowing; potential reversal
- **Reliability**: 55–65%
- **Note**: Harami = "pregnant" in Japanese; small candle is "baby"

#### Bearish Harami (Reversal)
- **Setup**: Large bullish candle followed by small bearish candle inside prior body
- **Reliability**: 55–65%

#### Harami Cross
- **Setup**: Harami where second candle is a Doji
- **Reliability**: 65–70% (doji = more indecision = stronger signal)

#### Tweezer Top (Bearish Reversal)
- **Setup**: Two candles with equal HIGHS (±1–2 ticks acceptable)
- **Context**: At resistance or top of uptrend
- **Reliability**: 60–68%
- **Signal**: Double rejection at same price = strong resistance

#### Tweezer Bottom (Bullish Reversal)
- **Setup**: Two candles with equal LOWS
- **Context**: At support or bottom of downtrend
- **Reliability**: 60–68%

#### Piercing Line (Bullish Reversal)
- **Setup**: Large bearish candle, followed by bullish candle that opens BELOW prior low but closes MORE THAN 50% into prior bearish body
- **Context**: At support/bottom of trend
- **Reliability**: 65–70%

#### Dark Cloud Cover (Bearish Reversal)
- **Setup**: Large bullish candle, followed by bearish candle that opens ABOVE prior high but closes MORE THAN 50% into prior bullish body
- **Context**: At resistance/top of trend
- **Reliability**: 65–70%

#### On Neck / In Neck (Continuation)
- **On Neck**: Gap down open, closes at or near prior candle LOW (weak bullish)
- **In Neck**: Closes slightly into prior body (stronger)
- **Signal**: Continuation of downtrend
- **Reliability**: 55%

---

### Triple Candlestick Patterns

#### Morning Star (★★★★★ Bullish Reversal)
```
Candle 1: Large bearish (downtrend continuation)
Candle 2: Small body (gap down optional), star candle (indecision)
Candle 3: Large bullish, closes >50% into Candle 1's body

★ Most reliable triple candlestick pattern ★
Reliability: 78–83%
```

#### Evening Star (★★★★★ Bearish Reversal)
```
Candle 1: Large bullish (uptrend continuation)
Candle 2: Small body (gap up optional), star candle
Candle 3: Large bearish, closes >50% into Candle 1's body

Reliability: 78–83%
```

#### Morning Doji Star (Higher Reliability)
- Same as Morning Star but Candle 2 is a Doji
- **Reliability**: 83–87% (doji increases significance)

#### Evening Doji Star
- Same as Evening Star but Candle 2 is a Doji
- **Reliability**: 83–87%

#### Three White Soldiers (Bullish Continuation/Reversal)
- **Setup**: Three consecutive large bullish candles, each opening in prior body and closing higher
- **Requirements**: Each close near session high, minimal wicks
- **Context**: After downtrend = strong reversal; during uptrend = continuation
- **Reliability**: 70–75%
- **Warning**: After large prior move = exhaustion signal

#### Three Black Crows (Bearish Continuation/Reversal)
- **Setup**: Three consecutive large bearish candles, each opening in prior body and closing lower
- **Reliability**: 70–75%

#### Abandoned Baby (Strongest Reversal Signal)
- **Bullish Setup**: Bearish marubozu → Doji with gap down → Bullish marubozu with gap up
- **Bearish Setup**: Bullish marubozu → Doji with gap up → Bearish marubozu with gap down
- **Key**: TRUE gaps required (no overlap including wicks)
- **Reliability**: 85–90% (rare but highly reliable)

#### Three Inside Up (Bullish)
- Bearish candle → small bullish inside → bullish candle closes above first candle's body
- Essentially Harami + confirmation
- **Reliability**: 65–70%

#### Three Inside Down (Bearish)
- Bullish candle → small bearish inside → bearish candle closes below first candle
- **Reliability**: 65–70%

#### Upside/Downside Tasuki Gap (Continuation)
- Gap in direction of trend + candle that partially fills gap
- **Signal**: Continuation of trend
- **Reliability**: 55–60%

#### Rising Three Methods / Falling Three Methods
- **Rising**: Large bullish candle → 3 small bearish candles (stay within range) → large bullish close above first candle high
- **Signal**: Brief consolidation before trend continuation
- **Reliability**: 70–75%

### Proven Multi-Candle Trading Patterns
> Source: "The BEST Candlestick Pattern Guide" — Data Trader (2.5M views, tested across career)

#### Three-Bar Continuation Pattern
```
Candle 1: Large body, bigger than average (sets direction)
Candle 2: Small opposite-color candle, body < 50% of Candle 1's body
Candle 3: Large candle same color as C1, closes beyond C2's close

Bullish: Large green → small red → large green (uptrend continuation)
Bearish: Large red → small green → large red (downtrend continuation)

Entry: Close of Candle 3
SL: Bottom wick of Candle 2 (bullish) / Top wick of C2 (bearish)
Best when: Forming during established trend, not at reversals
```

#### Three-Bar Reversal Pattern
```
Candle 1: Large full body (establishes current trend)
Candle 2: Small body, SAME color as C1
Candle 3: Large full body, OPPOSITE color to C1 & C2

Strong signal: C3 body >= C1 body (higher success rate)
Weak signal:  C3 body < C1 body (lower probability)

Bullish: Two red candles → large green (downtrend reversal)
Bearish: Two green candles → large red (uptrend reversal)

Entry: Close of Candle 3
SL: Lows of C2 (bullish) / Highs of C2 (bearish)
```

#### Breakout Candles Pattern
```
Setup: 3+ small consolidation candles → 1 large breakout candle
  - Consolidation candle color doesn't matter — size does (all small)
  - More consolidation candles = higher probability breakout
  - Breakout candle must have clearly larger body than consolidation candles

Entry: Close of breakout candle
SL: Opening price of breakout candle
Direction: Continue in direction of breakout candle
```

#### Shrinking Candles Pattern (Momentum Exhaustion)
```
Setup: 3+ consecutive same-color candles, each SMALLER than the last
  → followed by large opposite-color candle

Shows: Trend gradually weakening → reversal confirmation
Strong signal: C4 closes beyond C2 (deeper reversal)

Bullish: 3+ shrinking red candles → large green candle
Bearish: 3+ shrinking green candles → large red candle

Entry: Close of the reversal candle
SL: Beyond the previous candle's extreme
```

#### Combining Patterns with Key Levels (Strategy)
```
Step 1: Identify key level (S/R, trendline, Fib, or confluence zone)
Step 2: Wait for price to interact with the key level
Step 3: Look for one of the 6 patterns at that level:
  - Engulfing, Pin Bar, 3-Bar Continuation, 3-Bar Reversal,
    Breakout Candles, Shrinking Candles
Step 4: Enter on pattern completion, SL per pattern rules
Step 5: TP at 2:1 RR minimum

Note: Patterns work best on 1H+ timeframes. Less effective on LTF.
Confluence level (multiple key levels intersecting) = highest probability.
```

---

## 2. Chart Patterns

### Reversal Patterns

#### Head and Shoulders (H&S)
```
          Left    Head   Right
Shoulder:  ▲       ▲       ▲
           |      |||      |
Neckline: ─┴──────┴┴──────┴─

Measured Move: Distance from Head to Neckline
  Target = Neckline − (Head − Neckline)

Rules:
- Left shoulder: rally, pullback
- Head: higher rally, deeper pullback
- Right shoulder: lower rally, break below neckline
- Volume: decreasing through right shoulder
- Neckline break: high volume confirmation

Reliability: 83–85%
Retest: ~45% of breakouts retest neckline
```

#### Inverse Head and Shoulders (Bullish)
- Mirror image of H&S
- **Reliability**: 83–85%
- **Target**: Breakout price + Head-to-Neckline distance

#### Double Top (★★★★)
```
   Peak 1  Peak 2
     ▲        ▲
    / \      / \
   /   \    /   \
──/─────\──/─────\──  Support/Neckline
          \/

Rules:
- Two peaks at approximately SAME price level (±1–3%)
- Valley between = neckline/support
- Volume: higher on left peak than right peak
- Breakdown: close below neckline = confirmation

Target = Neckline − (Peak − Neckline)
Reliability: 75–80%
Time between peaks: minimum 2 weeks for swing trading
```

#### Double Bottom (Bullish)
- Mirror image; "W" shape
- **Reliability**: 75–80%
- **Target**: Breakout + (Neckline − Trough)

#### Triple Top / Triple Bottom
- Three tests of same level before breakdown/breakout
- **Reliability**: 80–85% (more tests = stronger level)
- **Target**: Same measured move as double top/bottom

#### Rounding Bottom (Saucer)
- Gradual, curved reversal from down to uptrend
- **Time**: Weeks to months (long-term pattern)
- **Reliability**: 75%
- **Target**: Breakout + depth of saucer

---

### Continuation Patterns

#### Ascending Triangle (Bullish Continuation/Reversal)
```
Resistance: ─────────────────── (Flat top)
           /   /   /   /
          /   /   /   /         (Rising support)

Rules:
- Flat upper resistance + rising lower support
- Bullish in uptrend; reversal if at bottom of downtrend
- Breakout: above resistance with volume
- Target = Resistance + Height of triangle (at widest)

Reliability: 72–75%
False breakout rate: ~25%
```

#### Descending Triangle (Bearish)
- Flat support + declining resistance
- **Reliability**: 72–75%
- **Target**: Flat support − Triangle height

#### Symmetrical Triangle
- Converging trendlines (lower highs + higher lows)
- **Breakout direction**: Usually continues prior trend (75%)
- **Target**: Breakout point ± widest point of triangle
- **Reliability**: 65–70%
- **Timing**: Breakout typically occurs 50–75% through triangle

#### Bull Flag (★★★★★)
```
Flag Pole:  ╱  Strong, sharp rally (pole)
           ╱
          ╱───╮
              │╲  Flag: tight, orderly pullback
              │ ╲  (parallel channel, 20–40% pullback of pole)
              ╰──╱  Breakout: above flag resistance
                 ╱
                ╱   Target = Flag Breakout + Flag Pole Length

Volume: Heavy on pole, light during flag, heavy on breakout
Reliability: 80–85%
Duration of flag: 1–4 weeks ideal
```

#### Bear Flag (Bearish Continuation)
- Sharp decline (pole) + brief upward consolidation (flag)
- **Reliability**: 80–85%
- **Target**: Flag breakdown − pole length

#### Bull Pennant
- Similar to bull flag but consolidation forms symmetrical triangle (not channel)
- **Reliability**: 78–82%
- **Target**: Same measured move as bull flag

#### Bear Pennant
- Sharp decline + converging triangle consolidation
- **Reliability**: 78–82%

#### Rising Wedge (Bearish)
- Both support and resistance sloping up, but converging
- **Bias**: Bearish (upward move losing momentum)
- **Breakdown**: Through lower trendline
- **Target**: Start of wedge (beginning of pattern)
- **Reliability**: 70–75%

#### Falling Wedge (Bullish)
- Both lines sloping down, converging
- **Bias**: Bullish reversal or continuation
- **Breakout**: Through upper trendline
- **Reliability**: 70–75%

#### Cup and Handle (★★★★)
```
Cup:         ╭──────────────╮
            ╱                ╲
           ╱                  ╲
          ╱                    ╲
                               Handle: 5–15% pullback
                               Breakout: above cup rim

Rules:
- Cup: U-shaped (rounded), not V-shaped
- Depth: 15–30% from rim to bottom (max 50%)
- Handle: forms in upper 50% of cup; <15% pullback
- Volume: heavy at breakout above handle resistance
- Duration: Cup = weeks to months; Handle = 1–4 weeks

Target = Handle breakout + Cup depth
Reliability: 75–80%
```

#### Inverse Cup and Handle (Bearish)
- Upside-down cup formation
- **Reliability**: 70–75%

---

## 3. Support, Resistance & Fibonacci

### Support and Resistance Basics
```
Resistance → Price ceiling; sellers dominate
Support    → Price floor; buyers dominate
```

**Role Reversal**: Broken resistance becomes support; broken support becomes resistance

**Strength Factors**:
1. Number of times tested (more = stronger)
2. Time since level formed (older = more significant)
3. Volume at the level (higher = more significant)
4. Price reaction magnitude (larger rejection = stronger)
5. Clean vs. messy level (clean round numbers stronger)

### Fibonacci Retracement Levels
```
Key Levels (from swing high to swing low or vice versa):
  23.6% → Minor support/resistance (weak)
  38.2% → Moderate pullback level
  50.0% → Psychological midpoint (not true Fibonacci but widely watched)
  61.8% → "Golden Ratio" — MOST IMPORTANT level
  78.6% → Deep retracement (= √0.618)
  88.6% → Very deep (= 0.886 = √0.786); used in harmonic patterns

Entry Strategy:
  Conservative: Wait for price to react at Fibonacci level + candle confirmation
  Aggressive: Enter directly at Fibonacci level with tight stop
  
Stop Loss: Just beyond next Fibonacci level (e.g., short at 61.8%, stop above 78.6%)
```

### Fibonacci Extension Levels (Profit Targets)
```
Common extension targets after retracement:
  127.2% = 1st extension (= √1.272)
  138.2%
  161.8% = Most common major target
  200.0% = Double the prior move
  261.8% = Strong extension target

How to Draw:
  Uptrend: From swing low (A) to swing high (B) to retracement low (C)
  Target = C + (A to B distance × extension %)
```

### Fibonacci Time Zones
```
After swing high or low, count forward:
Bars 1, 2, 3, 5, 8, 13, 21, 34, 55, 89...
→ Significant reactions likely at these time intervals (Fibonacci sequence)
```

### Pivot Points

#### Standard Pivot Points
```
PP = (High + Low + Close) ÷ 3

R3 = High + 2(PP − Low)
R2 = PP + (High − Low)
R1 = 2(PP) − Low
PP = Pivot Point
S1 = 2(PP) − High
S2 = PP − (High − Low)
S3 = Low − 2(High − PP)
```

#### Fibonacci Pivot Points
```
PP = (High + Low + Close) ÷ 3
R1 = PP + 0.382 × (High − Low)
R2 = PP + 0.618 × (High − Low)
R3 = PP + 1.000 × (High − Low)
S1 = PP − 0.382 × (High − Low)
S2 = PP − 0.618 × (High − Low)
S3 = PP − 1.000 × (High − Low)
```

#### Camarilla Pivot Points
```
R4 = Close + (High − Low) × 1.5
R3 = Close + (High − Low) × 1.25
R2 = Close + (High − Low) × 1.1666
R1 = Close + (High − Low) × 1.0833
S1 = Close − (High − Low) × 1.0833
S2 = Close − (High − Low) × 1.1666
S3 = Close − (High − Low) × 1.25
S4 = Close − (High − Low) × 1.5

Strategy: Fade at R3/S3; Breakout trade at R4/S4
```

### Timeframe-Based Pivots
| Pivot Period | Chart Timeframe | Best For |
|-------------|-----------------|---------|
| Daily pivots | 15m–1h charts | Day trading |
| Weekly pivots | 4h–Daily charts | Swing trading |
| Monthly pivots | Daily–Weekly | Position trading |

---

## 4. Supply and Demand Zones

### What Creates Supply/Demand Zones
- **Demand Zone**: Area where strong buying previously occurred → price left rapidly upward
- **Supply Zone**: Area where strong selling occurred → price left rapidly downward
- Key characteristic: **The stronger and faster the departure, the stronger the zone**

### Identifying Quality Zones
```
High-Quality Demand Zone (4 criteria):
  ✓ Price departed quickly and strongly (large candles away from zone)
  ✓ Zone has NOT been revisited before current test
  ✓ Located at a lower timeframe support or key price level
  ✓ Formed at the beginning of a significant upswing

Lower-Quality Zone:
  ✗ Zone has been tested multiple times (each test = weaker zone)
  ✗ Price left slowly with small candles
  ✗ Zone is far from current market structure
```

### Supply/Demand Zone Trading
```
Entry at Demand Zone:
  1. Mark zone boundaries (base of zone to top)
  2. Wait for price to return to zone
  3. Look for bullish reaction candle (engulfing, hammer, pin bar)
  4. Enter long; stop below zone low
  5. Target: Next supply zone above

Entry at Supply Zone:
  1. Mark zone boundaries
  2. Wait for price to reach zone
  3. Look for bearish reaction candle
  4. Enter short; stop above zone high
  5. Target: Next demand zone below
```

### Zone Strength Factors
| Factor | Stronger | Weaker |
|--------|----------|--------|
| Number of visits | First test | 3+ tests |
| Departure strength | Large, fast candles | Small, slow candles |
| Time since formation | Recent | Old (months/years) |
| Higher TF alignment | Yes | No |
| Volume at departure | High | Low |

### A+ Supply & Demand Execution Framework (3-Step)
> Source: Trade with Pat — 284K views, 121-trade backtest: **79% win rate, 2,100% P&L**

#### Step 1: Identify Institutional Demand/Supply Zone
```
Demand Zone Identification:
  - Look for 3+ consecutive large same-color candles (impulsive move)
  - 60+ pip move on forex = institutional activity (retail can't move this)
  - Draw zone on the CANDLE BODY before the impulsive move (accumulation)

Zone Drawing Rules:
  Large pre-move candle → Draw zone on BODY ONLY (tighter, cleaner)
  Small pre-move candle → Draw WICK TO WICK
  Multiple small candles → Group together as one zone

Required Confluence at Zone:
  1. Fair Value Gap (FVG) — candles before and after don't cover the big candle
  2. Historical S/R flip — zone was previously resistance, now support (or vice versa)
  3. Both = "confluence stack" → highest probability
```

#### Step 2: Trend Confirmation (3 Methods)
```
Method A — Swing Structure:
  Uptrend: HH + HL sequence with breaks of structure
  Downtrend: LH + LL sequence

Method B — EMA Filter:
  Price above EMA with SEPARATION = trend confirmed
  Price crossing above/below EMA repeatedly with no gap = choppy → SKIP

Method C — Higher TF Alignment:
  Go to next HTF (e.g., H1 → H4) and confirm same swing structure
  Both TFs trending same direction = green light
```

#### Step 3: Entry Conditions
```
MOMENTUM FILTER (Critical):
  ✓ SLOW approach to zone — mixed candles, small bodies = TRADE
  ✗ FAST approach — one big candle slamming into zone = DO NOT TRADE

Entry Trigger:
  1. Candle closes INSIDE zone or WICKS into zone
  2. Wait for NEXT candle to be positive (green for demand, red for supply)
  3. Enter on confirmation candle

Invalidation:
  If candle CLOSES BELOW zone (demand) or ABOVE zone (supply) → SKIP

Stop Loss:
  Option A: Tight to zone boundary
  Option B: Below nearest wick + below EMA (dual protection)

Take Profit:
  Default: 1:1 RR | Better: target recent swing H/L (1.4-1.8 RR)
  Advanced: trailing stop — exit when candle CLOSES below trail (not wick)
```

### 6 Keys to Valid Demand/Supply Zones (Loss Avoidance Filter)
```
1. UNTESTED ZONE (Fresh Only)
   - Only trade on FIRST test — already-tested zones have drastically lower hold rate

2. CANDLE CLOSE POSITION
   - Wicking into zone = VALID | Closing inside zone = VALID
   - Closing BELOW zone (demand) = INVALIDATED → do not trade

3. CONFLUENCE STACK
   - Zone aligns with EMA S/R + historical S/R flip = stacked → highest probability

4. LOWEST DEMAND IS STRONGEST
   - Multiple demand zones → LOWEST one holds best (deepest institutional accumulation)
   - Inverse for supply: HIGHEST supply zone is strongest

5. DISCOUNTED PRICE (Fib Filter)
   - Draw Fib retracement from swing low to swing high
   - Entry must be BELOW 50% for demand (ABOVE 50% for supply)

6. BREAK OF STRUCTURE REQUIRED
   - Confirm BOS exists before entering at zone
   - If last swing high NOT broken → trend weakening → zone will likely fail
   - No BOS = no trade (hard filter)
```

### Opening Range Breakout + Supply/Demand Combo
> Source: Trade with Pat — used daily on livestream
```
Setup (Intraday, 5m chart):
  1. At 9:30 AM EST, mark range of first 3 five-minute candles (wick to wick)
  2. Wait for price to BREAK AND CLOSE outside range (top = buy, bottom = sell)
  3. This sets directional bias for the session

Execution:
  4. After breakout confirms direction, wait for RETRACE to demand zone (if long)
  5. Do NOT enter on breakout candle — wait for pullback to zone
  6. Enter on positive reaction candle at demand zone
  7. SL below zone, TP at recent structure or trailing stop
```

---

## 5. Trend Indicators

### Simple Moving Average (SMA)
```
SMA(n) = (P₁ + P₂ + ... + Pₙ) ÷ n

Key Levels:
  20 SMA  → Short-term trend (day trading)
  50 SMA  → Medium-term trend (swing trading)
  100 SMA → Medium-long trend
  200 SMA → Long-term trend (bull/bear market line)

Signals:
  Price > 200 SMA → Bullish bias
  Price < 200 SMA → Bearish bias
  Golden Cross: 50 SMA crosses above 200 SMA → Bullish
  Death Cross: 50 SMA crosses below 200 SMA → Bearish
```

### Exponential Moving Average (EMA)
```
EMA = Price × k + EMA(prev) × (1 − k)
k = 2 ÷ (n + 1)

EMA responds faster to recent price changes than SMA
Key Levels: 9, 21, 50, 100, 200 EMA
```

### Double Exponential MA (DEMA)
```
DEMA = 2 × EMA(n) − EMA(EMA(n))
→ Reduces EMA lag; smoother than EMA
```

### Triple Exponential MA (TEMA)
```
EMA1 = EMA(n)
EMA2 = EMA(EMA1)
EMA3 = EMA(EMA2)
TEMA = 3 × EMA1 − 3 × EMA2 + EMA3
→ Minimal lag; good for trending markets
```

### Hull Moving Average (HMA)
```
WMA1 = WMA(n/2) × 2
WMA2 = WMA(n)
Raw HMA = WMA1 − WMA2
HMA = WMA(√n, Raw HMA)

→ Near-zero lag; very smooth; best for trend following
Crossover signals less whipsaw than EMA
```

### MA Signal System
| Condition | Signal |
|-----------|--------|
| Price > all MAs, MAs aligned up | Strong uptrend |
| Price < all MAs, MAs aligned down | Strong downtrend |
| Price crosses above 20 EMA | Short-term bullish |
| 9 EMA crosses above 21 EMA | Momentum shift bullish |
| 50 EMA crosses above 200 EMA (Golden Cross) | Long-term bullish |
| MAs converging / flat | Choppy, ranging market |

---

### MACD (Moving Average Convergence Divergence)
```
Standard Settings: 12, 26, 9

MACD Line = EMA(12) − EMA(26)
Signal Line = EMA(9) of MACD Line
Histogram = MACD Line − Signal Line

Signals:
1. Signal Line Crossover:
   MACD crosses above Signal → Bullish entry
   MACD crosses below Signal → Bearish entry

2. Zero Line Cross:
   MACD crosses above 0 → Bullish (trend confirmation)
   MACD crosses below 0 → Bearish

3. Histogram Divergence:
   Price makes new high, histogram lower → Bearish divergence
   Price makes new low, histogram higher → Bullish divergence

4. Centerline Strategies:
   Buy pullbacks to 0 line in uptrend
   Sell rallies to 0 line in downtrend

Best Timeframes: Daily for swing, 1h for day trading
Weakness: Lagging indicator; poor in ranging markets
```

---

### ADX (Average Directional Index)
```
ADX measures TREND STRENGTH (not direction)
Range: 0–100

Calculation:
  +DM = Current High − Previous High (if positive)
  −DM = Previous Low − Current Low (if positive)
  TR = max(High−Low, |High−PrevClose|, |Low−PrevClose|)
  +DI = 100 × EMA(+DM) ÷ EMA(TR)
  −DI = 100 × EMA(−DM) ÷ EMA(TR)
  DX = 100 × |+DI − −DI| ÷ (+DI + −DI)
  ADX = EMA(DX, 14)

ADX Interpretation:
  < 20  → Weak/absent trend (ranging market)
  20–25 → Trend beginning to form
  25–40 → Moderate trend (use trend-following strategies)
  40–60 → Strong trend
  60+   → Very strong trend (potential exhaustion watch)

Direction via DI Lines:
  +DI > −DI → Uptrend
  −DI > +DI → Downtrend
  +DI crosses above −DI → Bullish signal
  −DI crosses above +DI → Bearish signal

Best Use: Filter for trend-following strategies
Only use breakout/trend strategies when ADX > 25
```

---

### Parabolic SAR
```
Settings: Step = 0.02, Max = 0.20

Interpretation:
  Dots below price → Uptrend; use as trailing stop
  Dots above price → Downtrend; use as trailing stop
  Price crosses dots → Trend reversal signal

Formula:
  Rising SAR(t) = SAR(t-1) + AF × (EP − SAR(t-1))
  AF starts at 0.02, increases by 0.02 each new high, max 0.20
  EP = Extreme point (highest high in uptrend)

Use:
  ✓ Excellent trailing stop in strong trends
  ✓ Clear visual signals
  ✗ Poor in sideways/choppy markets (whipsaws)
  
Best combined with: ADX > 25 to confirm trending condition
```

---

### Ichimoku Cloud (Ichimoku Kinko Hyo)

#### Five Components
```
1. Tenkan-sen (Conversion Line) = (9H + 9L) ÷ 2
   → 9-period midpoint; short-term trend

2. Kijun-sen (Base Line) = (26H + 26L) ÷ 2
   → 26-period midpoint; medium-term trend/support

3. Senkou Span A (Leading A) = (Tenkan + Kijun) ÷ 2, plotted 26 periods AHEAD
   → Forms top or bottom of Cloud (Kumo)

4. Senkou Span B (Leading B) = (52H + 52L) ÷ 2, plotted 26 periods AHEAD
   → Forms other edge of Cloud

5. Chikou Span (Lagging Span) = Current Close, plotted 26 periods BEHIND
   → Confirms trend; most important confirmation tool
```

#### Cloud (Kumo) Interpretation
```
Price ABOVE Cloud → Bullish (trend bias = long)
Price BELOW Cloud → Bearish (trend bias = short)
Price INSIDE Cloud → Neutral / Consolidation

Green Cloud (Span A > Span B) → Bullish sentiment
Red Cloud (Span B > Span A) → Bearish sentiment

Thick Cloud → Strong support/resistance
Thin Cloud → Weak support/resistance (easier to break through)
```

#### Ichimoku Signals
| Signal | Condition | Strength |
|--------|-----------|----------|
| **TK Cross Bullish** | Tenkan crosses above Kijun | Moderate |
| **TK Cross Bearish** | Tenkan crosses below Kijun | Moderate |
| **Strong Bullish** | TK cross above Cloud + Chikou above price | Strong |
| **Strong Bearish** | TK cross below Cloud + Chikou below price | Strong |
| **Cloud Support** | Price pullback to top of Cloud holds | Bullish |
| **Cloud Resistance** | Price rally to bottom of Cloud fails | Bearish |
| **Kumo Twist** | Cloud changes from red to green ahead | Bullish shift |
| **Chikou Confirm** | Chikou in open space (no obstruction) | Confirmation |

#### Perfect Ichimoku Buy Setup
```
All 5 criteria must be met:
  ✓ Price above Cloud
  ✓ Cloud is green (Span A > Span B)
  ✓ Tenkan above Kijun
  ✓ Chikou above price from 26 periods ago
  ✓ Price pulling back to Tenkan/Kijun for entry
```

---

## 6. Momentum Indicators

### RSI (Relative Strength Index)
```
Settings: 14 periods (default)

RSI = 100 − (100 ÷ (1 + RS))
RS = Average Gain ÷ Average Loss (over 14 periods)

Levels:
  RSI > 70 → Overbought (potential reversal short)
  RSI < 30 → Oversold (potential reversal long)
  RSI = 50 → Midpoint (trend confirmation)
  
Trend Trading:
  RSI 40–90 range in uptrends (buy dips to 40–50)
  RSI 10–60 range in downtrends (sell rallies to 50–60)
```

#### RSI Divergence
```
Regular Bullish Divergence:
  Price: Lower Low → Lower Low
  RSI:   Lower Low → HIGHER Low
  Signal: Bullish reversal

Regular Bearish Divergence:
  Price: Higher High → Higher High
  RSI:   Higher High → LOWER High
  Signal: Bearish reversal

Hidden Bullish Divergence (Continuation):
  Price: Higher Low
  RSI:   Lower Low
  Signal: Uptrend continuation (buy the dip)

Hidden Bearish Divergence (Continuation):
  Price: Lower High
  RSI:   Higher High
  Signal: Downtrend continuation (sell the rally)
```

#### RSI Failure Swings
```
Bullish Failure Swing (Strong Signal):
  1. RSI falls below 30 (oversold)
  2. RSI bounces above 30
  3. RSI pulls back but STAYS ABOVE 30 (failure)
  4. RSI breaks above recent peak → BUY SIGNAL

Bearish Failure Swing:
  1. RSI rises above 70 (overbought)
  2. RSI dips below 70
  3. RSI bounces but STAYS BELOW 70 (failure)
  4. RSI breaks below recent trough → SELL SIGNAL
```

---

### Stochastic Oscillator
```
Settings: %K=14, %D=3, Smooth=3

Fast Stochastic:
  %K = (Current Close − Lowest Low) ÷ (Highest High − Lowest Low) × 100
  %D = 3-period SMA of %K

Slow Stochastic (recommended):
  Slow %K = Fast %D
  Slow %D = 3-period SMA of Slow %K

Levels:
  Above 80 → Overbought
  Below 20 → Oversold

Signals:
  %K crosses above %D in oversold territory → Buy
  %K crosses below %D in overbought territory → Sell
  Divergence with price → Reversal warning
  
Stochastic RSI: Applies RSI formula to Stochastic → more sensitive
```

---

### CCI (Commodity Channel Index)
```
Settings: 14 or 20 periods

CCI = (Typical Price − SMA) ÷ (0.015 × Mean Deviation)
Typical Price = (High + Low + Close) ÷ 3

Levels:
  > +100 → Overbought / Strong trend (buy in strong uptrend)
  < −100 → Oversold / Strong downtrend (sell in downtrend)
  0 line → Neutral

Signals:
  Crosses above +100 → Bullish breakout
  Crosses below −100 → Bearish breakout
  Returns to 0 from extreme → Possible reversal
  Divergence → Leading reversal signal

Use: Good for cyclical markets; works well on commodities
```

---

### Williams %R
```
Settings: 14 periods

%R = (Highest High − Close) ÷ (Highest High − Lowest Low) × (−100)

Range: 0 to −100 (note: inverted scale)
  0 to −20   → Overbought
  −80 to −100 → Oversold

Signals (similar to Stochastic):
  Exit from overbought (below −20) → Sell
  Exit from oversold (above −80) → Buy
  Divergence → Reversal signal
  
Note: Very similar to Stochastic; choose one, not both
```

---

### Rate of Change (ROC)
```
Settings: 12 periods (daily), 9 (weekly)

ROC = ((Close − Close[n]) ÷ Close[n]) × 100

Signals:
  ROC > 0 → Upward momentum
  ROC < 0 → Downward momentum
  Zero line cross → Momentum shift
  Divergence → Reversal warning
  
Use: Relative Strength comparison across assets; momentum ranking
```

---

## 7. Volume Indicators

### OBV (On-Balance Volume)
```
If Close > Previous Close: OBV = OBV(prev) + Volume
If Close < Previous Close: OBV = OBV(prev) − Volume
If Close = Previous Close: OBV = OBV(prev)

Interpretation:
  OBV rising + Price rising → Confirmed uptrend
  OBV falling + Price falling → Confirmed downtrend
  OBV rising + Price flat → Accumulation (bullish)
  OBV falling + Price flat → Distribution (bearish)
  OBV diverges from price → Reversal warning

Key Insight: OBV should CONFIRM price action; divergence = warning
```

---

### VWAP (Volume-Weighted Average Price)
```
VWAP = Σ(Typical Price × Volume) ÷ Σ Volume
Resets each trading session

VWAP Bands (Standard Deviation bands):
  VWAP ± 1 SD → Contains ~68% of price action
  VWAP ± 2 SD → Contains ~95% of price action
  VWAP ± 3 SD → Extreme deviation (mean reversion opportunity)

Trading Strategies:
  Above VWAP → Bullish; buy pullbacks to VWAP
  Below VWAP → Bearish; sell rallies to VWAP
  
  Institutional benchmark: Many algos and funds use VWAP
  Price above VWAP = Buyers in control
  Price below VWAP = Sellers in control

Day Trading Use:
  Open above VWAP → Long bias
  VWAP as support → Buy at VWAP, stop below
  VWAP as resistance → Sell at VWAP, stop above

Mean Reversion:
  Price at ±2 SD → Fade toward VWAP
  Price at ±3 SD → Strong mean reversion signal
```

---

### Accumulation/Distribution Line (A/D)
```
Money Flow Multiplier = ((Close − Low) − (High − Close)) ÷ (High − Low)
Money Flow Volume = MFM × Volume
A/D = Previous A/D + Current Money Flow Volume

Interpretation:
  A/D rising → Accumulation (buying pressure)
  A/D falling → Distribution (selling pressure)
  Divergence from price → Strong reversal signal

Key: Accounts for WHERE close is within bar's range
```

---

### MFI (Money Flow Index)
```
Settings: 14 periods

Typical Price = (H + L + C) ÷ 3
Money Flow = Typical Price × Volume
Positive MF: TP > Previous TP
Negative MF: TP < Previous TP

MFI = 100 − (100 ÷ (1 + (14-day Positive MF ÷ 14-day Negative MF)))

Levels:
  > 80 → Overbought
  < 20 → Oversold

Think of MFI as "Volume-Weighted RSI"
Divergence more significant due to volume confirmation
```

---

### CMF (Chaikin Money Flow)
```
Settings: 20 periods

CMF = 20-period Sum of (Money Flow Volume) ÷ 20-period Sum of Volume
Money Flow Volume = ((Close−Low) − (High−Close)) ÷ (High−Low) × Volume

Range: −1 to +1
  > 0 → Buying pressure; bullish
  < 0 → Selling pressure; bearish
  > +0.25 → Strong buying
  < −0.25 → Strong selling

Use: Confirm breakouts and trend direction
```

---

### Volume Profile
> Enhanced with: "The ONLY Volume Profile Trading Guide" — Trader Dale (396K views, 67% win rate over 9 yrs)

```
Key Levels:
  POC (Point of Control) → Price level with MOST volume traded
  VAH (Value Area High) → Upper boundary of Value Area
  VAL (Value Area Low) → Lower boundary of Value Area
  Value Area → Contains 68–70% of total session volume
  HVN (High Volume Nodes) → Significant volume clusters → secondary entry points
  LVN (Low Volume Nodes) → Sparse trading areas → rejection/fast-move zones

Types:
  Session VP → Volume profile for single session
  Fixed Range VP → User-defined time range
  Visible Range VP → Current chart view
  Composite VP → Multiple sessions combined
```

#### Four Volume Profile Shapes
```
D-SHAPED (Balanced Market) — ~70% of trading is rotation
  Shape: Heavy volume middle, low at edges
  Trade: Short from top border, Long from bottom border → TP at opposite POC
  Signals: Consolidation or pause/end of trend

P-SHAPED (Buyers Active)
  Shape: Heavy volume at TOP, low at bottom
  VALIDATION: Price MUST close ABOVE 50% of daily range (else invalid!)
  Trade: Long from POC or volume bumps in low-volume zone
  Signals: Uptrend in progress or rejection of lower prices

B-SHAPED (Sellers Active)
  Shape: Heavy volume at BOTTOM, low at top
  VALIDATION: Price MUST close BELOW 50% of daily range (else invalid!)
  Trade: Short from POC or volume bumps in high-volume zone
  Pro tip: Trade from BEGINNING of heavy zone, not exact POC (40% fewer missed trades)

THIN PROFILE (Very Strong Trend)
  Shape: Thin line with scattered small volume bumps (no central heavy zone)
  Why: Strong/fast trend — institutions can't build large positions
  Trade: Volume bumps = aggressive institutional entry points → pullback entries
  In uptrend: bumps = strong support. In downtrend: bumps = strong resistance.
```

#### Volume Profile Entry Optimization
```
Traditional: Trade at exact POC → misses many trades
Better (Trader Dale method): Trade from BEGINNING (edge) of heavy volume zone
  → ~40% fewer missed trades, better risk/reward, enters before consolidation

Volume bumps in low-volume zones are AS IMPORTANT as POC:
  Even small bumps = decisive institutional activity
  Price respects these because institutions stepped in aggressively
```

#### Highest-Probability VP Setup: Support-Turned-Resistance + Volume Cluster
```
1. Identify thin profile with significant volume cluster at a price level
2. Check if that level was historical support (or resistance)
3. Price broke through it → support flips to resistance (or vice versa)
4. Now you have DUAL confirmation at same level:
   - Volume cluster (institutional activity)
   - Price action (S/R flip)
5. Trade the level with high confidence

Macro rule: Don't trade against strong macro-news moves.
  Institutions ignore technicals during news shocks → wait for stabilization.
```

#### Volume Profile Decision Tree
```
D-shaped → Short resistance, Long support (rotation play)
P-shaped (close > 50% range) → Long at POC/bumps
B-shaped (close < 50% range) → Short at POC/bumps
Thin → Trade volume bumps as trend-pullback entries
Then: Is there S/R flip + volume cluster confluence? → 2X confirmation
```

---

## 8. Volatility Indicators

### Bollinger Bands
```
Settings: 20 SMA, ±2 Standard Deviations

Upper Band = 20 SMA + (2 × SD)
Middle Band = 20 SMA
Lower Band = 20 SMA − (2 × SD)

Key Metrics:
  %B = (Price − Lower Band) ÷ (Upper Band − Lower Band)
    %B > 1 → Price above upper band
    %B = 0.5 → Price at middle band
    %B < 0 → Price below lower band

  Bandwidth = (Upper − Lower) ÷ Middle × 100
    Expanding → Increasing volatility
    Contracting → Decreasing volatility (squeeze = explosive move incoming)

BB Squeeze:
  Bandwidth at 6-month low → Imminent breakout
  Direction of breakout confirmed by volume and price action

Strategies:
  Mean Reversion: Buy lower band, sell upper band (ranging markets only)
  Trend Following: Price rides upper band = uptrend; sell first close inside band
  Squeeze: Enter breakout direction with momentum confirmation
  W-Bottom: Two touches of lower band; second higher → bullish reversal
  M-Top: Two touches of upper band; second lower → bearish reversal
```

---

### ATR (Average True Range)
```
Settings: 14 periods (standard)

True Range = max(High−Low, |High−PrevClose|, |Low−PrevClose|)
ATR = EMA(True Range, 14)

ATR Multipliers for Stop Loss:
  Conservative: 2.0× ATR
  Standard: 2.5× ATR
  Aggressive: 1.5× ATR
  Volatile markets: 3.0× ATR

ATR Position Sizing:
  Dollar Risk ÷ (ATR × Multiplier) = Number of Shares/Contracts

ATR-Based Targets:
  Target 1: 1.5× ATR from entry
  Target 2: 3.0× ATR from entry
  Target 3: 5.0× ATR from entry

ATR Channel:
  Upp

…(truncated)
