PROTECTED SOURCE SCRIPT
Cập nhật ATR Levels Trade Plan

Overview
This indicator is a trade management tool designed to help traders visualize volatility-based targets and stop-losses instantly. By anchoring calculations to the Daily Opening Price and the Average True Range (ATR), it projects objective, mathematical support and resistance levels for the current session.
How It Works
The script detects the start of the trading day (or a manually defined period) and draws a vertical marker. From there, it projects horizontal lines representing key multiples of the ATR:
Green Line: Opening Price (The baseline).
Blue Lines (Targets): +0.5 ATR, +1.0 ATR, and +2.0 ATR. These serve as dynamic profit-taking zones based on current market volatility.
Orange Line (Stop Loss): -2.0 ATR. A standard volatility-based stop level.
Red Line (Emergency Exit): -3.0 ATR. A level indicating extreme adverse moves.
Multi-Ticker Database & Date Verification This version includes a built-in configuration menu capable of storing unique trade plans for up to 20 different stocks.
20-Slot Memory: You can pre-load the Ticker Symbol, Planned Open, and ATR for up to 20 individual assets in the settings.
Date/Period of Trade: Each slot includes a "Date" field (YYYYMMDD). This assigns the manual values to a specific trading session.
Default Behavior (Auto-Fallback): The indicator intelligently scans the database when you switch charts.
If the Ticker matches a slot AND the Date matches the current session, it loads your manual values.
If the Ticker is not in the database, or if the Date is expired (from a previous day), the script automatically defaults to the live Daily Open and standard ATR-14.
Key Features
Clean Visuals: Uses the Drawing API to plot lines only on the current/last bar, keeping historical price action clean and uncluttered.
Text Customization: Users can align text to the Right, Left, or Center, adjust the offset distance, and change text size to fit their chart layout.
Flexible Alerts: Includes a dedicated "Alert Configuration" menu. Users can toggle alerts on/off for individual lines (e.g., enable the Stop Loss alert but disable the +0.5 ATR alert). All enabled settings work via a single "Any alert() function call."
Settings
Stock Database: 20 configuration groups to input Ticker, Date, Open, and ATR.
Global/Fallback Values: Input custom Open/ATR prices (leave at 0 for automatic) to be used if the specific stock is not in the database.
Text & Alignment: Adjust label position, offset, and size.
Alert Configuration: Checkboxes to enable/disable alerts for specific price levels.
Methodology The levels are calculated using the standard formula: Level = Opening Price + (Multiplier * ATR)
This indicator is a trade management tool designed to help traders visualize volatility-based targets and stop-losses instantly. By anchoring calculations to the Daily Opening Price and the Average True Range (ATR), it projects objective, mathematical support and resistance levels for the current session.
How It Works
The script detects the start of the trading day (or a manually defined period) and draws a vertical marker. From there, it projects horizontal lines representing key multiples of the ATR:
Green Line: Opening Price (The baseline).
Blue Lines (Targets): +0.5 ATR, +1.0 ATR, and +2.0 ATR. These serve as dynamic profit-taking zones based on current market volatility.
Orange Line (Stop Loss): -2.0 ATR. A standard volatility-based stop level.
Red Line (Emergency Exit): -3.0 ATR. A level indicating extreme adverse moves.
Multi-Ticker Database & Date Verification This version includes a built-in configuration menu capable of storing unique trade plans for up to 20 different stocks.
20-Slot Memory: You can pre-load the Ticker Symbol, Planned Open, and ATR for up to 20 individual assets in the settings.
Date/Period of Trade: Each slot includes a "Date" field (YYYYMMDD). This assigns the manual values to a specific trading session.
Default Behavior (Auto-Fallback): The indicator intelligently scans the database when you switch charts.
If the Ticker matches a slot AND the Date matches the current session, it loads your manual values.
If the Ticker is not in the database, or if the Date is expired (from a previous day), the script automatically defaults to the live Daily Open and standard ATR-14.
Key Features
Clean Visuals: Uses the Drawing API to plot lines only on the current/last bar, keeping historical price action clean and uncluttered.
Text Customization: Users can align text to the Right, Left, or Center, adjust the offset distance, and change text size to fit their chart layout.
Flexible Alerts: Includes a dedicated "Alert Configuration" menu. Users can toggle alerts on/off for individual lines (e.g., enable the Stop Loss alert but disable the +0.5 ATR alert). All enabled settings work via a single "Any alert() function call."
Settings
Stock Database: 20 configuration groups to input Ticker, Date, Open, and ATR.
Global/Fallback Values: Input custom Open/ATR prices (leave at 0 for automatic) to be used if the specific stock is not in the database.
Text & Alignment: Adjust label position, offset, and size.
Alert Configuration: Checkboxes to enable/disable alerts for specific price levels.
Methodology The levels are calculated using the standard formula: Level = Opening Price + (Multiplier * ATR)
Phát hành các Ghi chú
OverviewThis indicator is a trade management tool designed to help traders visualize volatility-based targets and stop-losses instantly. By anchoring calculations to the Daily Opening Price and the Average True Range (ATR), it projects objective, mathematical support and resistance levels for the current session.
How It Works
The script detects the start of the trading day (or a manually defined period) and draws a vertical marker. From there, it projects horizontal lines representing key multiples of the ATR:
Green Line: Opening Price (The baseline).
Blue Lines (Targets): +0.5 ATR, +1.0 ATR, and +2.0 ATR. These serve as dynamic profit-taking zones based on current market volatility.
Orange Line (Stop Loss): -2.0 ATR. A standard volatility-based stop level.
Red Line (Emergency Exit): -3.0 ATR. A level indicating extreme adverse moves.
Multi-Ticker Database & Date Verification This version includes a built-in configuration menu capable of storing unique trade plans for up to 20 different stocks.
20-Slot Memory: You can pre-load the Ticker Symbol, Planned Open, and ATR for up to 20 individual assets in the settings.
Date/Period of Trade: Each slot includes a "Date" field (YYYYMMDD). This assigns the manual values to a specific trading session.
Default Behavior (Auto-Fallback): The indicator intelligently scans the database when you switch charts.
If the Ticker matches a slot AND the Date matches the current session, it loads your manual values.
If the Ticker is not in the database, or if the Date is expired (from a previous day), the script automatically defaults to the live Daily Open and standard ATR-14.
Key Features
Clean Visuals: Uses the Drawing API to plot lines only on the current/last bar, keeping historical price action clean and uncluttered.
Text Customization: Users can align text to the Right, Left, or Center, adjust the offset distance, and change text size to fit their chart layout.
Flexible Alerts: Includes a dedicated "Alert Configuration" menu. Users can toggle alerts on/off for individual lines (e.g., enable the Stop Loss alert but disable the +0.5 ATR alert). All enabled settings work via a single "Any alert() function call."
Settings
Stock Database: 20 configuration groups to input Ticker, Date, Open, and ATR.
Global/Fallback Values: Input custom Open/ATR prices (leave at 0 for automatic) to be used if the specific stock is not in the database.
Text & Alignment: Adjust label position, offset, and size.
Alert Configuration: Checkboxes to enable/disable alerts for specific price levels.
Methodology The levels are calculated using the standard formula: Level = Opening Price + (Multiplier * ATR)
Phát hành các Ghi chú
Updated time format in settings input.Phát hành các Ghi chú
-Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
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ã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
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.