OPEN-SOURCE SCRIPT
Clean Institutional Levels (ITH/ITL Mitigation)

The Clean Institutional Levels indicator is designed for traders who utilize "Intermediate Term Highs" (ITH) and "Intermediate Term Lows" (ITL) to identify key liquidity levels and market structure shifts. Unlike traditional pivot indicators that clutter the chart with boxes or static zones, this script provides a dynamic, real-time tracking system.
It projects a precise horizontal line from the moment a structural pivot is confirmed and extends that line indefinitely until it is mitigated (touched) by price action.
How it Works
The indicator identifies Intermediate pivots using a three-point peak/trough logic:
ITH (Intermediate Term High): A pivot high that is flanked by two lower pivot highs.
ITL (Intermediate Term Low): A pivot low that is flanked by two higher pivot lows.
Once an ITH or ITL is identified, the script draws a thin, professional level from the pivot point to the current bar. The "Mitigation Engine" monitors every price tick; as soon as price crosses the level, the line is "frozen" at that exact bar, providing a clear historical record of where liquidity was swept or the level was tested.
Key Features
Real-Time Extension: Lines automatically stretch to the right as new candles form until they are hit.
Automatic Truncation: Lines stop precisely at the candle of mitigation, showing you exactly when a level became "invalid" or was run.
Customizable Strength: Adjust the "Pivot Strength" (Left/Right bars) to filter between minor structural points and major institutional swings.
Clean Settings UI: No redundant options. Control line colors, widths, and label visibility with ease.
How to Use :
Liquidity Targets: Use unmitigated lines as "magnets" for price.
Market Structure: Watch for the mitigation of an ITH as a potential sign of bullish intent, or an ITL for bearish intent.
Entry Refinement: Use these levels to find precise "Fair Value" areas where price is likely to react after a sweep.
It projects a precise horizontal line from the moment a structural pivot is confirmed and extends that line indefinitely until it is mitigated (touched) by price action.
How it Works
The indicator identifies Intermediate pivots using a three-point peak/trough logic:
ITH (Intermediate Term High): A pivot high that is flanked by two lower pivot highs.
ITL (Intermediate Term Low): A pivot low that is flanked by two higher pivot lows.
Once an ITH or ITL is identified, the script draws a thin, professional level from the pivot point to the current bar. The "Mitigation Engine" monitors every price tick; as soon as price crosses the level, the line is "frozen" at that exact bar, providing a clear historical record of where liquidity was swept or the level was tested.
Key Features
Real-Time Extension: Lines automatically stretch to the right as new candles form until they are hit.
Automatic Truncation: Lines stop precisely at the candle of mitigation, showing you exactly when a level became "invalid" or was run.
Customizable Strength: Adjust the "Pivot Strength" (Left/Right bars) to filter between minor structural points and major institutional swings.
Clean Settings UI: No redundant options. Control line colors, widths, and label visibility with ease.
How to Use :
Liquidity Targets: Use unmitigated lines as "magnets" for price.
Market Structure: Watch for the mitigation of an ITH as a potential sign of bullish intent, or an ITL for bearish intent.
Entry Refinement: Use these levels to find precise "Fair Value" areas where price is likely to react after a sweep.
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.