TV Script - Trading Dashboard Documentation

Comprehensive documentation for TradingView Pine Script indicators and trading strategies

View the Project on GitHub tekram/tv-script

Pivot Points System

Overview

The Pivot Points system calculates and displays standard pivot point levels based on the previous day’s high, low, and close prices. These levels act as dynamic support and resistance zones for intraday trading.

Hourly Chart with Daily Pivots and Bollinger Bands

Example of pivot points displayed on an hourly chart showing R1, Pivot, S1, and S2 levels as support/resistance zones

Pivot Levels

Standard Pivot

Resistance Levels

R1 (Resistance 1)

Support Levels

S1 (Support 1)

S2 (Support 2)

Visual Display

Lines

Floating Label

Configuration Options

Display Settings

Visual Customization

Trading Applications

Support/Resistance Levels

Breakout Trading

Intraday Trading

Technical Details

Calculation

// Previous day's data
highPrevDay = high[1]
lowPrevDay = low[1]
closePrevDay = close[1]

// Pivot calculation
pivot = (high[1] + low[1] + close[1]) / 3
r1 = 2 * pivot - low[1]
s1 = 2 * pivot - high[1]
s2 = pivot - (high[1] - low[1])

Line Drawing

Best Practices

  1. Daily Reset: Pivot levels reset each day based on previous day’s data
  2. Combine with Other Indicators: Use with volume, EMA clouds, or structure
  3. Watch for Bounces: Price often bounces off pivot levels
  4. Breakout Confirmation: Wait for volume confirmation on breaks
  5. Multiple Timeframes: Check pivot levels on different timeframes