OPEN-SOURCE SCRIPT

YM Ultimate SNIPER v6

96
# YM Ultimate SNIPER v6 - Documentation & Trading Guide

## ๐ŸŽฏ ORDERFLOW EDITION | Order Blocks + Liquidity Sweeps + IFVG
**TARGET: 3-7 High-Confluence Trades per Day**
**Philosophy: "Zones That Matter"**

---

## โšก WHAT'S NEW IN v6

### Major Additions
| Feature | Description | Orderflow Purpose |
|---------|-------------|-------------------|
| **Order Blocks** | Last opposing candle before significant move | Shows where institutions absorbed orders |
| **Liquidity Sweeps** | Sweep of swing H/L with rejection | Identifies stop hunts / trap reversals |
| **IFVG** | Inverse FVG when price reclaims a gap | Failed institutional move = reversal signal |
| **Zone Quality Score** | 0-10 rating for each zone | Only "zones that matter" display |
| **3-Tier Scoring** | Weak/Medium/Excellent classification | Better trade selection |
| **Enhanced Table** | Larger, categorized, color-coded | Instant situation awareness |

### Orderflow Mindset
This version is built around **institutional order flow concepts**:

1. **Institutions leave footprints** โ†’ Order Blocks mark where they filled orders
2. **Retail gets trapped** โ†’ Liquidity Sweeps show the trap before reversal
3. **Failed moves reverse hard** โ†’ IFVG marks failed institutional attempts
4. **Not all zones are equal** โ†’ Quality scoring filters noise

---

## ๐ŸŽฏ QUICK REFERENCE

```
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ YM ULTIMATE SNIPER v6 โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ โ”‚
โ”‚ SIGNALS: โ”‚
โ”‚ S๐ŸŽฏ = S-Tier (50+ pts) โ†’ HOLD position โ”‚
โ”‚ A๐ŸŽฏ = A-Tier (25-49 pts) โ†’ SWING trade โ”‚
โ”‚ B๐ŸŽฏ = B-Tier (12-24 pts) โ†’ SCALP quick โ”‚
โ”‚ Z = Zone entry (quality FVG/OB zone) โ”‚
โ”‚ LSโ†‘ = Bullish Liquidity Sweep (lows swept + rejection) โ”‚
โ”‚ LSโ†“ = Bearish Liquidity Sweep (highs swept + rejection) โ”‚
โ”‚ โ”‚
โ”‚ ZONES: โ”‚
โ”‚ ๐ŸŸฆ Blue boxes = Bullish Order Block (buy zone) โ”‚
โ”‚ ๐ŸŸช Pink boxes = Bearish Order Block (sell zone) โ”‚
โ”‚ ๐ŸŸฉ Green boxes = Bullish FVG (buy zone) โ”‚
โ”‚ ๐ŸŸฅ Red boxes = Bearish FVG (sell zone) โ”‚
โ”‚ ๐ŸŸฃ Purple dashed = IFVG (inverse - strong reversal zone) โ”‚
โ”‚ โ”‚
โ”‚ SCORE CLASSIFICATION: โ”‚
โ”‚ EXCELLENT (7.0+) = Full size, high confidence โ”‚
โ”‚ MEDIUM (4.5-6.9) = Standard size, good setup โ”‚
โ”‚ WEAK (<4.5) = No signal shown โ”‚
โ”‚ โ”‚
โ”‚ SESSIONS (ET): โ”‚
โ”‚ LDN = 3:00-5:00 AM (London) โ”‚
โ”‚ NY = 9:30-11:30 AM (New York Open) โ”‚
โ”‚ PWR = 3:00-4:00 PM (Power Hour) โ”‚
โ”‚ โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
```

---

## ๐Ÿ“ฆ ORDER BLOCKS (OB)

### What Are Order Blocks?
Order blocks mark the **last opposing candle before a significant move**. This is where institutional traders absorbed retail orders before moving price in their intended direction.

