SHARE
TWEET

DiNapoli Preferred Stochastic Oscillator [LazyBear]

lazybeartv May 16th, 2015 1,220 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //
  2. // @author LazyBear
  3. //
  4. // List of my public indicators: http://bit.ly/1LQaPK8
  5. // List of my app-store indicators: http://blog.tradingview.com/?p=970
  6. //
  7. study(title="DiNapoli Preferred Stochastic Oscillator [LazyBear]", shorttitle="DPSTOCH_LB", overlay=false)
  8. fk = input(8, title="Fast K")
  9. sk =input(3, title="Slow K")
  10. sd =input(3, title="Slow D")
  11. min_ = lowest(low, fk)
  12. max_ = highest(high, fk)
  13. fast = (close - min_)/(max_ - min_)*100
  14. r = nz(r[1]) + (fast - nz(r[1]))/sk
  15. s = nz(s[1]) + (r - nz(s[1]))/sd
  16. ob=hline(70, title="OBLevel"), os=hline(30, title="OSLevel"), fill(ob,os, gray)
  17. plot(r, color=blue, title="Dinapoli Stoch"), plot(s, color=red, title="Signal")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top