INVITE-ONLY SCRIPT

Prophet Model [TakingProphets]

59
The Prophet Model

**OVERVIEW**

Prophet Model is a **workflow assistant** for traders who practice ICT-style analysis. It does not issue buy/sell signals. Instead, it **discovers and organizes institutional context** in real time:
- Projects **HTF PD Arrays (FVGs)** onto your current chart.
- Validates **directional bias** using **Candle Range Theory (CRT)**.
- Detects **Liquidity Sweeps** (BSL/SSL).
- Confirms **Change in State of Delivery (CISD)** after a sweep.
- Refines entries with **EPE (Easiest Point of Entry)** if an internal imbalance appears.
- Generates **dynamic risk levels** (**TP/BE/SL**) from structural displacement rather than fixed distances.
- Keeps a **checklist** (PDA tap, CRT, Sweep, CISD) so you gate execution with rules.

This publication is **closed-source / invite-only** due to the integrated architecture (multi-module detection engine), nearest-PDA persistence logic, sweep→CISD sequencing, EPE refinement, dynamic risk math, and tables that maintain a consistent execution discipline.

---

**ARCHITECTURE AT A GLANCE**

- **Data sources**
- The script maps your current timeframe to a **higher timeframe** (HTF). Examples:
- 15S → M5, M1 → M15, M5 → H1, M15 → H4, H1 → D, H4 → W, D → M.
- HTF **O/H/L/C/time** are fetched using `request.security()` (with gaps handling).
- A **live HTF close** stream is kept (no lookahead), so structures update until the HTF candle closes.

- **Core modules**
- **HTF PD Arrays (FVGs)**: formation, visibility management, inverse-mitigation cleanup, nearest-PDA persistence.
- **CRT**: bias validation from a two-candle HTF pattern (bullish/bearish formulations).
- **Liquidity Sweeps**: BSL/SSL pivot tracking on HTF-derived levels.
- **CISD**: displacement confirmation through the **sequence open** following a sweep.
- **EPE**: optional refinement if an **internal FVG** forms right after CISD.
- **Dynamic TP/BE/SL**: derived from **measured swing** (not fixed pips).
- **Tables/Checklist**: execution discipline and TF relationship guidance.

---

**WHAT EACH MODULE DOES (WITH RULES AND EDGE CASES)**

- **HTF PD Arrays (FVGs)**
- **Bearish FVG condition (HTF):** `low[3] > high[1]` (skips weekend gaps and micro gaps).
- **Bullish FVG condition (HTF):** `high[3] < low[1]` (same filters).
- **Weekend-gap and tiny-gap filters:** prevent false PD arrays.
- **Inverse mitigation:** if price **invalidates** the box (e.g., trades clean through), the box is removed and the internal state resets (waiting flags for displacement cleared).
- **Nearest-PDA persistence:** when multiple FVGs exist, the script **keeps only the closest** to promote focus and reduce clutter.
- **Right extension:** each FVG box optionally **extends** X bars forward (input) to visualize lingering influence.

- **CRT (Candle Range Theory)**
- **Bullish CRT (HTF):**
- Candle2 **wicks below** Candle1 Low,
- Candle2 **closes back inside** Candle1 range, **below** Candle1 High,
- Candle2 **does not take** Candle1 High.
- **Bearish CRT (HTF):**
- Candle2 **wicks above** Candle1 High,
- Candle2 **closes back inside** Candle1 range, **above** Candle1 Low,
- Candle2 **does not take** Candle1 Low.
- **Role:** sets **directional conviction** and is paired to CISD when alignments match.

- **Liquidity Sweeps (BSL/SSL)**
- Tracks candidate **pivot highs/lows** as buy-side / sell-side liquidity.
- A **sweep** registers when price **takes** a tracked pivot.
- **Sweep + interaction with active HTF FVG** → **arm CISD watch** (we require context + response).

- **CISD (Change in State of Delivery)**
- **Sequence-finding:** locate the **open** of the impulsive leg (a run of same-color candles) starting at or right after the sweep.
- **Displacement confirmation:**
- After BSL sweep (seeking bearish shift): **close < sequence-open**.
- After SSL sweep (seeking bullish shift): **close > sequence-open**.
- On confirmation, the model **plots a CISD line**, marks **CISD present** on the checklist, and queues **dynamic risk** computation.

- **EPE (Easiest Point of Entry)**
- Immediately following CISD, scan **subsequent bars** for an **internal imbalance** (mini-FVG).
- If found, **move entry** from CISD level to the refined **EPE** level and **relabel** accordingly.
- EPE is optional; if none exists, CISD level remains as the default reference.

- **Dynamic Risk (TP / BE / SL)**
- Uses the **measured displacement** from swing extremes surrounding CISD:
- Example implementation in this build:
- `TP = swingStart − swingStop` **scaled** and **added/subtracted** based on side (≈2.25× stretch).
- `BE = swingStart − swingStop` (≈1× stretch).
- `SL` is aligned to **recent extremes** (contextual, not a fixed offset).
- These lines are **labeled** and can optionally **show price**; they can be shifted to follow real time.

