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.**
สคริปต์แบบโอเพนซอร์ส
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์แบบโอเพนซอร์ส
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน