stone8008

Percentage Price Oscillator

76 0 23
The built-in Price Oscillator on this website did not contain the Signal line or the Histogram. Utilized existing script and modified to include both data points. My first attempt at any script so apologies for no comments.
Remove from Favorite Scripts Add to Favorite Scripts
study(title="Price Oscillator", shorttitle="PPO")
shortlen=input(12, minval=1)
longlen=input(26, minval=1)
siglen=input(9,minval=1)
src = input(close, title="Source")
short = ema(src, shortlen)
long = ema(src, longlen)
po = (short - long)/long*100
signal = ema(po, siglen)
difference = po - signal
plot(po, color=blue, title="PPO")
plot(signal, color=red, title="Signal")
plot(difference,color=green,style=histogram)
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