jameshastiie

Williams %R

214 0 19
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
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