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 อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน