PROTECTED SOURCE SCRIPT
PDH/PDL Breakout—Anchored Ghost Targets + (Truth Table)

What this does (integrated purpose—not a mashup):
This tool implements a “prove-it” breakout framework around prior-day levels. It (1) anchors Previous Day High/Low (PDH/PDL) to RTH, (2) reveals anchored ghost targets only after price proves itself beyond PDH/PDL, and (3) confirms direction using a 3-consecutive-closes rule. A compact Truth Table summarizes regime: Control Line, PDH/PDL position, and a microstructure-based composite trend score. Everything is designed to work together to filter fake breaks and provide objective upside/downside targets.
How it works (math/logic in plain English):
Prior-day levels (no repaint):
Pulls High, Low, Close of the previous day and extends PDH/PDL through today’s RTH session. (Daily values are read from the prior bar so signals don’t look ahead.)
Session scoping:
RTH is 09:30–16:00 ET. The script resets at 09:30, pre-creates all lines to the 16:00 session end, and confines triggers to RTH context.
Ghost target packs (original piece):
Compute classic pivot set from prior day:
P = (H+L+C) / 3, R1 = 2P − L, S1 = 2P−H
Create one full range-shift above and below the prior day:
range=H−L.
Add Fib overlays (0.382) around P/R1/S1 to form the pack.
Anchoring rule: packs are shifted so the upper pack never dips below PDH and the lower pack never rises above PDL. This prevents visual crossing with PDH/PDL and keeps targets clean after a confirmed break. Packs stay hidden until price proves itself (see next point).
Directional “prove-it” trigger:
You only get a signal after an actual cross of PDH/PDL followed by N consecutive RTH closes beyond that level (default 3; user input).
• Long: crossover above PDH → then 3 closes > PDH → one-bar pulse + optional alert.
• Short: crossunder below PDL → then 3 closes < PDL → one-bar pulse + optional alert.
After the first qualified trigger each session, bars beyond the level get a subtle Neo candle style so breakouts are visually distinct.
Truth Table (integration, not decoration):
Control Line = a smoothed multi-EMA control band (we expose a single “control line” derived from it),
PDH/PDL position (above, below, or inside),
Composite Trend = non-lag microstructure score combining: close-location value, thrust, wick imbalance, range-expansion direction, and HH/HL vs LL/LH structure (all summed over a short causal window).
Header colors use majority vote across those three rows so you see regime at a glance. This is used to interpret breaks and avoid chasing noise.
How to use it (practical workflow):
On equities during RTH, watch PDH/PDL.
When a break occurs, wait for the 3-close confirmation—that’s your “prove-it” trigger.
Upon trigger, the corresponding ghost pack becomes visible and provides objective intraday targets (pack lines + dashed Fib lines).
Use the Truth Table to sanity-check regime (e.g., bullish majority + PDH break = higher-confidence continuation).
Inputs & alerts:
Consecutive closes required (default 3).
Show Truth Table (on/off).
EMA ribbon/control line (on/off).
Alerts: “Bullish Trigger” and “Bearish Trigger” fire on the one-bar pulses right when confirmation completes.
Notes & limitations:
Designed for stocks using 09:30–16:00 ET. On 24/7 markets (e.g., crypto) RTH logic isn’t applicable.
Prior-day values are fixed from the daily timeframe, so the logic does not repaint.
The “Neo” candle styling is post-trigger only to keep earlier bars clean.
Why this is original/useful:
This is a single, integrated framework: anchored ghost targets (with a non-crossing constraint), prove-it confirmation (3-close rule), and a non-lag composite microstructure score summarized in a Truth Table. The components are purpose-built to work together to reduce false breakouts and supply clean, objective targets after confirmation—this is not a cosmetic mashup.
Educational note: Not financial advice. Test before use.
This tool implements a “prove-it” breakout framework around prior-day levels. It (1) anchors Previous Day High/Low (PDH/PDL) to RTH, (2) reveals anchored ghost targets only after price proves itself beyond PDH/PDL, and (3) confirms direction using a 3-consecutive-closes rule. A compact Truth Table summarizes regime: Control Line, PDH/PDL position, and a microstructure-based composite trend score. Everything is designed to work together to filter fake breaks and provide objective upside/downside targets.
How it works (math/logic in plain English):
Prior-day levels (no repaint):
Pulls High, Low, Close of the previous day and extends PDH/PDL through today’s RTH session. (Daily values are read from the prior bar so signals don’t look ahead.)
Session scoping:
RTH is 09:30–16:00 ET. The script resets at 09:30, pre-creates all lines to the 16:00 session end, and confines triggers to RTH context.
Ghost target packs (original piece):
Compute classic pivot set from prior day:
P = (H+L+C) / 3, R1 = 2P − L, S1 = 2P−H
Create one full range-shift above and below the prior day:
range=H−L.
Add Fib overlays (0.382) around P/R1/S1 to form the pack.
Anchoring rule: packs are shifted so the upper pack never dips below PDH and the lower pack never rises above PDL. This prevents visual crossing with PDH/PDL and keeps targets clean after a confirmed break. Packs stay hidden until price proves itself (see next point).
Directional “prove-it” trigger:
You only get a signal after an actual cross of PDH/PDL followed by N consecutive RTH closes beyond that level (default 3; user input).
• Long: crossover above PDH → then 3 closes > PDH → one-bar pulse + optional alert.
• Short: crossunder below PDL → then 3 closes < PDL → one-bar pulse + optional alert.
After the first qualified trigger each session, bars beyond the level get a subtle Neo candle style so breakouts are visually distinct.
Truth Table (integration, not decoration):
Control Line = a smoothed multi-EMA control band (we expose a single “control line” derived from it),
PDH/PDL position (above, below, or inside),
Composite Trend = non-lag microstructure score combining: close-location value, thrust, wick imbalance, range-expansion direction, and HH/HL vs LL/LH structure (all summed over a short causal window).
Header colors use majority vote across those three rows so you see regime at a glance. This is used to interpret breaks and avoid chasing noise.
How to use it (practical workflow):
On equities during RTH, watch PDH/PDL.
When a break occurs, wait for the 3-close confirmation—that’s your “prove-it” trigger.
Upon trigger, the corresponding ghost pack becomes visible and provides objective intraday targets (pack lines + dashed Fib lines).
Use the Truth Table to sanity-check regime (e.g., bullish majority + PDH break = higher-confidence continuation).
Inputs & alerts:
Consecutive closes required (default 3).
Show Truth Table (on/off).
EMA ribbon/control line (on/off).
Alerts: “Bullish Trigger” and “Bearish Trigger” fire on the one-bar pulses right when confirmation completes.
Notes & limitations:
Designed for stocks using 09:30–16:00 ET. On 24/7 markets (e.g., crypto) RTH logic isn’t applicable.
Prior-day values are fixed from the daily timeframe, so the logic does not repaint.
The “Neo” candle styling is post-trigger only to keep earlier bars clean.
Why this is original/useful:
This is a single, integrated framework: anchored ghost targets (with a non-crossing constraint), prove-it confirmation (3-close rule), and a non-lag composite microstructure score summarized in a Truth Table. The components are purpose-built to work together to reduce false breakouts and supply clean, objective targets after confirmation—this is not a cosmetic mashup.
Educational note: Not financial advice. Test before use.
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由且不受任何限制地使用它 — 在此處了解更多資訊。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由且不受任何限制地使用它 — 在此處了解更多資訊。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。