OPEN-SOURCE SCRIPT

ATR Daily Band

已更新
This indicator draws an upper and lower band for each day. It uses the Average True Range calculation (with configurable lookback) and places the band at 1ATR above and 1ATR below the daily open.

I use this indicator as a simple gauge to tell how significant price movement is, and get a feel for the daily volatility. Due to the fractal nature of price action, it can be difficult to determine if a price movement is significant while zoomed in on a single intraday chart. Using this indicator, I can tell if the price action is approaching the ATR or if it's just staying within the band.

Strategies: Useful for both mean reversion and momentum strategies. It's up to you to decide how this metric will fit into your trading strategy. I currently use this indicator to look for mean reversion setups, but that is due to the current market conditions and my personal trading style.
版本注释
Added labels on today's band showing price level and percentage move.
版本注释
This update changes the ATR band to be centered on "yesterday's close" instead of the "today's open". This means that the ATR percentages will align with reported movements of the symbol.

For example, if the ATR band for QQQ is at 1.4%, as the price increases that day to 1.4% up, the candle will hit the ATR band. Previously with the band centered at the open, a 1.4% move might have been at a different place than the ATR band depending on how much after-hours movement happened.
版本注释
move the label to the left side of the opening bar so it doesn't get drawn on top of today's data.
Bands and ChannelsChart patternsstatistics

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明