OPEN-SOURCE SCRIPT
Trading ATR Framework

**Trading ATR Framework** is a clean, rule-based volatility tool designed for futures traders.
The indicator automatically calculates the previous daily close and the completed Daily ATR(14), then projects the key volatility levels at ±25%, ±50%, ±75%, and ±100% ATR.
It includes:
* Automatic daily ATR levels
* Previous daily close as the basis price
* Tick-size rounding
* Current ATR position and directional bias
* Optional manual settlement and ATR inputs
* Built-in 2.5R risk-to-reward calculator
* Alerts for important ATR level crossings
* Premium black-and-gold visual design
The framework is designed for NQ/MNQ, GC/MGC, and CL/MCL, but can also be used on other markets and timeframes.
ATR levels are context and decision zones, not standalone trade signals. Always combine them with market structure, volume, order flow, and proper risk management.
The indicator automatically calculates the previous daily close and the completed Daily ATR(14), then projects the key volatility levels at ±25%, ±50%, ±75%, and ±100% ATR.
It includes:
* Automatic daily ATR levels
* Previous daily close as the basis price
* Tick-size rounding
* Current ATR position and directional bias
* Optional manual settlement and ATR inputs
* Built-in 2.5R risk-to-reward calculator
* Alerts for important ATR level crossings
* Premium black-and-gold visual design
The framework is designed for NQ/MNQ, GC/MGC, and CL/MCL, but can also be used on other markets and timeframes.
ATR levels are context and decision zones, not standalone trade signals. Always combine them with market structure, volume, order flow, and proper risk management.
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.