jameshastiie

Williams %R

129 0 14
I needed the %R code in one of my indicators and TradingVeiw have it hidden. So here is my attempt.
Remove from Favorite Scripts Add to Favorite Scripts
study(title="Williams %R ", shorttitle="%R")
// Williams %R 
highLine = input(90)
lowLine  = input(10)
length   = input(10, minval=1)
upper    = highest(length)
lower    = lowest(length)
output   = 100* (close - upper) / (upper - lower) + 100

//Plots
plot(output, color=black, linewidth=1, title="%R line")
plot(highLine, title="overbought")
plot(lowLine, title= "oversold")
Ideas Scripts Chart
United States
United Kingdom
India
España
Italia
Brasil
Россия
Türkiye
日本
한국
Home Stock Screener 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 Billing Sign Out