OPEN-SOURCE SCRIPT
ATK/DEF Temporal Session Swing State Engine

ATK/DEF — Temporal Session Swing Structure is a quantitative market observation framework built around **Session + Factors + Structure**.
The system organizes market structure into three hierarchical levels:
* **MAJOR Structure** — 4-Hour
* **MINOR Structure** — 1-Hour
* **MICRO Structure** — 15-Minute
These three structural layers are evaluated across **Asia, London, and New York sessions**, allowing the dashboard to display how market conditions are distributed across different structural levels.
### Core Framework
**Session + Factor + Structure**
The system combines session context with multiple quantitative factors, including:
* Multi-timeframe price position
* Swing structure
* Volume relationships
* Liquidity ratios
* ATR expansion and contraction
* Swing frequency
* Swing alternation
* Swing efficiency
* Swing testing structure
* Swing acceptance
* Session high / low structure
* Session breakout states
The dashboard organizes these factors into a structured view rather than relying on a single timeframe or isolated market condition.
### Major / Minor / Micro Structure
The three structural levels provide a hierarchical representation of market movement:
**MICRO → MINOR → MAJOR**
Each layer represents a different structural scale, while the dashboard presents their relationships together with the current session environment.
This framework is designed to reduce isolated timeframe interpretation by combining multiple structural observations into a quantitative display.
### Session Structure
Asia, London, and New York are treated as independent market environments.
For each session, the system records and evaluates:
* Session High
* Session Low
* Session Open
* Session Close
* Session range
* Session breakout state
* Session structural conditions
Session information is displayed together with the Major, Minor, and Micro structural layers.
### Quantitative Dashboard
The dashboard integrates the calculated factors into several observation layers, including:
**Position → Swing Structure → Frequency → Efficiency → Testing → Acceptance → Volatility**
The framework focuses on how price interacts with defined session ranges and structural bol, while the dashboard provides the corresponding multi-timeframe context.
### Market Observation
This indicator is designed for **market observation, quantitative analysis, and defined decision making**.
**For market observation, quantitative analysis, and defined decision making only.**
The system organizes market structure into three hierarchical levels:
* **MAJOR Structure** — 4-Hour
* **MINOR Structure** — 1-Hour
* **MICRO Structure** — 15-Minute
These three structural layers are evaluated across **Asia, London, and New York sessions**, allowing the dashboard to display how market conditions are distributed across different structural levels.
### Core Framework
**Session + Factor + Structure**
The system combines session context with multiple quantitative factors, including:
* Multi-timeframe price position
* Swing structure
* Volume relationships
* Liquidity ratios
* ATR expansion and contraction
* Swing frequency
* Swing alternation
* Swing efficiency
* Swing testing structure
* Swing acceptance
* Session high / low structure
* Session breakout states
The dashboard organizes these factors into a structured view rather than relying on a single timeframe or isolated market condition.
### Major / Minor / Micro Structure
The three structural levels provide a hierarchical representation of market movement:
**MICRO → MINOR → MAJOR**
Each layer represents a different structural scale, while the dashboard presents their relationships together with the current session environment.
This framework is designed to reduce isolated timeframe interpretation by combining multiple structural observations into a quantitative display.
### Session Structure
Asia, London, and New York are treated as independent market environments.
For each session, the system records and evaluates:
* Session High
* Session Low
* Session Open
* Session Close
* Session range
* Session breakout state
* Session structural conditions
Session information is displayed together with the Major, Minor, and Micro structural layers.
### Quantitative Dashboard
The dashboard integrates the calculated factors into several observation layers, including:
**Position → Swing Structure → Frequency → Efficiency → Testing → Acceptance → Volatility**
The framework focuses on how price interacts with defined session ranges and structural bol, while the dashboard provides the corresponding multi-timeframe context.
### Market Observation
This indicator is designed for **market observation, quantitative analysis, and defined decision making**.
**For market observation, quantitative analysis, and defined decision making only.**
สคริปต์แบบโอเพนซอร์ส
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์แบบโอเพนซอร์ส
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน