Sparklines

11 090
Hello friends,

This script lets you monitor up to 12 different instruments simultaneously using compact mini price charts called sparklines. Instead of switching between multiple charts or cluttering your workspace, you can keep a real-time overview of your watchlist directly on a single chart pane.

Each sparkline displays the recent price action of an individual symbol, making it easy to compare trend direction, momentum, and relative performance across multiple markets at a glance.

🛠️ How It Works

The script retrieves market data for each selected symbol and renders a miniature price chart containing up to 20 recent points. Every sparkline is automatically scaled to its own price range, allowing instruments with vastly different prices to be compared visually.

You can organize the charts using multiple grid layouts, customize their appearance, display the latest price as a reference line, and choose how performance statistics are shown below each symbol. Since everything is drawn inside a single indicator pane, multiple instances can also be combined to monitor larger watchlists or mixed with other indicators.

🔥 Key Features
  • Monitor up to 12 symbols simultaneously
  • Multiple grid layouts from 1×1 to 6×2
  • Up to 20 price points per sparkline
  • Automatic per-chart scaling for clear visualization
  • Optional last price reference line
  • Flexible performance labels showing price, change, percentage, or combinations of them
  • Optional exchange prefixes and sparkline numbering
  • Adjustable spacing, positioning, sizing, colors, and line width
  • Multiple indicator instances can be combined on the same pane
📸 Visual Examples

Merge of three instances on the same pane:snapshotMerge with another indicator on the same pane:
snapshot👋 Good luck and happy trading!

Aviso legal

As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.