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! ¸.·´¯`·.´¯`·.¸¸.·´¯`·.¸
Mã nguồn mở

Với tinh thần TradingView, tác giả của tập lệnh này đã xuất bản nó dưới dạng mã nguồn mở, vì vậy các nhà giao dịch có thể hiểu và xác minh nó. Chúc mừng tác giả! Bạn có thể sử dụng mã này miễn phí, nhưng việc sử dụng lại mã này trong một ấn phẩm chịu sự điều chỉnh của Nội quy nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?
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 )