ATR Levels

598 2 76
ATR levels drawn on a chart as dynamic (can change throughout the day), straight lines.
Upper band = daily ATR in pips + daily low.
Lower band = daily high - daily ATR in pips.
Can be used as a reversal signal if there is a good level past ATR. Can go long/short from there.
Remove from Favorite Scripts Add to Favorite Scripts
does it repaint the steps? or is it fixed? please reply
Hi, I was looking at your code, but it seems like you need to calculate the ATR from the previous daily close.

You may want to add the first two lines of code and update your upperband and loweband variables.

myprevClose0 = close
myprevClose = security(tickerid, 'D', myprevClose0)

upperband = myprevClose + dailyatr
lowerband = myprevClose -dailyatr
EN English
EN English (UK)
EN English (IN)
DE Deutsch
FR Français
ES Español
IT Italiano
PL Polski
SV Svenska
TR Türkçe
RU Русский
PT Português
ID Bahasa Indonesia
MS Bahasa Melayu
TH ภาษาไทย
VI Tiếng Việt
JA 日本語
KO 한국어
ZH 简体中文
ZH 繁體中文
AR العربية
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing My Support Tickets Contact Support Ideas Published Followers Following Private Messages Chat Sign Out