Session Stat Levels [Pascal ⧋]

Session Stat Levels plots session-based reference levels (Open, Manipulation, Distribution, Extreme) for up to four custom time blocks (S1–S4), using per-session mean/median stats from recent history. It supports custom timezones, optional SMT divergence marks, alerts, and a compact status table.
What it does
• Restricts to seconds–4h charts for reliability.
• Tracks each enabled session’s OHLC, then computes manipulation (wick side), distribution (body side), and extreme ranges.
• Uses rolling history (user-set) to derive mean/median per session; draws lines and optional shaded zones.
• Handles Stocks vs Futures/Forex/Crypto time logic (stocks confined to RTH; futures holiday/18:00 edge cases).
• Shows only the active session or up to N prior sessions, per setting.
• Optional SMT: detects ±SMT divergences against an auto/manual comparison ticker and shows the latest status.
• Alerts when price touches Open / Manipulation / Distribution / Extreme lines.
• Status table displays: current symbol, SMT ticker, SMT state, and active session.
Features
• Sessions: Four user-defined windows (HHMM), current-only toggle, and max historical display cap.
• Stats mode: Mean, Median, or Both (shades the band between them).
• Extreme levels: GKYZ volatility estimate scaled by a user multiplier.
• Visuals: Per-session lines, compact labels (O, M±, D±, σ±), optional zones with global opacity.
• Timezone: Fixed NY for stocks; selectable TZ for futures/forex/crypto.
• SMT: Auto pairing (ES↔NQ, CL↔RB, GC↔SI, FX, BTC↔ETH, etc.), removable invalidations.
• Alerts & table: Lightweight, background-aware text color for readability.
Disclaimer
For educational use only. Not financial advice. Past behavior and session statistics don’t guarantee future outcomes. Verify settings and results before trading.
Invite-only script
Only users approved by the author can access this script. You'll need to request and get permission to use it. This is typically granted after payment. For more details, follow the author's instructions below or contact pascalalgo directly.
TradingView does NOT recommend paying for or using a script unless you fully trust its author and understand how it works. You may also find free, open-source alternatives in our community scripts.
Author's instructions
Disclaimer
Invite-only script
Only users approved by the author can access this script. You'll need to request and get permission to use it. This is typically granted after payment. For more details, follow the author's instructions below or contact pascalalgo directly.
TradingView does NOT recommend paying for or using a script unless you fully trust its author and understand how it works. You may also find free, open-source alternatives in our community scripts.