xmd79

SUPPORT AUTO SAI

Oct 5th, 2021
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. study("SUPPORT AUTO SAI", overlay=true)
  2. a = input(title="Sensitivity", type=integer, defval=10, minval=1, maxval=10)
  3. d = input(title="Transparency", type=integer, defval=85, minval=1, maxval=100)
  4. b = #FF0000
  5. c = #0000FF
  6.  
  7. plot(highest(a*10), title='Resistance', color=b, linewidth=1, style=line, transp=d, offset=-9999, trackprice=true)
  8. plot(lowest (a*10), title='Support', color=c, linewidth=1, style=line, transp=d, offset=-9999, trackprice=true)
  9. plot(highest(a*20), title='Resistance', color=b, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
  10. plot(lowest (a*20), title='Support', color=c, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
  11. plot(highest(a*40), title='Resistance', color=b, linewidth=3, style=line, transp=d, offset=-9999, trackprice=true)
  12. plot(lowest (a*40), title='Support', color=c, linewidth=3, style=line, transp=d, offset=-9999, trackprice=true)
  13. plot(highest(a*75), title='Resistance', color=b, linewidth=4, style=line, transp=d, offset=-9999, trackprice=true)
  14. plot(lowest (a*75), title='Support', color=c, linewidth=4, style=line, transp=d, offset=-9999, trackprice=true)
  15. plot(highest(a*150), title='Resistance', color=b, linewidth=5, style=line, transp=d, offset=-9999, trackprice=true)
  16. plot(lowest (a*150), title='Support', color=c, linewidth=5, style=line, transp=d, offset=-9999, trackprice=true)
  17. plot(highest(a*300), title='Resistance', color=b, linewidth=6, style=line, transp=d, offset=-9999, trackprice=true)
  18. plot(lowest (a*300), title='Support', color=c, linewidth=6, style=line, transp=d, offset=-9999, trackprice=true)
  19. plot(lowest (a*500), title='Resistance', color=c, linewidth=7, style=line, transp=d, offset=-9999, trackprice=true)
  20. plot(lowest (a*500), title='Support', color=c, linewidth=7, style=line, transp=d, offset=-9999, trackprice=true)
Advertisement
Add Comment
Please, Sign In to add comment