PROTECTED SOURCE SCRIPT
已更新 ATR Price Frame

ATR Price Frame
ATR Price Frame is a versatile and customizable TradingView indicator that uses the Average True Range (ATR) to define a dynamic price frame for effective risk management and position sizing.
Risk Management:
This indicator automatically calculates the number of units (shares or contracts) you can trade based on a user-defined maximum risk. By comparing the current price to ATR-based levels, it determines the risk per unit—applying a tailored formula for stocks and futures—so you can maintain proper risk control on every trade.
Informative Labeling:
An optional label is displayed at the far right of your chart, providing clear, concise information about your calculated unit count and, if enabled, the total risk in dollars (formatted like “3 : $45.00”). With configurable text size and horizontal offset, the label is designed to integrate seamlessly into your chart setup.
Unified Line Appearance:
The indicator draws two horizontal lines—one above and one below the current price—to create the price frame. These lines use a unified appearance with settings for length, width, style, and an optional horizontal offset, ensuring a clean and consistent visual representation of market volatility.
ATR Price Frame automatically determines whether the instrument is a stock or a futures contract, applying the appropriate risk calculations. This makes it an essential tool for traders looking to integrate volatility-based risk management into their strategies.
ATR Price Frame is a versatile and customizable TradingView indicator that uses the Average True Range (ATR) to define a dynamic price frame for effective risk management and position sizing.
Risk Management:
This indicator automatically calculates the number of units (shares or contracts) you can trade based on a user-defined maximum risk. By comparing the current price to ATR-based levels, it determines the risk per unit—applying a tailored formula for stocks and futures—so you can maintain proper risk control on every trade.
Informative Labeling:
An optional label is displayed at the far right of your chart, providing clear, concise information about your calculated unit count and, if enabled, the total risk in dollars (formatted like “3 : $45.00”). With configurable text size and horizontal offset, the label is designed to integrate seamlessly into your chart setup.
Unified Line Appearance:
The indicator draws two horizontal lines—one above and one below the current price—to create the price frame. These lines use a unified appearance with settings for length, width, style, and an optional horizontal offset, ensuring a clean and consistent visual representation of market volatility.
ATR Price Frame automatically determines whether the instrument is a stock or a futures contract, applying the appropriate risk calculations. This makes it an essential tool for traders looking to integrate volatility-based risk management into their strategies.
發行說明
Added the ability to Hide/Show the label發行說明
Adding Version number發行說明
Added the ability to show historical values.This can be used when chart testing using the position tool against historical data.
By default, they are not plotted as they create noise on the chart and are only use full in back testing
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由且不受任何限制地使用它 — 在此處了解更多資訊。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由且不受任何限制地使用它 — 在此處了解更多資訊。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。