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が提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。