kik369

ATR Levels

atr
337 2 36
atr
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
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
Reply
does it repaint the steps? or is it fixed? please reply
Reply
United States
United Kingdom
India
España
France
Italia
Polska
Brasil
Россия
Türkiye
Indonesia
日本
한국
Home Stock Screener Forex Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Private Messages Chat Ideas Published Followers Following Priority Support Public Profile Profile Settings Account and Billing Sign Out