OPEN-SOURCE SCRIPT
Liquidity Rails @darshakssc

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.
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.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。