xmd79

Inverse Fisher Transform Williams %R

Sep 22nd, 2021
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. // This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
  2. // inspire KIVANC @fr3762
  3. // creator John EHLERS
  4. // only_fibonacci
  5.  
  6. //@version=4
  7. study("Inverse Fisher Transform Williams %R", overlay=false, shorttitle="IFTWR")
  8. wprlength=input(14,"Williams%R Length")
  9. wmalength=input(9,"Smoothing Length")
  10. wprs=0.1*(wpr(wprlength)+50)
  11. wprsw=wma(wprs,wmalength)
  12. INVWR=(exp(2*wprsw)-1)/(exp(2*wprsw)+1)
  13. plot(INVWR,color=color.black, linewidth=1, title="%R")
  14. obPlot=hline(0.5, color=color.black,title="Upper Band")
  15. osPlot=hline(-0.5, color=color.black,title="Lower Band")
  16. fill(obPlot,osPlot,color.black)
Advertisement
Add Comment
Please, Sign In to add comment