- **Tables & Checklist**
- **Checklist** marks when each of the following is satisfied:
- **HTF PDA Tap**, **CRT**, **Liquidity Sweep**, **CISD**.
- **Flow State Relationships** table lists common **HTF PDA ↔ CISD** pairs (e.g., Weekly PDA ↔ H4 CISD).
- Both tables reinforce a **rules-first, confirmation-later** mindset.

---

**DETAILED LOGIC FLOW (SEQUENCE DIAGRAM STYLE)**

1) **Map TF → HTF** → fetch rolling HTF O/H/L/C/time + live HTF close.
2) **Detect new HTF candle** → re-run PD array, CRT, and cleanup steps.
3) **Create/extend FVGs** if valid; **remove** inverse-mitigated FVGs; keep **nearest** only.
4) **Check sweeps**: when a BSL/SSL pivot is taken, verify that price **engages the current HTF PDA**.
5) If engaged, **arm CISD** and start watching for **displacement through the sequence open**.
6) On displacement, **confirm CISD** → draw CISD level, compute **TP/BE/SL**.
7) Within the follow-up window, **scan for internal FVG** → if found, **promote EPE** (entry refinement).
8) **Checklist** updates; **Relationship table** highlights current TF pair.
9) **Cleanup**: old lines/labels/boxes are periodically removed to keep charts light and relevant.

---

**WHY THIS IS ORIGINAL**

- **Integrated engine**: HTF PDA maintenance + CRT gating + liquidity sweep → CISD confirmation → EPE refinement → **dynamic risk** (TP/BE/SL) across one coherent pipeline.
- **Nearest-FVG persistence** and **inverse-mitigation** rules focus the analyst on **the** active institutional area rather than crowding the chart.
- **Displacement-based risk math** avoids one-size-fits-all pip distances.
- **Execution discipline features** (checklist + relationships table) are designed to reduce discretionary errors and curb overtrading.

---

**INPUTS (FULL OVERVIEW)**

- **General**
- Extend HTF FVGs by X bars (right extension of boxes)

- **Fair Value Gaps**
- Show/Hide FVGs, optional borders
- Bullish/Bearish colors, label color, label size

- **CISD**
- Show/Hide CISD lines
- Line color, label color, label size

- **EPE**
- Show/Hide EPE lines
- Line color, label color, label size

- **Limits (TP/BE/SL)**
- Show/Hide each level independently
- Show prices on labels (on/off)
- TP/BE/SL colors

- **Info Box & Tables**
- Show info box (title, symbol, date) + text color
- Show Relationship table (TF pairing guidance)
- Show Strategy Checklist (PDA Tap, CRT, Sweep, CISD)
- Table text size and header colors

---

**HOW TO USE (PRACTICAL PLAYBOOK)**

- **Setup**
- Keep your normal trading timeframe; add the indicator.
- Let the tool auto-map HTF and draw **current PD arrays**.

- **Checklist sequence**
- Wait for **HTF PDA** engagement (tap/mitigation).
- Confirm **CRT** in the direction of interest.
- Observe a **Liquidity Sweep** (BSL for potential shorts, SSL for potential longs).
- Seek **CISD confirmation** through the **sequence open**.

- **Entry refinement**
- If CISD prints, look for **internal FVG** shortly after; if present, the model **promotes EPE** as a refined entry.
- If no internal FVG forms, CISD line remains the primary reference.

- **Risk planning**
- Use **dynamic TP/BE/SL** lines (derived from the displacement leg).
- You can toggle price labels and line colors to match your workspace.

- **Context management**
- Use the **Relationships** table to align typical PDA↔CISD pairs (e.g., Weekly PDA driving H4 CISD).
- Review **only the nearest FVG**—the model hides the rest to reduce noise.

---

**REPAINTING, TIMING, AND LIMITATIONS**

- `request.security()` is used **without lookahead**; HTF data **updates intrabar** until the HTF bar closes.
- **CISD/EPE** are **live**: conditions can **form and then invalidate** before the HTF bar close.
- Conservative users may choose to **act only on close** of the HTF bar that confirms CISD.
- **Weekend gaps / tiny gaps** are filtered; extremely thin sessions can reduce clarity.
- **Dynamic risk** references structural swings; it is **not** a guarantee or an optimized money-management model.
- This tool is **analytical** and **educational**. No performance claims.

---

**ALERTS**
*(This build focuses on drawings/tables. You can add alertconditions aligned with these events in your private version.)*
- **CISD Confirmed (Bullish / Bearish)**
- **EPE Set / Updated**
- **HTF PDA Tap (Bullish / Bearish box)**
- **CRT Detected (Bullish / Bearish)**

**Example alert text**
- “Prophet: CISD+ confirmed on {{ticker}} / {{interval}}”
- “Prophet: EPE refined (bullish) at {{close}} on {{time}}”

---

**NOTES & ATTRIBUTION**

- Aligned with **ICT concepts**: PD arrays (FVGs), CRT, liquidity sweeps, displacement/CISD, refined entries.
- **Closed-source & invite-only** due to the original **end-to-end architecture** and maintenance value.
- **Educational use only. Not financial advice.**

Pernyataan Penyangkalan

Informasi dan publikasi tidak dimaksudkan untuk menjadi, dan bukan merupakan saran keuangan, investasi, perdagangan, atau rekomendasi lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Persyaratan Penggunaan.