TheLark

FREE INDICATOR, aPPO: (ADVANCED) PRICE PERCENTAGE OSCILLATOR

This is a re-up of my original post a couple of days ago, I made a slight change to the scaling and wanted to make sure you all got the new code!

I felt the PPO offered here was a bit basic, so turned it more into the MACD's look and feel, except this is fully customizable through the options menu for non-coders to make it look exactly as they wish.

To use the code simply click the arrow in the upper right and click "make it mine".
Alternatively you can grab the source here: pastebin.com/YRtTXE84
Copy and past the code into a new script, removing the default text it gives.

Feel free to leave a comment below if you like it, have a question, or idea!
¸.·´¯`·.´¯`·.¸¸.·´¯`·.¸ If you like the latest in indicators be sure to follow me, more scripts coming soon! ¸.·´¯`·.´¯`·.¸¸.·´¯`·.¸
Script de código abierto

Siguiendo el verdadero espíritu de TradingView, el autor de este script lo ha publicado en código abierto, para que los traders puedan entenderlo y verificarlo. ¡Un hurra por el autor! Puede utilizarlo de forma gratuita, aunque si vuelve a utilizar este código en una publicación, debe cumplir con lo establecido en las Normas internas. Puede añadir este script a sus favoritos y usarlo en un gráfico.

Exención de responsabilidad

La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.

¿Quiere utilizar este script en un gráfico?
study(title="Advanced Percentage Price Oscillator", shorttitle="Advanced PPO")

//•/•/•/•/•/•/•/•/•/•/•/•/•/•/•/•/•/•/•/•/•/•/•//   
//                                             //
//           ADVANCED PPO BY THELARK           //
//                 ~ 2-10-14 ~                 //
//                                             //
//                     •/•                     //
//                                             //
//    https://www.tradingview.com/u/TheLark    //
//                                             //
//•/•/•/•/•/•/•/•/•/•/•/•/•/•/•/•/•/•/•/•/•/•/•//

src = close
shortlen=input(9, minval=1, title="Short Length") 
longlen=input(26, minval=1, title="Long Length")
dosig=input(true,title="Show Signal?")
dohist=input(true,title="Show Histogram?")
smooth=input(9, minval=1, title="Signal Smoothing")

short = ema(src, shortlen)
long = ema(src, longlen)
ppo = ((short - long)/long)*100
sig = ema(ppo,smooth)

plot(ppo, title="PPO", color=#0094FF)
plot(dosig?sig:na, title="signal", color=#FA6901)
plot(dohist?ppo-sig:na,color=#FF006E,style=histogram )