TV Script - Trading Dashboard Documentation

Comprehensive documentation for TradingView Pine Script indicators and trading strategies

View the Project on GitHub tekram/tv-script

Top Right Table - Market Data Dashboard

Overview

The Top Right Table is the primary data dashboard displayed in the top-right corner of your TradingView chart. It provides comprehensive market data, volume analysis, extended EMA/SMA measurements, and fundamental information to help swing traders make informed decisions.

Top Right Table Dashboard

Example of the Top Right Table showing market data, volume analysis, extended EMAs, and sector information

Components

Market Data Metrics

ADR% / Today Range

LoD Distance / (High/Low)

Average Daily Volume

Projected Volume / Relative Volume

Extended EMA/SMA Analysis

The Extended section shows how far price has extended from key moving averages, measured in:

  1. ATR Multiples: How many ATRs away from the MA
  2. Percentage: Percentage distance from the MA
  3. MA Value: Current value of the moving average

Extended EMA 5

Extended EMA 10

Extended EMA 20

Extended SMA 50

200 SMA

Additional Information

Sector & Industry Group

Inside Week / Inside Candle Detection

Top Right Table with Inside Week Detection

Example showing the Top Right Table with Inside Week pattern detected (purple background highlight)

Configuration Options

Display Toggles

Extended EMA/SMA Settings

Visual Settings

Trading Applications

Position Sizing

Entry Timing

Risk Management

Technical Details

Volume Calculations

// Relative Volume
relVol = vol / ta.sma(vol, len) * 100

// Projected Volume
volume_per_second = volume / time_passed
volume_projected = volume + volume_per_second * time_left

Extended Calculations

// Extended in ATR multiples
extended_ema = (close - price_ema) / atr

// Extended in percentage
percent_change_from_ema = (close - price_ema) / price_ema * 100

Inside Candle Detection

// Inside Week
isInsideWeekCandle = (prior_week_high < twoPriorWeekHigh and 
                      prior_week_low > twoPriorWeekLow)

// Inside Candle (configurable timeframe)
isInsideCandle = (twoPriorthirtyMinHigh >= prevThirtyMinHigh and 
                  twoPriorthirtyMinLow <= prevThirtyMinLow)

Best Practices

  1. Monitor Relative Volume: Look for stocks with Rel. Vol > 100% for institutional interest
  2. Check Extension: Avoid entries when Extended EMA 20 > 1.0 ATR
  3. Watch Inside Patterns: Inside weeks/candles often precede significant moves
  4. Use LoD Distance: Helps identify intraday support levels
  5. Sector Context: Compare stock performance to sector performance