OPEN-SOURCE SCRIPT

ATK/DEF Temporal Equilibrium Hierarchy

183
ATK/DEF - Temporal Equilibrium Hierarchy is a multi-timeframe market analysis framework that organizes LMA-based market structure into hierarchical temporal layers.

The framework uses Weekly, Daily, 4H, and 1H LMA layers. Each layer is derived from a liquidity-weighted moving-average calculation using a selectable volatility definition based on True Range, High-Low range, or absolute price change.

### Core Framework

* **Temporal LMA Layers**
Weekly, Daily, 4H, and 1H LMA structures provide separate temporal layers.

* **LMA-Based Structure**
Each layer includes LMA direction, price position relative to the LMA, and slope transition states.

* **Layer Pressure**
Relative ordering between 1H, 4H, Daily, and Weekly LMAs defines Full, Partial, or Neutral pressure states.

* **LMA Compression**
The spread between the four LMA layers is measured relative to their average to classify Compression, Expansion, or Neutral states.

* **Push Validation**
The relationship between price and the 1H LMA, together with 1H LMA slope, defines the displayed push state.

* **Trend State**
The 1H LMA slope provides the defined Uptrend, Downtrend, or Sideways classification.

* **Session Context**
Asia, Europe, and America session windows are displayed alongside the temporal LMA structure.

### Temporal Decision Architecture

The framework organizes multiple timeframes into a layered structure rather than relying on a single moving average.

The LMA layers provide the primary output for temporal direction, structure, pressure, compression, push state, and trend classification. These defined states are presented together to form a multi-dimensional market analysis view.

All classifications are generated from the mathematical conditions defined within the script.

### Analytical Purpose

This script is intended solely for **market observation, quantitative analysis, and user-defined decision-making**.

**Market observation, quantitative analysis, and user-defined decision-making only.**

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.