OPEN-SOURCE SCRIPT
Schmit Trading Liquidity

Description
Schmit Trading Liquidity Marker automatically spots and labels open liquidity sweep levels by detecting classic stop-run patterns (Bull→Bear for highs, Bear→Bull for lows) across multiple timeframes. Lines are drawn exactly at the wick of the triggering candle and removed as soon as price “sweeps” through them, keeping your chart clean and focused on live levels only.
How It Works
1. Pattern Detection
• Liquidity High: When a bullish candle is immediately followed by a bearish candle (Bull→Bear), the script records the higher of the two wicks.
• Liquidity Low: When a bearish candle is immediately followed by a bullish candle (Bear→Bull), the script records the lower of the two wicks.
2. Multi-Timeframe Support
• Choose up to six timeframes (5 min, 15 min, 30 min, 1 h, 4 h, daily) via checkboxes.
• Each timeframe is evaluated independently, and liquidity levels are drawn on your current chart.
3. Precision Wick Placement
• Lines start at bar_index – 1 so they align exactly with the wick of the signal candle, regardless of your chart’s timeframe.
4. Automatic Cleanup
• As soon as price closes beyond a drawn line (sweep), that line is deleted automatically.
Inputs
Input Name Description
Show 5 min. Enable liquidity detection on the 5-minute timeframe.
Show 15 min. Enable liquidity detection on the 15-minute timeframe.
Show 30 min. Enable liquidity detection on the 30-minute timeframe.
Show 1 h. Enable liquidity detection on the 1-hour timeframe.
Show 4 h. Enable liquidity detection on the 4-hour timeframe.
Show 1 D. Enable liquidity detection on the daily timeframe.
High Line Color. Color of Bull→Bear (liquidity high) lines (default: red).
Low Line Color. Color of Bear→Bull (liquidity low) lines (default: blue).
Line Length. How many bars each liquidity line extends to the right.
Usage Tips
• Focus on Live Zones: Combine with volume or order-flow tools to confirm genuine
liquidity sweeps.
• Multiple TFs: Enable higher timeframes for major liquidity clusters; lower timeframes
for fine‐tuning entries.
• Chart Cleanliness: Lines self‐delete on sweep, ensuring no manual cleanup is needed.
⸻
Disclosure & License
This indicator is Open-Source under the Mozilla Public License 2.0. Feel free to review, adapt, and improve the code. No performance guarantees—use responsibly and backtest any strategy before trading live.
Schmit Trading Liquidity Marker automatically spots and labels open liquidity sweep levels by detecting classic stop-run patterns (Bull→Bear for highs, Bear→Bull for lows) across multiple timeframes. Lines are drawn exactly at the wick of the triggering candle and removed as soon as price “sweeps” through them, keeping your chart clean and focused on live levels only.
How It Works
1. Pattern Detection
• Liquidity High: When a bullish candle is immediately followed by a bearish candle (Bull→Bear), the script records the higher of the two wicks.
• Liquidity Low: When a bearish candle is immediately followed by a bullish candle (Bear→Bull), the script records the lower of the two wicks.
2. Multi-Timeframe Support
• Choose up to six timeframes (5 min, 15 min, 30 min, 1 h, 4 h, daily) via checkboxes.
• Each timeframe is evaluated independently, and liquidity levels are drawn on your current chart.
3. Precision Wick Placement
• Lines start at bar_index – 1 so they align exactly with the wick of the signal candle, regardless of your chart’s timeframe.
4. Automatic Cleanup
• As soon as price closes beyond a drawn line (sweep), that line is deleted automatically.
Inputs
Input Name Description
Show 5 min. Enable liquidity detection on the 5-minute timeframe.
Show 15 min. Enable liquidity detection on the 15-minute timeframe.
Show 30 min. Enable liquidity detection on the 30-minute timeframe.
Show 1 h. Enable liquidity detection on the 1-hour timeframe.
Show 4 h. Enable liquidity detection on the 4-hour timeframe.
Show 1 D. Enable liquidity detection on the daily timeframe.
High Line Color. Color of Bull→Bear (liquidity high) lines (default: red).
Low Line Color. Color of Bear→Bull (liquidity low) lines (default: blue).
Line Length. How many bars each liquidity line extends to the right.
Usage Tips
• Focus on Live Zones: Combine with volume or order-flow tools to confirm genuine
liquidity sweeps.
• Multiple TFs: Enable higher timeframes for major liquidity clusters; lower timeframes
for fine‐tuning entries.
• Chart Cleanliness: Lines self‐delete on sweep, ensuring no manual cleanup is needed.
⸻
Disclosure & License
This indicator is Open-Source under the Mozilla Public License 2.0. Feel free to review, adapt, and improve the code. No performance guarantees—use responsibly and backtest any strategy before trading live.
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.