### Detection Logic (Breaker Style)
```
BULLISH OB:
โ”œโ”€โ”€ Last BEARISH candle before strong bullish move
โ”œโ”€โ”€ Move after must be โ‰ฅ 1.5x ATR
โ”œโ”€โ”€ Shows where institutions absorbed selling
โ””โ”€โ”€ Expect support when price returns

BEARISH OB:
โ”œโ”€โ”€ Last BULLISH candle before strong bearish move
โ”œโ”€โ”€ Move after must be โ‰ฅ 1.5x ATR
โ”œโ”€โ”€ Shows where institutions absorbed buying
โ””โ”€โ”€ Expect resistance when price returns
```

### OB Quality Scoring
Each Order Block gets a strength score (0-10) based on:
- **Move strength** after the OB (ATR multiple)
- **Volume** on the OB candle
- **Body ratio** of the OB candle

Only OBs with strength โ‰ฅ 4 are displayed.

### Trading Order Blocks
| Scenario | Action |
|----------|--------|
| Price returns to Bull OB + buy delta | Look for LONG |
| Price returns to Bear OB + sell delta | Look for SHORT |
| OB + FVG overlap (thick border) | HIGH PROBABILITY |
| OB tested once (gray) | Still valid, often best entry |
| OB broken (closes through) | Invalidated, removed |

---

## ๐Ÿ’Ž LIQUIDITY SWEEPS

### What Are Liquidity Sweeps?
A liquidity sweep occurs when price **hunts stop losses** by briefly breaking a swing high/low, then **immediately reverses** back. This is the classic "stop hunt" or "liquidity grab."

### Detection Logic
```
BULLISH SWEEP (LSโ†‘):
โ”œโ”€โ”€ Price sweeps BELOW a recent swing low
โ”œโ”€โ”€ Closes BACK ABOVE the swing level
โ”œโ”€โ”€ Shows lower wick (rejection)
โ”œโ”€โ”€ Buy delta dominance on the candle
โ””โ”€โ”€ SIGNAL: Lows swept, shorts trapped โ†’ GO LONG

BEARISH SWEEP (LSโ†“):
โ”œโ”€โ”€ Price sweeps ABOVE a recent swing high
โ”œโ”€โ”€ Closes BACK BELOW the swing level
โ”œโ”€โ”€ Shows upper wick (rejection)
โ”œโ”€โ”€ Sell delta dominance on the candle
โ””โ”€โ”€ SIGNAL: Highs swept, longs trapped โ†’ GO SHORT
```

### Why Sweeps Matter for Orderflow
1. **Retail stops get hit** โ†’ Liquidity provided to institutions
2. **Institutions fill orders** โ†’ At better prices thanks to the sweep
3. **Price reverses** โ†’ Move in intended direction begins
4. **You enter with institutions** โ†’ Not against them

### Sweep + Zone = High Probability
When a liquidity sweep happens AT or NEAR an Order Block or FVG zone, the probability increases significantly.

---

## ๐Ÿ”„ IFVG (INVERSE FVG)

### What Is an IFVG?
An Inverse FVG forms when price **fills an FVG and then reclaims it** in the opposite direction. This signals a **failed institutional move**.

### Detection Logic
```
BULLISH IFVG:
โ”œโ”€โ”€ Bearish FVG was created (gap down)
โ”œโ”€โ”€ Price fills the gap (tests zone)
โ”œโ”€โ”€ Price CLOSES ABOVE the gap with buy delta
โ””โ”€โ”€ SIGNAL: Bears failed โ†’ Strong reversal UP

BEARISH IFVG:
โ”œโ”€โ”€ Bullish FVG was created (gap up)
โ”œโ”€โ”€ Price fills the gap (tests zone)
โ”œโ”€โ”€ Price CLOSES BELOW the gap with sell delta
โ””โ”€โ”€ SIGNAL: Bulls failed โ†’ Strong reversal DOWN
```

### Why IFVG Is Powerful
- Shows institutional failure โ†’ Other side takes control
- Pre-assigned quality score of 8.0 (high priority)
- Often marks significant reversals
- Purple dashed boxes for easy identification

---

## ๐Ÿ“Š ZONE QUALITY SCORING

