OPEN-SOURCE SCRIPT

AMT Market Phase [TradingIQ + Ethan]

3 347
Hello Traders!

🔹AMT Market Phase

AMT Market Phase is a market structure tool designed to identify when price is trading inside a balanced range versus when it has moved out of balance.

Instead of only marking highs and lows, this tool uses a TPO-style value area model to study where price has spent time, where value is forming, and when price breaks away from that accepted area.

Think of it as a way to visualize balance, imbalance, and developing market phase shifts across multiple timeframes.

  • detects balanced and out-of-balance market phases
  • builds TPO-style value areas from price activity
  • marks VAH, VAL, and POC levels
  • uses ATR buffering to filter minor value-area breaks
  • supports multiple timeframe phase tracking
  • optional value area, POC, and profile displays


🔹What the tool shows

🔸Balance vs out of balance

The script classifies the market into two core states:

  • Balance
  • Out of Balance


Balance means price is still trading within its accepted value area.

Out of Balance means price has moved beyond the buffered value area, suggesting that price may be leaving the prior area of acceptance.

This helps you quickly see whether the market is rotating inside a range or attempting to expand away from it.

snapshot


🔸TPO-based value area

The tool builds a TPO-style profile from the active market range and calculates key levels:

  • VAH, or Value Area High
  • VAL, or Value Area Low
  • POC, or Point of Control


These levels represent where price has spent meaningful time during the current balance structure.

Instead of using a fixed lookback range, the profile expands and updates based on the active phase of the market.

snapshot


🔸Buffered value area breaks

AMT Market Phase includes an ATR-based buffer around the value area.

This helps reduce noise by requiring price to move a meaningful distance beyond value before being classified as out of balance.

This helps separate:
  • minor value-area probes
  • weak fakeouts
  • stronger attempts to leave balance


snapshot

snapshot

🔸Multi-timeframe phase tracking

The indicator can track market phase across multiple timeframes.

This allows you to compare lower-timeframe and higher-timeframe structure directly on the chart.

You can use it to see:
  • whether the current timeframe is balanced
  • whether higher timeframes are out of balance
  • whether multiple timeframes agree or conflict
  • where larger value areas may be influencing price


🔸Visual value zones

The script can draw the active balance area directly on the chart.

Depending on your settings, it can display:
  • value area zones
  • POC lines
  • VAH and VAL levels
  • profile-style visuals
  • recent balance ranges only


This gives a clean visual map of where value has formed and where price is attempting to break away from that value.

snapshot

🔸Phase table

The built-in table summarizes the current phase across key timeframes.

It shows whether each tracked timeframe is in:

  • BALANCE
  • OUT OF BALANCE


When price is out of balance, the table can also show directional context using arrows.

🔹How to read it

Each component gives a different layer of market context:

Balance zone → where price has been accepted
VAH → upper edge of value
VAL → lower edge of value
POC → most active price area
Buffered VA → filtered balance boundary
Out of Balance → price attempting to leave value
Phase table → multi-timeframe market state

🔹Why this tool is useful

It gives you:
  • a structured way to identify balance and imbalance
  • objective value-area levels based on price activity
  • multi-timeframe context for market phase
  • a cleaner alternative to manually drawing ranges
  • visual reference points for where price is accepted or rejected


🔹Best use cases

  • identifying balanced market conditions
  • tracking when price leaves value
  • studying range expansion and acceptance
  • comparing market phase across timeframes
  • building context around VAH, VAL, and POC
  • understanding whether price is rotating or expanding


🔹Important note

This tool is based on TPO-style value-area analysis and historical price structure.

That means:
  • balance does not guarantee price will remain inside the range
  • out of balance does not guarantee trend continuation
  • value areas are context zones, not automatic trade signals
  • market conditions can change quickly
  • outputs should be used as context, not certainty


🔹Inputs you can customize

The script includes flexible controls such as:
  • custom timeframe selection
  • timeframe colors
  • POC display toggles
  • value area display toggles
  • profile display toggles
  • recent range only mode
  • value area percentage
  • ATR multiplier for balance filtering
  • minimum profile bars
  • table position


Closing Notes

AMT Market Phase is built to shift the focus from simply asking where price is moving to understanding whether price is accepted or rejected around value.

It helps traders visualize when the market is balanced, when it is leaving balance, and how that behavior lines up across multiple timeframes.

Thank you for checking it out!


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.