TV Script - Trading Dashboard Documentation

Comprehensive documentation for TradingView Pine Script indicators and trading strategies

View the Project on GitHub tekram/tv-script

Bollinger Bands System

Overview

The Bollinger Bands system provides volatility-based support and resistance levels using standard deviation. The script includes both standard Bollinger Bands and multi-timeframe BB calculations (though multi-timeframe calculations are currently disabled to reduce request calls).

Standard Bollinger Bands

Calculation

Visual Display

Configuration

Multi-Timeframe Bollinger Bands

Intended Features

Status: Variables declared but calculations removed to reduce request calls

Timeframes

Visual Elements (Planned)

Trading Applications

Standard BB Usage

Multi-Timeframe BB (When Enabled)

Configuration Options

Standard BB Settings

Display Settings

Best Practices

  1. Combine with Other Indicators: BBs work best with volume and structure
  2. Watch for Squeezes: Narrowing bands often precede big moves
  3. Respect the Bands: Bands act as dynamic support/resistance
  4. Multiple Timeframes: When enabled, use higher timeframe BBs for context
  5. Volume Confirmation: Require volume on BB breakouts

Technical Details

Standard BB Calculation

basis = ta.sma(src_bb, length)
dev = mult * ta.stdev(src_bb, length)
upper_band = basis + dev
lower_band = basis - dev

Multi-Timeframe BB (Disabled)

// Variables declared but calculations removed
var float bb_lower_30m = na
var float bb_lower_1h = na
// ... etc