OPEN-SOURCE SCRIPT
ATK/DEF Swing Structure Volume Pressure

# ATK/DEF Swing Structure Volume Pressure Analysis
## Overview
ATK/DEF Swing Structure + Volume Pressure Analysis is a market analysis indicator designed to visualize price structure, support and resistance areas, volume activity, and candle behavior.
The indicator combines dynamic swing detection, structural level mapping, volume analysis, volume expansion observation, and candle pressure measurement into a unified visual framework.
This script focuses on market observation and technical analysis by displaying historical price behavior and current market conditions.
---
# Main Features
## Dynamic Swing Structure
The indicator automatically detects Swing Highs and Swing Lows based on market volatility.
The adaptive swing calculation uses ATR-based conditions to adjust sensitivity according to different market environments.
---
## Support & Resistance Structure
The script identifies historical structural levels from confirmed swing points.
Displayed information includes:
• Resistance areas
• Support areas
• Historical price levels
• Associated volume information
These levels provide a visual reference for studying price interaction with previous market areas.
---
## Volume Activity Analysis
The indicator compares current volume conditions with recent average volume.
Included information:
• Volume ratio
• Volume activity level
• Volume score visualization
• High-volume structural areas
This helps users observe changes in market participation.
---
## Volume Expansion Observation
The indicator detects unusual volume expansion by comparing current volume behavior with recent volume distribution.
Volume conditions are categorized into different activity levels to help users identify periods of increased market activity.
---
## Candle Pressure Analysis
The indicator evaluates candle position within its trading range to display pressure balance.
The calculation provides visual information about:
• Positive candle pressure
• Negative candle pressure
• Balanced candle conditions
This feature is designed for studying candle behavior together with price structure.
---
## Market Information Dashboard
The integrated dashboard displays:
• Volume conditions
• Volume score
• Volume expansion status
• Candle pressure status
• Support and resistance statistics
• Latest structural levels
---
# Methodology
The indicator combines several analytical concepts:
1. Swing Structure Detection
2. Support and Resistance Visualization
3. Volume Behavior Analysis
4. Volume Expansion Measurement
5. Candle Range Pressure Calculation
Each component works together to provide a clearer visualization of market behavior.
---
# Usage
This indicator can be used as a visual reference tool for:
• Studying market structure
• Observing historical reaction areas
• Monitoring volume changes
• Analyzing candle behavior
• Comparing current conditions with previous price activity
---
# Disclaimer
This script is provided for educational and analytical purposes.
It is designed to visualize market information and does not provide financial advice or automated decision-making.
Users should interpret the displayed information together with their own analysis and risk management approach.
---
# Original Concept
ATK/DEF focuses on the relationship between:
• Price Structure
• Volume Participation
• Candle Behavior
The framework is designed to organize multiple market observations into one clear visual analysis tool.
## Overview
ATK/DEF Swing Structure + Volume Pressure Analysis is a market analysis indicator designed to visualize price structure, support and resistance areas, volume activity, and candle behavior.
The indicator combines dynamic swing detection, structural level mapping, volume analysis, volume expansion observation, and candle pressure measurement into a unified visual framework.
This script focuses on market observation and technical analysis by displaying historical price behavior and current market conditions.
---
# Main Features
## Dynamic Swing Structure
The indicator automatically detects Swing Highs and Swing Lows based on market volatility.
The adaptive swing calculation uses ATR-based conditions to adjust sensitivity according to different market environments.
---
## Support & Resistance Structure
The script identifies historical structural levels from confirmed swing points.
Displayed information includes:
• Resistance areas
• Support areas
• Historical price levels
• Associated volume information
These levels provide a visual reference for studying price interaction with previous market areas.
---
## Volume Activity Analysis
The indicator compares current volume conditions with recent average volume.
Included information:
• Volume ratio
• Volume activity level
• Volume score visualization
• High-volume structural areas
This helps users observe changes in market participation.
---
## Volume Expansion Observation
The indicator detects unusual volume expansion by comparing current volume behavior with recent volume distribution.
Volume conditions are categorized into different activity levels to help users identify periods of increased market activity.
---
## Candle Pressure Analysis
The indicator evaluates candle position within its trading range to display pressure balance.
The calculation provides visual information about:
• Positive candle pressure
• Negative candle pressure
• Balanced candle conditions
This feature is designed for studying candle behavior together with price structure.
---
## Market Information Dashboard
The integrated dashboard displays:
• Volume conditions
• Volume score
• Volume expansion status
• Candle pressure status
• Support and resistance statistics
• Latest structural levels
---
# Methodology
The indicator combines several analytical concepts:
1. Swing Structure Detection
2. Support and Resistance Visualization
3. Volume Behavior Analysis
4. Volume Expansion Measurement
5. Candle Range Pressure Calculation
Each component works together to provide a clearer visualization of market behavior.
---
# Usage
This indicator can be used as a visual reference tool for:
• Studying market structure
• Observing historical reaction areas
• Monitoring volume changes
• Analyzing candle behavior
• Comparing current conditions with previous price activity
---
# Disclaimer
This script is provided for educational and analytical purposes.
It is designed to visualize market information and does not provide financial advice or automated decision-making.
Users should interpret the displayed information together with their own analysis and risk management approach.
---
# Original Concept
ATK/DEF focuses on the relationship between:
• Price Structure
• Volume Participation
• Candle Behavior
The framework is designed to organize multiple market observations into one clear visual analysis tool.
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.