PROTECTED SOURCE SCRIPT
QM Level Detector by RWBTradeLab

QM Level Detector by RWBTradeLab
A clean, non-repainting QM level detector built for traders who track structure shifts and level-break sequences using confirmed candles only.
What this indicator does
This script detects and marks QM Levels based on a strict, rule-based sequence using closed candles only (no running-bar signals).
It identifies two types of QM:
Buy QM
A Buy QM is confirmed when the following sequence completes in order:
* V Level is detected.
* That V Level is broken down by a red candle close below the V Level price.
* After that breakdown, the most recent A Level (formed before the breakdown) is identified.
* When that A Level is later broken out by a green candle close above the A Level price, the original V Level becomes a Buy QM Level.
Sell QM
A Sell QM is confirmed when the opposite sequence completes in order:
* A Level is detected.
* That A Level is broken out by a green candle close above the A Level price.
* After that breakout, the most recent V Level (formed before the breakout) is identified.
* When that V Level is later broken down by a red candle close below the V Level price, the original A Level becomes a Sell QM Level.
Visuals on chart
* A horizontal ray (right-extended) is drawn at the confirmed QM price level.
* Label distance is adjustable via Text Offset (ticks).
Alerts
Built-in alerts trigger only on candle close when a QM is confirmed:
* Buy QM
* Sell QM
Each alert is designed for reliable automation without repainting.
Key settings
* Candle Length (closed candles): Scans the last N closed bars (running candle excluded).
* Buy QM / Sell QM toggles: Show or hide each type.
* Text toggle: Show or hide labels.
* QM Line Color and Text Offset (ticks) customization.
Non-repainting confirmation
All detection, marking, and alerts are based on confirmed candles only.
No running-bar conditions → no repainting.
Disclaimer
This indicator is a level-detection tool, not financial advice. Trading involves risk—always use proper risk management and confirm signals with your own analysis.
Creator: RWBTradeLab
If you find this useful, please leave a like ⭐ and share your feedback.
A clean, non-repainting QM level detector built for traders who track structure shifts and level-break sequences using confirmed candles only.
What this indicator does
This script detects and marks QM Levels based on a strict, rule-based sequence using closed candles only (no running-bar signals).
It identifies two types of QM:
Buy QM
A Buy QM is confirmed when the following sequence completes in order:
* V Level is detected.
* That V Level is broken down by a red candle close below the V Level price.
* After that breakdown, the most recent A Level (formed before the breakdown) is identified.
* When that A Level is later broken out by a green candle close above the A Level price, the original V Level becomes a Buy QM Level.
Sell QM
A Sell QM is confirmed when the opposite sequence completes in order:
* A Level is detected.
* That A Level is broken out by a green candle close above the A Level price.
* After that breakout, the most recent V Level (formed before the breakout) is identified.
* When that V Level is later broken down by a red candle close below the V Level price, the original A Level becomes a Sell QM Level.
Visuals on chart
* A horizontal ray (right-extended) is drawn at the confirmed QM price level.
* Label distance is adjustable via Text Offset (ticks).
Alerts
Built-in alerts trigger only on candle close when a QM is confirmed:
* Buy QM
* Sell QM
Each alert is designed for reliable automation without repainting.
Key settings
* Candle Length (closed candles): Scans the last N closed bars (running candle excluded).
* Buy QM / Sell QM toggles: Show or hide each type.
* Text toggle: Show or hide labels.
* QM Line Color and Text Offset (ticks) customization.
Non-repainting confirmation
All detection, marking, and alerts are based on confirmed candles only.
No running-bar conditions → no repainting.
Disclaimer
This indicator is a level-detection tool, not financial advice. Trading involves risk—always use proper risk management and confirm signals with your own analysis.
Creator: RWBTradeLab
If you find this useful, please leave a like ⭐ and share your feedback.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
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ã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
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.