OPEN-SOURCE SCRIPT
Levels With Touch Color (Dotted Touch)

Engulfing Candles — Levels with Touch & Liquidity Sweep
This indicator detects bullish and bearish engulfing candlestick patterns and plots support/resistance levels based on these patterns. It also highlights touch points where price interacts with these levels and visualizes liquidity areas for potential buy and sell zones.
Features:
Detects bullish and bearish engulfing patterns
Plots fixed levels at the high or low of the engulfing candle
Pointed touch lines:
Level changes color when price touches the level without breaking it
Green for bullish touches, red for bearish touches
Liquidity visualization:
Buy-side liquidity displayed as a line below the touched bullish level
Sell-side liquidity displayed as a line above the touched bearish level
Clean visual design with no background boxes, keeping the chart uncluttered
Automatic management of historical lines to prevent chart overload
Fully customizable liquidity offset and max number of historical levels
How to use:
Look for engulfing candle levels forming on the chart.
Watch the touch lines (green/red) for potential price reaction areas.
Identify zones where stop-hunts or market liquidity might appear.
Combine with your strategy or price action tools to find entries or exits.
Inputs:
Max history lines — Limits how many historical levels are kept on the chart
Liquidity offset — Adjusts distance of liquidity lines from the original level
Notes:
Touch lines turn colored only when price interacts with the level but does not break it.
Liquidity lines extend a few bars forward for visual clarity.
Works on all timeframes.
This indicator detects bullish and bearish engulfing candlestick patterns and plots support/resistance levels based on these patterns. It also highlights touch points where price interacts with these levels and visualizes liquidity areas for potential buy and sell zones.
Features:
Detects bullish and bearish engulfing patterns
Plots fixed levels at the high or low of the engulfing candle
Pointed touch lines:
Level changes color when price touches the level without breaking it
Green for bullish touches, red for bearish touches
Liquidity visualization:
Buy-side liquidity displayed as a line below the touched bullish level
Sell-side liquidity displayed as a line above the touched bearish level
Clean visual design with no background boxes, keeping the chart uncluttered
Automatic management of historical lines to prevent chart overload
Fully customizable liquidity offset and max number of historical levels
How to use:
Look for engulfing candle levels forming on the chart.
Watch the touch lines (green/red) for potential price reaction areas.
Identify zones where stop-hunts or market liquidity might appear.
Combine with your strategy or price action tools to find entries or exits.
Inputs:
Max history lines — Limits how many historical levels are kept on the chart
Liquidity offset — Adjusts distance of liquidity lines from the original level
Notes:
Touch lines turn colored only when price interacts with the level but does not break it.
Liquidity lines extend a few bars forward for visual clarity.
Works on all timeframes.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.