OPEN-SOURCE SCRIPT

ATR Daily Levels

已更新
Plots the daily ATR on the chart as upper and lower levels.

It can be use to adapt your trading in high and low periods of market volatility, determine reasonable target or take profit, entry at likely mean reversion, stop loss beyond normal flows etc...

More on the script behavior:
- Daily ATR upper/lower levels are applied on the current day low/high;
- The ATR value is defined by the last D1 bar;
- Shows up to D1 timeframe;
- Configuration for the indicator's period (default: 20 period ATR);
- Configuration for plotting the indicator on the the x axis with an offset/at begining of the day (default: offset);
版本注释
Fix input period on ATR.
版本注释
  • enable switching daily ATR values between yesterday-today;
  • allow styling of levels at default and overflow states;
  • change display values from fixed to rounded numbers;
版本注释
  • In some charts, gaps are not taken into account. This update fixes it.
  • When there are discrepancies between intraday and D1 OHLC, the script now uses the ones from the currently displayed timeframe.
  • On non 24-7 markets, after weekends and holidays the lines are longer, it fixes their length.
版本注释
v5.0

The update brings a complete rewrite of the script on Pine v5, along with the following changes:
  • Enable showing the next ATR levels when the market is closed
  • Display values on the price scale, the status line, and the data window
  • Display notifications on the bottom right of the chart
  • Align the rounding of numbers as the chart (from min tick to min precision)
版本注释
v6

Fixed the "Show Next ATR Levels" feature not applying when enabled.
ATRatrindicatoratrlevelsAverage True Range (ATR)dailyatrdailylevelslevelsrangetomdantetraderdanteVolatility

开源脚本

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

想在图表上使用此脚本?


🌟 Listed as "Trusted Pine Programmer"

👨‍💻 Coding services: sbtnc.dev/hire-pine-script-developer

🔒 Premium indicators: sbtnc.gumroad.com

☕️ Tip: buymeacoffee.com/sbtnc
更多:

免责声明