OPEN-SOURCE SCRIPT
Trade Intelligence Dashboard

// =============================================================================
// INDICATOR DESCRIPTION
// =============================================================================
// Name : Trade Intelligence Dashboard
// Version : Pine Script v6
// Type : Indicator (overlay)
// Author : Built with Claude (Anthropic) — designed as a universal debug tool
// Instruments : NQ, MNQ, ES, MES, SPY, QQQ, Stocks — any instrument
// Timeframes : Works on all timeframes
// =============================================================================
//
// OVERVIEW
// --------
// The Trade Intelligence Dashboard is a standalone indicator designed to give traders
// a comprehensive at-a-glance view of market conditions across 9 independent
// analysis sections, all displayed in a single clean horizontal table at the
// bottom of the chart. It is instrument-agnostic and works with any strategy —
// not just the VWAP + CVD strategy it was originally built alongside.
//
// The panel is designed to support real-time trading decisions by surfacing
// the most important technical and structural information in one place, color
// coded for instant interpretation — no hunting through multiple indicators
// or panels.
//
// Because it is a standalone indicator it can be added or removed from any
// chart independently without affecting any strategy script. This makes it
// ideal for live trading sessions where you want maximum information density,
// and easy to remove during backtesting when a clean chart is preferred.
//
// =============================================================================
// LAYOUT
// =============================================================================
//
// The panel displays as a horizontal table across the bottom of the chart
// with 10 columns and 9 rows:
// - Column 0 : Instrument info (always visible, cannot be toggled)
// - Columns 1–9 : Analysis sections (each independently toggleable)
// - Row 0 : Section headers (shaded with Section Header Background color)
// - Rows 1–8 : Metric labels and values
//
// When a section is toggled off its column disappears and all remaining
// columns shift left automatically — the table always stays compact and clean
// regardless of how many sections are active.
//
// =============================================================================
// SECTIONS
// =============================================================================
//
// INSTRUMENT (Col 0 — always visible)
// ------------------------------------
// Displays the selected instrument preset, point value, current price, daily
// change in points, and daily change as a percentage. The instrument preset
// dropdown auto-fills the correct point value for dollar-value calculations
// displayed throughout the panel.
// Presets: NQ (20), MNQ (2), ES (50), MES (5), SPY/QQQ/Stock (1)
//
// VWAP (Col 1)
// ------------
// Shows the relationship between price and session VWAP. Metrics include:
// Above/Below status, distance in points, distance as percentage, VWAP value,
// and dollar distance from VWAP (using point value). Green when price is above
// VWAP, red when below.
//
// TREND (Col 2)
// -------------
// Displays the current trend direction (Up/Down/Flat), whether the trend is
// strong enough to trade (based on ATR multiple threshold), trend strength in
// points, and trend strength expressed as an ATR multiple. Green for bullish,
// red for bearish, white for flat/neutral.
//
// ATR & VOLATILITY (Col 3)
// ------------------------
// Shows the current ATR value, ATR as a percentage of price, volatility
// condition (OK or Low based on minimum ATR % floor), ATR dollar value
// (ATR × point value), and ATR direction with percentage change from the
// previous bar. Useful for understanding whether current conditions are
// favorable for momentum trades.
//
// CVD — Cumulative Volume Delta (Col 4)
// --------------------------------------
// Displays the session CVD value (resets each day when session reset is
// enabled), CVD threshold, overall CVD direction (Bullish/Bearish/Neutral),
// CVD position relative to threshold (Above/Inside/Below), and the session
// reset status. Green for bullish CVD, red for bearish, yellow for neutral/
// inside threshold. Note: CVD uses bar direction as a proxy for true delta
// since bid/ask volume is unavailable in Pine Script.
//
// EMA/SMA (Col 5)
// ---------------
// Shows the fast MA value and direction, slow MA value and direction, the
// most recent cross signal (Bullish Cross / Bearish Cross / None), and
// price position relative to both the fast and slow MA. MA mode (EMA or SMA)
// and both lengths are fully user adjustable. MA lines for fast and slow are
// also plotted on the chart when this section is enabled. Green for rising/
// bullish, red for falling/bearish.
//
// VOLUME (Col 6)
// --------------
// Displays current bar volume, volume classification vs average (High/Normal/
// Low based on user-defined thresholds), volume ratio (current vs average),
// bar pressure (Buying/Selling/Neutral based on bar direction), and the volume
// moving average value. High volume = green, low volume = red, normal = white.
//
// MARKET STRUCTURE (Col 7)
// ------------------------
// Tracks swing highs and lows using pivot detection to identify the current
// market structure. Displays the last swing type (HH/HL/LH/LL), overall
// structure bias (Bullish/Bearish/Neutral), bars since the last swing, last
// swing high and low values, and swing range in points. HH/HL = green
// (bullish structure), LH/LL = red (bearish structure).
//
// RSI (Col 8)
// -----------
// Shows the current RSI value, condition (Overbought/Oversold/Neutral),
// RSI trend (Rising/Falling/Flat), overbought and oversold levels, and
// RSI distance from the 50 midline. RSI above 50 = green, below 50 = red,
// at 50 = yellow. Overbought = red (caution), oversold = green (opportunity).
// RSI length and OB/OS levels are fully user adjustable.
//
// PRICE ACTION (Col 9)
// --------------------
// Displays bar-level price action analysis including: bar direction (Bullish/
// Bearish/Doji), bar range in points and dollars, bar range vs current ATR
// (above 1x ATR = green, below = red), bar close position (Upper/Mid/Lower
// third of the bar range), and consecutive bullish or bearish bar count.
// This section helps identify momentum, exhaustion, and conviction at the
// bar level without needing a separate candlestick pattern indicator.
//
// =============================================================================
// COLOR CODING SYSTEM
// =============================================================================
//
// All values throughout the panel follow a consistent dynamic color system:
//
// Green (Positive Color) — bullish, true, above, rising, high, OK,
// long, buying, HH/HL, oversold RSI (opportunity)
// Red (Negative Color) — bearish, false, below, falling, low, weak,
// short, selling, LH/LL, overbought RSI (caution)
// Yellow (Warning Color) — neutral boundary, 50% levels, inside threshold,
// Doji bars, equal wicks, RSI at 50
// White (Neutral Color) — raw numbers with no directional meaning,
// labels, static reference values
//
// All four colors are fully user adjustable via the Colors input group.
//
// =============================================================================
// DOLLAR VALUE CALCULATIONS
// =============================================================================
//
// Several metrics display dollar values calculated by multiplying point values
// by the instrument point value from the preset. This makes the panel
// immediately useful for futures traders who think in dollar terms:
//
// NQ — 1 point = $20 (full size Nasdaq futures)
// MNQ — 1 point = $2 (micro Nasdaq futures)
// ES — 1 point = $50 (full size S&P 500 futures)
// MES — 1 point = $5 (micro S&P 500 futures)
// SPY / QQQ / Stock — 1 point = $1 (shares, adjust for lot size manually)
//
// Dollar values appear for: VWAP distance, ATR value, and bar range.
//
// =============================================================================
// DISPLAY SETTINGS
// =============================================================================
//
// Box Position — Top Right, Top Left, Bottom Right, Bottom Left
// Box Text Size — Small (size.tiny), Medium (size.small), Large (size.normal)
// Box Background — fully user adjustable color
// Box Text Color — fully user adjustable color
// Box Border — thickness 0–5, fully user adjustable
// Section Header — separate background color for section header row
//
// =============================================================================
// USAGE TIPS
// =============================================================================
//
// - Add this indicator to any chart independently of any strategy script.
// It recalculates all values from scratch using only price and volume data
// so it works alongside any strategy without conflicts.
//
// - Toggle sections off that are not relevant to your current setup to keep
// the panel compact. For example, if you are not using MA-based entries
// you can toggle off the EMA/SMA section entirely.
//
// - Use the Instrument preset to ensure dollar value calculations match your
// actual instrument. For NQ set to NQ, for MNQ set to MNQ etc.
//
// - The CVD session reset toggle should match the setting in your strategy
// script for consistent values across both panels.
//
// - For intraday trading the panel works best on timeframes of 1m through
// 30m. On daily or weekly charts the session-based metrics (CVD, session
// high/low, VWAP) will reflect longer periods which may not be meaningful
// for intraday setups.
//
// - Use TradingView Templates (gear icon → template dropdown → Save As) to
// save separate panel configurations for different instruments, with only
// the relevant sections enabled for each.
//
// - The MA lines (Fast MA and Slow MA) only plot on the chart when the
// EMA/SMA section is toggled on. Toggle it off to hide the MA lines from
// the chart without removing the indicator entirely.
//
// - The VWAP line also only plots when the VWAP section is toggled on.
// If you have a separate VWAP indicator already on the chart, toggle the
// VWAP section off to avoid duplicate lines.
// =============================================================================
// INDICATOR DESCRIPTION
// =============================================================================
// Name : Trade Intelligence Dashboard
// Version : Pine Script v6
// Type : Indicator (overlay)
// Author : Built with Claude (Anthropic) — designed as a universal debug tool
// Instruments : NQ, MNQ, ES, MES, SPY, QQQ, Stocks — any instrument
// Timeframes : Works on all timeframes
// =============================================================================
//
// OVERVIEW
// --------
// The Trade Intelligence Dashboard is a standalone indicator designed to give traders
// a comprehensive at-a-glance view of market conditions across 9 independent
// analysis sections, all displayed in a single clean horizontal table at the
// bottom of the chart. It is instrument-agnostic and works with any strategy —
// not just the VWAP + CVD strategy it was originally built alongside.
//
// The panel is designed to support real-time trading decisions by surfacing
// the most important technical and structural information in one place, color
// coded for instant interpretation — no hunting through multiple indicators
// or panels.
//
// Because it is a standalone indicator it can be added or removed from any
// chart independently without affecting any strategy script. This makes it
// ideal for live trading sessions where you want maximum information density,
// and easy to remove during backtesting when a clean chart is preferred.
//
// =============================================================================
// LAYOUT
// =============================================================================
//
// The panel displays as a horizontal table across the bottom of the chart
// with 10 columns and 9 rows:
// - Column 0 : Instrument info (always visible, cannot be toggled)
// - Columns 1–9 : Analysis sections (each independently toggleable)
// - Row 0 : Section headers (shaded with Section Header Background color)
// - Rows 1–8 : Metric labels and values
//
// When a section is toggled off its column disappears and all remaining
// columns shift left automatically — the table always stays compact and clean
// regardless of how many sections are active.
//
// =============================================================================
// SECTIONS
// =============================================================================
//
// INSTRUMENT (Col 0 — always visible)
// ------------------------------------
// Displays the selected instrument preset, point value, current price, daily
// change in points, and daily change as a percentage. The instrument preset
// dropdown auto-fills the correct point value for dollar-value calculations
// displayed throughout the panel.
// Presets: NQ (20), MNQ (2), ES (50), MES (5), SPY/QQQ/Stock (1)
//
// VWAP (Col 1)
// ------------
// Shows the relationship between price and session VWAP. Metrics include:
// Above/Below status, distance in points, distance as percentage, VWAP value,
// and dollar distance from VWAP (using point value). Green when price is above
// VWAP, red when below.
//
// TREND (Col 2)
// -------------
// Displays the current trend direction (Up/Down/Flat), whether the trend is
// strong enough to trade (based on ATR multiple threshold), trend strength in
// points, and trend strength expressed as an ATR multiple. Green for bullish,
// red for bearish, white for flat/neutral.
//
// ATR & VOLATILITY (Col 3)
// ------------------------
// Shows the current ATR value, ATR as a percentage of price, volatility
// condition (OK or Low based on minimum ATR % floor), ATR dollar value
// (ATR × point value), and ATR direction with percentage change from the
// previous bar. Useful for understanding whether current conditions are
// favorable for momentum trades.
//
// CVD — Cumulative Volume Delta (Col 4)
// --------------------------------------
// Displays the session CVD value (resets each day when session reset is
// enabled), CVD threshold, overall CVD direction (Bullish/Bearish/Neutral),
// CVD position relative to threshold (Above/Inside/Below), and the session
// reset status. Green for bullish CVD, red for bearish, yellow for neutral/
// inside threshold. Note: CVD uses bar direction as a proxy for true delta
// since bid/ask volume is unavailable in Pine Script.
//
// EMA/SMA (Col 5)
// ---------------
// Shows the fast MA value and direction, slow MA value and direction, the
// most recent cross signal (Bullish Cross / Bearish Cross / None), and
// price position relative to both the fast and slow MA. MA mode (EMA or SMA)
// and both lengths are fully user adjustable. MA lines for fast and slow are
// also plotted on the chart when this section is enabled. Green for rising/
// bullish, red for falling/bearish.
//
// VOLUME (Col 6)
// --------------
// Displays current bar volume, volume classification vs average (High/Normal/
// Low based on user-defined thresholds), volume ratio (current vs average),
// bar pressure (Buying/Selling/Neutral based on bar direction), and the volume
// moving average value. High volume = green, low volume = red, normal = white.
//
// MARKET STRUCTURE (Col 7)
// ------------------------
// Tracks swing highs and lows using pivot detection to identify the current
// market structure. Displays the last swing type (HH/HL/LH/LL), overall
// structure bias (Bullish/Bearish/Neutral), bars since the last swing, last
// swing high and low values, and swing range in points. HH/HL = green
// (bullish structure), LH/LL = red (bearish structure).
//
// RSI (Col 8)
// -----------
// Shows the current RSI value, condition (Overbought/Oversold/Neutral),
// RSI trend (Rising/Falling/Flat), overbought and oversold levels, and
// RSI distance from the 50 midline. RSI above 50 = green, below 50 = red,
// at 50 = yellow. Overbought = red (caution), oversold = green (opportunity).
// RSI length and OB/OS levels are fully user adjustable.
//
// PRICE ACTION (Col 9)
// --------------------
// Displays bar-level price action analysis including: bar direction (Bullish/
// Bearish/Doji), bar range in points and dollars, bar range vs current ATR
// (above 1x ATR = green, below = red), bar close position (Upper/Mid/Lower
// third of the bar range), and consecutive bullish or bearish bar count.
// This section helps identify momentum, exhaustion, and conviction at the
// bar level without needing a separate candlestick pattern indicator.
//
// =============================================================================
// COLOR CODING SYSTEM
// =============================================================================
//
// All values throughout the panel follow a consistent dynamic color system:
//
// Green (Positive Color) — bullish, true, above, rising, high, OK,
// long, buying, HH/HL, oversold RSI (opportunity)
// Red (Negative Color) — bearish, false, below, falling, low, weak,
// short, selling, LH/LL, overbought RSI (caution)
// Yellow (Warning Color) — neutral boundary, 50% levels, inside threshold,
// Doji bars, equal wicks, RSI at 50
// White (Neutral Color) — raw numbers with no directional meaning,
// labels, static reference values
//
// All four colors are fully user adjustable via the Colors input group.
//
// =============================================================================
// DOLLAR VALUE CALCULATIONS
// =============================================================================
//
// Several metrics display dollar values calculated by multiplying point values
// by the instrument point value from the preset. This makes the panel
// immediately useful for futures traders who think in dollar terms:
//
// NQ — 1 point = $20 (full size Nasdaq futures)
// MNQ — 1 point = $2 (micro Nasdaq futures)
// ES — 1 point = $50 (full size S&P 500 futures)
// MES — 1 point = $5 (micro S&P 500 futures)
// SPY / QQQ / Stock — 1 point = $1 (shares, adjust for lot size manually)
//
// Dollar values appear for: VWAP distance, ATR value, and bar range.
//
// =============================================================================
// DISPLAY SETTINGS
// =============================================================================
//
// Box Position — Top Right, Top Left, Bottom Right, Bottom Left
// Box Text Size — Small (size.tiny), Medium (size.small), Large (size.normal)
// Box Background — fully user adjustable color
// Box Text Color — fully user adjustable color
// Box Border — thickness 0–5, fully user adjustable
// Section Header — separate background color for section header row
//
// =============================================================================
// USAGE TIPS
// =============================================================================
//
// - Add this indicator to any chart independently of any strategy script.
// It recalculates all values from scratch using only price and volume data
// so it works alongside any strategy without conflicts.
//
// - Toggle sections off that are not relevant to your current setup to keep
// the panel compact. For example, if you are not using MA-based entries
// you can toggle off the EMA/SMA section entirely.
//
// - Use the Instrument preset to ensure dollar value calculations match your
// actual instrument. For NQ set to NQ, for MNQ set to MNQ etc.
//
// - The CVD session reset toggle should match the setting in your strategy
// script for consistent values across both panels.
//
// - For intraday trading the panel works best on timeframes of 1m through
// 30m. On daily or weekly charts the session-based metrics (CVD, session
// high/low, VWAP) will reflect longer periods which may not be meaningful
// for intraday setups.
//
// - Use TradingView Templates (gear icon → template dropdown → Save As) to
// save separate panel configurations for different instruments, with only
// the relevant sections enabled for each.
//
// - The MA lines (Fast MA and Slow MA) only plot on the chart when the
// EMA/SMA section is toggled on. Toggle it off to hide the MA lines from
// the chart without removing the indicator entirely.
//
// - The VWAP line also only plots when the VWAP section is toggled on.
// If you have a separate VWAP indicator already on the chart, toggle the
// VWAP section off to avoid duplicate lines.
// =============================================================================
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.