OPEN-SOURCE SCRIPT
Updated ATR X-Power

ATR X-Power is a simple graphical representation of Average True Range.
The ATR is calculated on a daily basis and averaged over the "Length" specified in settings (default is 14 days).
At the start of the day, the starting price is recorded and five horizontal lines are drawn which illustrate possible ranges for the day:
The final two lines are drawn using the ATR half values in such a way that a X is formed. The X represents possible motion of the price back to starting price (also known as reversion to mean). The two lines are drawn as follows:
Use cases:
Bugs?
Kindly report any issues you run into and I'll try to fix them promptly.
Thank you!
The ATR is calculated on a daily basis and averaged over the "Length" specified in settings (default is 14 days).
At the start of the day, the starting price is recorded and five horizontal lines are drawn which illustrate possible ranges for the day:
- Starting price
- Starting price + ATR (+100%)
- Starting price - ATR (-100%)
- Starting price + ATR/2 (+50%)
- Starting price - ATR/2 (-50%)
The final two lines are drawn using the ATR half values in such a way that a X is formed. The X represents possible motion of the price back to starting price (also known as reversion to mean). The two lines are drawn as follows:
- Beginning at (Starting Price + ATR/2) and ending at (Starting Price - ATR/2)
- Beginning at (Starting Price - ATR/2) and ending at (Starting Price + ATR/2)
Use cases:
- ATR presents us with the average amount of price fluctuation we can expect to see in a single day on a specific instrument
- If price is near the extremes (+/-100% ATR) for the day, then probability of it moving outside that range is low, which increases odds of a reversal
Bugs?
Kindly report any issues you run into and I'll try to fix them promptly.
Thank you!
Release Notes
Expanded settings to allow for personalized color choicesRelease Notes
Cleaned up commented codeRelease Notes
Adjusted how the Session time change is calculated, so it now behaves properly on more instrumentsRelease Notes
Added a label that shows the user the daily ATR (dATR) and true range (TR) as well as percentage of dATR. The label moves to the nearest level, so it stays within view but also doesn't get in the way.Release Notes
- ATR data window now shows the proper values for different instruments- ATR data window can now be disabled in settings
- ATR data window font size can be chosen in settings
- ATR X initializes off previous candles close
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.