OPEN-SOURCE SCRIPT
ATK/DEF Temporal Equilibrium Hierarchy

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.**
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.**
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.