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.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.