OPEN-SOURCE SCRIPT
Unmitigated High Low (Day/MTF)

# Unmitigated High Low (Day/MTF)
## Overview
The **Unmitigated High Low (Day/MTF)** indicator tracks previous timeframe highs and lows that remain "unmitigated" (untouched by price) and displays them as dynamic support and resistance levels. By default, the indicator monitors daily highs and lows, making it ideal for intraday traders seeking key institutional levels, though it supports any multi-timeframe (MTF) interval. The indicator extends horizontal lines from each level until price touches them, creating visual "zones of interest" where price action may react.
## What It Does
This indicator identifies and plots two types of levels on your chart:
- **High Levels** (yellow lines) - Previous timeframe highs that price has not yet reached or exceeded
- **Low Levels** (cyan lines) - Previous timeframe lows that price has not yet broken below
Each time a new timeframe period completes (e.g., daily candle closes), the indicator captures that period's high and low and extends them forward as horizontal reference lines. When price finally touches or crosses these levels, they become "mitigated" - the line stops extending, becomes transparent (60% opacity), and is marked as historical.
## Key Features
**Multi-Timeframe Capability**: While defaulting to daily ("D") timeframe, you can switch to any interval (15-minute, 4-hour, weekly, etc.) to match your trading style.
**Band Visualization**: The indicator creates colored bands between the two most recent active levels in each direction - an upper band (purple fill) between the 1st and 2nd unmitigated highs, and a lower band (cyan fill) between the 1st and 2nd unmitigated lows.
**Visual Clarity**: Active unmitigated levels display in full color with customizable line width (default: 2), while mitigated levels fade to 60% transparency, helping you distinguish between current zones and historical references.
## How to Use It
Add the indicator to your chart and observe where unmitigated levels cluster - these zones often act as magnets for institutional order flow. The most recent unmitigated high represents overhead supply/resistance, while the most recent unmitigated low represents underlying demand/support. Traders commonly use these levels for:
- Entry zones when price approaches unmitigated levels with confluent signals
- Stop-loss placement beyond unmitigated levels to avoid institutional sweeps
- Profit targets at the next unmitigated level in the direction of your trade
- Breakout confirmation when price finally mitigates a long-standing level
The colored bands between the 1st and 2nd levels highlight "zones of friction" where price may consolidate or reverse before continuing its trend.
## Settings
**HL interval**: Select your desired timeframe (default: "D" for daily)
**High Line Color**: Color for unmitigated high levels (default: yellow #fff176)
**Low Line Color**: Color for unmitigated low levels (default: cyan #00bcd4)
**Upper Band Fill**: Fill color between 1st and 2nd highs (default: purple #880e4f at 85% transparency)
**Lower Band Fill**: Fill color between 1st and 2nd lows (default: cyan #00bcd4 at 85% transparency)
**Line Width**: Thickness of level lines (default: 2, range: 1-5)
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.