OPEN-SOURCE SCRIPT
Updated

Market Balance Level

567
Market Balance Level (MBL)

This indicator dynamically identifies price consolidation zones (market balance levels) and plots a horizontal line at the average midpoint of the range once a valid breakout occurs. It helps traders visualize key zones where the market was previously in equilibrium and is likely to retest before continuing its trend.

How It Works:

Detects consolidation ranges using consecutive candles within a tight high-low structure.

When a breakout occurs (above or below the range), it plots a line at the average midpoint of the consolidation.

Triangles are drawn on breakouts to visually confirm the breakout direction.

Lines can be customized by color, width, and breakout direction (bullish, bearish, or both).

Recommended Use:

Wait for price to return to the Market Balance Level (MBL). These levels often act as strong support or resistance.

Enter upon engulfment (candle closes strongly in the direction of the breakout), confirming continuation.

Features:

Adjustable consolidation sensitivity and line length.

Option to show/hide bullish or bearish MBLs.

Visual breakout markers (triangles) with alert support.

Optional alert messages for breakout events.

Use this tool to enhance your structure-based or SMC-style trading strategies.
Release Notes
Copyright tag added
Release Notes
New Feature: Two Consolidation Modes

Stable Mode: Locks the range from the first qualifying candle. The balance level is drawn immediately after the consolidation period, giving quicker signals based on a fixed range.

Static Mode: Dynamically adjusts the consolidation range as long as price remains inside it. Draws the balance level only after a valid breakout, ideal for confirming mature zones.




Release Notes
Title updated
Release Notes
Terminology fix
Release Notes
Line creation logic updated for more efficient plotting.
Release Notes
Terminology fixed within code
Release Notes
Terminology fixed within code
Release Notes
Inputs fixed + new input (dim mitigated lines)
Release Notes
Delete mitigated lines input added
Release Notes
Mitigation logic updated

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.