Indicator · Pine Script v6 · On the chart

AAPL Institutional Liquidity Grid

by dcaoyuan

This Pine Script indicator overlays institutional liquidity levels on the price chart.

View on GitHub

Repaints

GitHub stars55on the repository
Pine versionv6current
Lines of code31
Settings0inputs
LicenceApache-2.0
Last update6 months ago20 Apr 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above, or the copy button on the code below.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

31 lines of Pine Script v6 from public/indicators/instituteliquid.pine, published under Apache-2.0. Keep the author's credit and licence lines when you reuse it.

instituteliquid.pine
//@version=6
indicator("AAPL Institutional Liquidity Grid", overlay=true)

// Function: Draw persistence lines for levels
draw_level(price, color_in, width_in) =>
    line.new(bar_index - 30, price, bar_index, price, color=color_in, width=width_in)

// 1. Identify Institutional "Order Block" levels using Pivots
ph = ta.pivothigh(high, 10, 10)
pl = ta.pivotlow(low, 10, 10)

if not na(ph)
    draw_level(ph, color.new(color.red, 40), 2)
if not na(pl)
    draw_level(pl, color.new(color.green, 40), 2)

// 2. Mean Reversion Lines (The "Fair Value" Channels)
sma20 = ta.sma(close, 20)
sma50 = ta.sma(close, 50)
line.new(bar_index - 10, sma20[10], bar_index, sma20, color=color.blue, width=3)
line.new(bar_index - 10, sma50[10], bar_index, sma50, color=color.orange, width=3)

// 3. Volatility/Range Midpoint Projection
range_high = ta.highest(high, 60)
range_low = ta.lowest(low, 60)
mid_point = (range_high + range_low) / 2
line.new(bar_index - 20, mid_point, bar_index, mid_point, color=color.white, width=1, style=line.style_dashed)

// 4. Trend Velocity Indicator
// Draws a line showing the steepness of the current price relative to 5 days ago
line.new(bar_index - 5, close[5], bar_index, close, color=color.purple, width=2)

Overview

AAPL Institutional Liquidity Grid identifies order block levels using pivot highs and lows, then draws mean reversion lines from the 20 and 50 period simple moving averages, a volatility range midpoint projection, and a trend velocity line showing price steepness relative to five bars ago. All elements are plotted directly on the price chart without any input settings, signals, alerts, or exit rules. The tool helps visualize potential support and resistance areas but repaints lines on new bars.

Details

Published by

dcaoyuan on GitHub

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

Support & resistance, SMC / ICT / price action, Mean reversion, Volatility & bands

Markets

Stocks

Timeframes

Any timeframe

Risk Notes

  • Signals can change on the live bar or after it closes (repainting)

Topics

aicharttradingvibepinescripttechnical-analysispinestock

Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

ICT Liquidity Void Fill

by ArunKBhaskar
575 stars

This overlay indicator marks ICT liquidity void fills on the price chart and can show long and short signals. It places a Fibonacci level inside a displacement candle, defaulting to the midpoint, and draws lines in a chosen style. Optional filters limit the fi

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · MPL-2.0 GitHub repository of ICT Liquidity Void Fill
218 stars

This indicator maps market structure and supply and demand zones on the price chart. It marks validated and optional unvalidated swing highs and lows using a pivot length and extra confirmation bars. Consolidation and impulse moves are measured against ATR to

Indicator v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 3 months ago · None stated GitHub repository of Market Structure + Supply/Demand

This indicator combines six trading tools into a single chart overlay to optimize indicator limits. It calculates Bollinger Bands, projects weekend price boundaries, plots market structure elements like order blocks, breaker blocks, and MSB lines, marks New Yo

Indicator v6 Support & resistanceSMC / ICT / price action Repaints

This overlay indicator scores liquidity-sweep reversals on the price chart. It looks for a swing high or low violation followed by a recovery close, then grades optional conditions such as RSI and structure into a 0–2 quality score with separate long and short

Indicator v6 SMC / ICT / price actionOscillators & momentum
Updated yesterday · MIT GitHub repository of Reversal Engine Score v1 [WavesUnchained]

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers