OPEN-SOURCE SCRIPT
Aktualisiert

jrhSMC

229
jrhSMCDashboard — Documentation
Smart Money Concepts (SMC/ICT-style) dashboard indicator built from scratch. Implements standard, publicly-documented concepts — market structure (BOS/CHoCH), premium/discount zones, equal highs/lows, liquidity sweeps, multi-timeframe VWAP.


Input Groups

Dashboard
Setting Purpose
Show Dashboard Master on/off for the table
Position Top Right / Top Left / Bottom Right / Bottom Left
Text Size Table text size (independent of on-chart label sizes below)

Market Structure (BOS / CHoCH)
Setting Purpose
Swing Pivot Length Bars on each side required to confirm a swing high/low (ta.pivothigh/ta.pivotlow). Larger = fewer, more significant pivots
Show BOS / CHoCH Labels Toggle the on-chart structure-break labels
Label Text Size Size of CHoCH/BOS labels and pivot dots (Tiny–Huge)
Show Pivot Dots Toggle the aqua/fuchsia dots marking confirmed swing highs/lows

Liquidity (Equal Highs/Lows + Sweeps)
Setting Purpose
Show Equal High/Low Labels Toggle EQH/EQL labels
Tolerance % How close two consecutive pivots must be (as a % of price) to count as "equal"
Label Text Size Size of EQH/EQL and SWEEP labels (Tiny–Huge)
Show Liquidity Sweep Markers Toggle the on-chart SWEEP labels

Premium / Discount / Equilibrium
Setting Purpose
Show Premium/Discount Zones Toggle the purple (premium) / blue (discount) zone boxes
Range Lookback (bars) Rolling window used to define the swing high/low that anchors the zones, Fib levels, and the dashboard's Levels row

Fibonacci Auto-Levels
Setting Purpose
Show Fib Levels Toggle the 5 auto-plotted retracement lines/labels, computed from the same Range Lookback swing
Label Text Size Size of the Fib ratio/price labels (Tiny–Huge)

Multi-Timeframe VWAP
Setting Purpose
Show VWAP Stack in Dashboard Toggle the VWAP (LTF) / VWAP (HTF) rows

Momentum (RSI / CVD Proxy)
Setting Purpose
RSI Length Standard RSI period

On-Chart Elements
Pivot Dots
Aqua dot = confirmed swing high. Fuchsia dot = confirmed swing low. Plotted Swing Pivot Length bars back from the current bar (pivots can only be confirmed in hindsight).

EQH / EQL Labels
Orange labels marking two consecutive pivot highs (EQH) or lows (EQL) within Tolerance % of each other — these represent liquidity pools resting just beyond the level, a common SMC concept for where stop-runs/sweeps are likely to occur.

CHoCH / BOS Labels
• CHoCH (Change of Character): the first break of structure against the prevailing trend — a potential reversal signal
• BOS (Break of Structure): a break continuing the prevailing trend — confirms trend continuation
Direction colors: bullish CHoCH = blue, bullish BOS = teal, bearish CHoCH = purple, bearish BOS = red.

SWEEP Labels
Marks a liquidity sweep: price wicks beyond a prior swing high/low (taking the resting liquidity) but the candle closes back inside — a classic stop-hunt/reversal pattern. Red "SWEEP" above the bar = buy-side liquidity taken (bearish implication). Green "SWEEP" below the bar = sell-side liquidity taken (bullish implication).

Premium / Discount Zone Boxes
Purple box = Premium (upper half of the Range Lookback swing — the "expensive"/sell zone in ICT terms). Blue box = Discount (lower half — the "cheap"/buy zone). Gray dashed line = Equilibrium (midpoint). The box slides with the current bar, always covering the most recent Range Lookback bars.

Fibonacci Levels
Five standard retracement ratios (0.236, 0.382, 0.5, 0.618, 0.786) computed from the same swing range as the Premium/Discount zone, plotted as dotted yellow lines with price labels.


Dashboard Table — Row Reference
Row Meaning
Trend Current market structure bias: Bullish (last break was bullish), Bearish (last break was bearish), or Neutral (no break yet)
Session Approximate UTC-based session window (Tokyo/London/New York) and which session comes next. Approximate — verify against your broker's actual session times
Levels Premium / Equilibrium / Discount price levels from the Range Lookback swing
Indicators RSI (standard) and CVD (approximation — up-candle volume minus down-candle volume; not true tick-level bid/ask delta, since that data isn't available in standard Pine Script)
Structure Flip The exact price level that needs to be closed beyond to flip the current Trend reading, phrased as "close above/below X to flip bull/bear"
VWAP (LTF) Anchored VWAP for 4H, 1D, and 1W periods
VWAP (HTF) Anchored VWAP for 1M, 6M, and 12M periods
Sweep Status Most recent liquidity sweep direction, with a (N bars ago) tag for staleness
Confluence Own 0–5 composite score counting agreement across Trend, RSI (>50/<50), CVD direction, Premium/Discount position, and Sweep direction. Not a replication of any commercial product's proprietary scoring — a simple vote-count of 5 independent factors
Versionshinweise
Major change.

Liquidity sweeps were occurring every candle.

Produced multiple invalid Sweeps on the chart.

The problem: In Pine Script, comparing anything to na with != or == doesn't work like a normal comparison — it returns na (treated as false) instead of true/false. My fix used lastPH[1] != sweptPHLevel, and since sweptPHLevel starts as na, that comparison evaluates to na forever — meaning the sweep condition can never become true, because it can never get past its own first check to set an initial value. That's a classic Pine gotcha.
Versionshinweise
Updated chart labels.

The VWAP (HTF) was confusing months for minutes.

Changed labels:


Now the row will read like 1Mo: 52838 | 6Mo: 52838 | 12Mo: 51941, which can't be misread as minutes.

Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.