### The "Zones That Matter" Filter
Not all FVGs and OBs are created equal. v6 implements a **Zone Quality Score** (0-10) that filters out low-quality zones.

### Quality Calculation
| Factor | Max Points | How Measured |
|--------|------------|--------------|
| Gap Size | 2.5 | Larger gap = more points |
| Impulse Strength | 2.5 | Stronger move = more points |
| Volume | 2.0 | Higher volume = more points |
| OB Alignment | 2.0 | FVG overlaps with OB = bonus |
| Session | 1.0 | Created in active session = bonus |

### Min Quality Threshold (Default: 6.0)
Zones scoring below this threshold **are not displayed**. Adjust in settings:
- **Conservative**: Set to 7.0+ (fewer, better zones)
- **Standard**: 6.0 (balanced)
- **Aggressive**: 4.0-5.0 (more zones, more noise)

### Visual Quality Indicators
- **Thick border**: Zone aligns with Order Block (high quality)
- **Bright color**: Fresh zone
- **Gray color**: Tested zone (still valid)
- **Removed**: Broken zone (invalidated)

---

## ๐Ÿ“Š CONFLUENCE SCORING SYSTEM

### Score Components (Max ~12, normalized to 10)

| Factor | Points | Condition |
|--------|--------|-----------|
| **Tier** | 1-3 | B=1, A=2, S=3 |
| **FVG Zone** | +1.5 | Price in quality FVG |
| **Order Block** | +1.5 | Price in OB |
| **IFVG** | +1.0 | Price in Inverse FVG |
| **Strong Volume** | +1.0 | Volume โ‰ฅ 2x average |
| **Extreme Volume** | +0.5 | Volume โ‰ฅ 2.5x average |
| **Strong Delta** | +1.0 | Delta โ‰ฅ 70% |
| **Extreme Delta** | +0.5 | Delta โ‰ฅ 78% |
| **CVD Momentum** | +0.5-1.0 | CVD trending with signal |
| **Liquidity Sweep** | +1.5 | Recent sweep confirms direction |

### Score Classification
| Score | Class | Confidence | Position Size |
|-------|-------|------------|---------------|
| **7.0+** | EXCELLENT | Very High | Full size (100%) |
| **4.5-6.9** | MEDIUM | Good | Standard (75%) |
| **< 4.5** | WEAK | Low | No signal shown |

### Score Displayed in Table
The table shows both the numeric score and classification:
- Green background + "EXCELLENT" = Top tier setup
- Orange background + "MEDIUM" = Decent setup
- Gray + "WEAK" = Below threshold

---

## ๐Ÿ“Š ENHANCED TABLE REFERENCE

The v6 table is organized into **4 sections**:

### CANDLE Section
| Row | What It Shows |
|-----|---------------|
| Points | Candle range in points + Tier (S/A/B/X) |
| Volume | Volume ratio + grade (๐Ÿ”ฅ/โœ“โœ“/โœ“/โœ—) |

### ORDERFLOW Section
| Row | What It Shows |
|-----|---------------|
| Delta | Buy/Sell % + grade (๐Ÿ”ฅ/โœ“โœ“/โœ“/โ€”) |
| CVD | Direction + strength (โ–ฒโ–ฒ STRONG, โ–ฒ UP, etc.) |

### STRUCTURE Section
| Row | What It Shows |
|-----|---------------|
| FVG Zone | Current zone status + quality score |
| Order Block | OB status (BULL OB / BEAR OB / โ€”) |
| Liq Sweep | Recent sweep status + ๐ŸŽฏ indicator |

### SIGNAL Section
| Row | What It Shows |
|-----|---------------|
| Session | Current session (NY/LDN/PWR/OFF) + ๐ŸŸข/๐Ÿ”ด |
| SCORE | Numeric score /10 + classification |

### Color Coding
- **๐ŸŸข Green/Lime**: Good, meets threshold, bullish
- **๐ŸŸ  Orange/Amber**: Caution, borderline, medium
- **๐Ÿ”ด Red**: Bad, below threshold, bearish
- **โšช Gray**: Inactive/neutral
- **๐Ÿ”ฅ**: Extreme/exceptional reading

