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.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.