OPEN-SOURCE SCRIPT

Liquidity Rails @darshakssc

844
Liquidity Rails projects dotted liquidity lines from every confirmed swing pivot — sellside
liquidity above prior highs, buyside liquidity below prior lows — and automatically removes
each line the moment price sweeps through it, giving an always-current liquidity map instead
of a cluttered chart full of old, already-swept levels.

🔶 HOW IT WORKS
Every confirmed pivot high spawns a dotted line projecting forward, labeled "Sellside
liquidity." Every confirmed pivot low spawns a dotted line labeled "Buyside liquidity." Nearby
levels of the same type (within an ATR-based tolerance) automatically merge into a single
line with a touch count, instead of stacking overlapping duplicate labels. The moment price
closes through a level, that line is deleted — swept liquidity doesn't linger on the chart.

🔶 HOW TO USE
- Red dotted line above price = resting sellside liquidity (prior high).
- Green dotted line below price = resting buyside liquidity (prior low).
- A line disappearing = that level was just swept by price.
- "×2 / ×3" on a label = multiple nearby swing points clustered into one liquidity zone.

🔶 SETTINGS
Swing Lookback (pivot sensitivity), Max Tracked Lines, ATR-based label offset, Merge Nearby
Levels tolerance, custom colors.

🔶 LIMITATIONS
Pivot confirmation requires right-side bars, so lines appear with an inherent lag — standard
for any non-repainting pivot-based tool. In fast trending markets many lines can appear and
sweep in quick succession; increase Max Tracked Lines or Swing Lookback for a calmer view.

This script is 100% original, open-source (MPL 2.0), and does not repaint.

For educational/informational purposes only. Not financial advice. Past performance does
not guarantee future results. Always use proper risk management.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.