---

## โœ… ENTRY CHECKLIST v6

Before entering any trade:

### Basic Requirements
- [ ] Signal present (S๐ŸŽฏ/A๐ŸŽฏ/B๐ŸŽฏ or Z)
- [ ] Score โ‰ฅ 4.5 (MEDIUM or better)
- [ ] Session active (LDN/NY/PWR shows ๐ŸŸข)

### Orderflow Confirmation
- [ ] Delta colored (not gray)
- [ ] CVD arrow matches direction
- [ ] Volume shows โœ“ or better

### Structure Bonus (Any = Better)
- [ ] In FVG Zone
- [ ] In Order Block
- [ ] Recent Liquidity Sweep
- [ ] IFVG present

### Execute
- [ ] Enter at signal candle close
- [ ] Stop below/above candle (shown on chart)
- [ ] Target at calculated R:R level

---

## ๐ŸŽฏ IDEAL SETUPS (HIGH WIN RATE)

### Setup 1: Sweep + Zone + Tier
```
Conditions:
โ”œโ”€โ”€ Liquidity Sweep just occurred (LSโ†‘ or LSโ†“)
โ”œโ”€โ”€ Price is at Order Block or FVG
โ”œโ”€โ”€ Tier signal fires (S/A/B)
โ”œโ”€โ”€ Score: 7+ EXCELLENT
โ””โ”€โ”€ Win Rate: ~75-85%
```

### Setup 2: IFVG + Delta Confirmation
```
Conditions:
โ”œโ”€โ”€ IFVG just formed (purple zone)
โ”œโ”€โ”€ Strong delta (70%+) in IFVG direction
โ”œโ”€โ”€ CVD confirming
โ”œโ”€โ”€ Score: 7+ EXCELLENT
โ””โ”€โ”€ Win Rate: ~70-80%
```

### Setup 3: OB + FVG Overlap
```
Conditions:
โ”œโ”€โ”€ Order Block present
โ”œโ”€โ”€ FVG zone overlaps with OB (thick border)
โ”œโ”€โ”€ Price returns to overlap zone
โ”œโ”€โ”€ Delta confirms direction
โ””โ”€โ”€ Win Rate: ~70-78%
```

### Setup 4: Clean Zone Entry
```
Conditions:
โ”œโ”€โ”€ Quality zone (score 6+)
โ”œโ”€โ”€ No tier signal but Z entry shows
โ”œโ”€โ”€ Delta matches zone direction
โ”œโ”€โ”€ In active session
โ””โ”€โ”€ Win Rate: ~65-72%
```

---

## โ›” DO NOT TRADE

- Session shows "OFF" or ๐Ÿ”ด
- Score < 4.5 (WEAK)
- Delta shows "โ€”" (no dominance)
- CVD conflicts with signal direction
- Multiple conflicting zones
- Zone quality < 6
- Major news imminent (FOMC, NFP, CPI)
- Price chopping between zones

---

## ๐Ÿ”ง SETTINGS GUIDE

### Recommended Configurations

**Conservative (2-4 trades/day):**
```
Min Score Medium: 5.5
Min Score Excellent: 7.5
Min Zone Quality: 7.0
Min Volume Ratio: 2.0
Delta Threshold: 65%
```

**Standard (4-6 trades/day):**
```
Min Score Medium: 4.5
Min Score Excellent: 7.0
Min Zone Quality: 6.0
Min Volume Ratio: 1.8
Delta Threshold: 62%
```

**Aggressive (6-8 trades/day):**
```
Min Score Medium: 4.0
Min Score Excellent: 6.5
Min Zone Quality: 5.0
Min Volume Ratio: 1.5
Delta Threshold: 60%
```

---

## ๐Ÿšจ ALERTS PRIORITY

### Must-Have Alerts
| Alert | Priority | Action |
|-------|----------|--------|
| โญ EXCELLENT LONG/SHORT | ๐Ÿ”ด CRITICAL | Drop everything, check NOW |
| ๐ŸŽฏ S-TIER | ๐ŸŸ  HIGH | Evaluate within 10 seconds |
| ๐Ÿ’Ž LIQUIDITY SWEEP | ๐ŸŸ  HIGH | Check for zone confluence |
| ๐Ÿ”„ IFVG | ๐ŸŸก MEDIUM | Note reversal potential |

### Useful Context Alerts
| Alert | Purpose |
|-------|---------|
| ๐Ÿ“ฆ NEW OB | Mark institutional zone |
| ๐Ÿ“ฆ NEW FVG | Mark gap zone |
| SESSION OPEN | Prepare to trade |

---

## ๐Ÿ“ˆ TRADE JOURNAL v6

```
DATE: ___________
SESSION: โ˜ LDN โ˜ NY โ˜ PWR

SETUP TYPE:
โ˜ Sweep + Zone โ˜ IFVG โ˜ OB+FVG โ˜ Zone Entry

TRADE:
โ”œโ”€โ”€ Time: _______
โ”œโ”€โ”€ Signal: S๐ŸŽฏ / A๐ŸŽฏ / B๐ŸŽฏ / Z / LS
โ”œโ”€โ”€ Direction: LONG / SHORT
โ”œโ”€โ”€ Score: ___/10 (EXCELLENT / MEDIUM)
โ”œโ”€โ”€ Entry: _______
โ”œโ”€โ”€ Stop: _______
โ”œโ”€โ”€ Target: _______
โ”‚
โ”œโ”€โ”€ In FVG Zone: โ˜ Yes โ˜ No
โ”œโ”€โ”€ In Order Block: โ˜ Yes โ˜ No
โ”œโ”€โ”€ Liquidity Sweep: โ˜ Yes โ˜ No
โ”œโ”€โ”€ IFVG Present: โ˜ Yes โ˜ No
โ”‚
โ”œโ”€โ”€ Result: +/- ___ pts ($_____)
โ””โ”€โ”€ Notes: _______________________

DAILY SUMMARY:
โ”œโ”€โ”€ Trades: ___
โ”œโ”€โ”€ EXCELLENT setups: ___
โ”œโ”€โ”€ MEDIUM setups: ___
โ”œโ”€โ”€ Wins: ___ | Losses: ___
โ”œโ”€โ”€ Net P/L: $_____
โ””โ”€โ”€ Best setup type: _______________________
```

---

## ๐Ÿ† GOLDEN RULES v6

> **"Institutions sweep, then move. Wait for the sweep."**

> **"Order Blocks show where they filled. Trade there."**

> **"IFVG = They failed. Take the other side."**

> **"Zone Quality 6+ or walk away."**

> **"EXCELLENT score = Green light. MEDIUM = Yellow light. WEAK = Red light."**

> **"Confluence beats conviction. Stack the factors."**

> **"Leave every trade with money. The next setup is coming."**

---

## ๐Ÿ”ง TROUBLESHOOTING

| Issue | Solution |
|-------|----------|
| No signals | Lower Min Score Medium to 4.0 |
| Too many signals | Raise Min Score Medium to 5.5+ |
| Too many zones | Raise Min Zone Quality to 7.0+ |
| Zones cluttering | Reduce Max Zones to 6-8 |
| OBs everywhere | Raise OB Min Strength to 1.8+ |
| Missing sweeps | Lower Sweep Lookback, reduce Min Wick Ratio |
| Table too small | Change Table Size to "large" |
| Wrong timezone | Check Session Timezone setting |

---

## ๐Ÿ“ TECHNICAL NOTES

- **Pine Script v6** (latest syntax)
- **Works on**: YM, MYM, NQ, MNQ, ES, MES, GC, MGC
- **Auto-detects** instrument for proper point calculation
- **Recommended TF**: 1-5 minute for day trading
- **Min TradingView Plan**: Free (no premium features required)
- **Max visual elements**: 500 labels, 500 boxes, 500 lines

---

*ยฉ Alexandro Disla - YM Ultimate SNIPER v6*
*Orderflow Edition | Zones That Matter*

Penafian

Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.