Pine Script Indicators Library

A curated collection of TradingView indicators written in Pine Script v5. Copy the code, paste it into TradingView, and start analyzing.

Smart Money Order Block Detector

Smart Money

Detects bullish and bearish order blocks based on displacement candles and highlights OB zones directly on your chart.

View Code

Volume Profile Session

Volume

Displays volume distribution for the current trading session and highlights the Point of Control (POC) where the most volume traded.

View Code

RSI Divergence Scanner

Momentum

Automatically detects bullish and bearish divergences between price and RSI, plotting arrows at divergence points.

View Code

Multi-Timeframe Moving Average

Trend

Displays moving averages from higher timeframes on your current chart, supporting SMA, EMA, and WMA types.

View Code

Liquidity Sweep Detector

Smart Money

Identifies sweeps of previous swing highs and lows where liquidity rests, marking sweep candles with labels on the chart.

View Code

ATR Trailing Stop

Volatility

A chandelier-style trailing stop based on Average True Range (ATR) that adapts to market volatility and color-codes for long/short bias.

View Code

MACD Histogram Color

Momentum

Enhanced MACD with a 4-color histogram showing increasing/decreasing momentum in both bullish and bearish phases, plus signal dots on crossovers.

View Code

Session Highlighter

Smart Money

Highlights the Asian, London, and New York trading sessions with colored backgrounds and tracks session high/low levels.

View Code

Bollinger Band Squeeze

Volatility

Detects when Bollinger Bands squeeze inside Keltner Channels, signaling low volatility, and fires a signal when the squeeze releases.

View Code

Trend Strength Dashboard

Trend

A table overlay showing trend status across multiple timeframes using ADX, MA slope, and price position relative to key moving averages.

View Code

Fair Value Gap Marker

Smart Money

Identifies and draws Fair Value Gap (FVG) zones on the chart, distinguishing between filled and unfilled gaps.

View Code

Stochastic RSI with Signals

Momentum

StochRSI oscillator with automatic buy and sell signal arrows when the indicator crosses out of overbought and oversold zones.

View Code