xmd79

seer

Oct 6th, 2021
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 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. // © yusufacici
  3.  
  4. //@version=4
  5. study(title="seer ", shorttitle="SEER",overlay=true )
  6. rsiy = input(14, minval=1, title="SLOW RSI PERİOD")
  7. rsih = input(7, minval=1, title="FAST RSI PERIOD")
  8. len = input(400,"rsid ath and atl length")
  9. src = input(close, "Source", type = input.source)
  10. tresh = input(90,"seer % treshold ")
  11. rsy = rsi(src,rsiy)
  12. rsh = rsi(src,rsih)
  13. rsid = rsh-rsy
  14. athrsid = highest(rsid,len)
  15. atlrsid = lowest(rsid,len)
  16. athrsidper = (rsid*100)/(athrsid+1)
  17. atlrsidper = (rsid*100)/(atlrsid-1)
  18. if athrsidper>tresh
  19. label.new(bar_index,high, style=label.style_label_down, color=color.red, text=tostring("buy short \n" + "next bar % \n" + tostring(athrsidper,'#.##') + " \n red"))
  20. if atlrsidper>tresh
  21. label.new(bar_index,low, style=label.style_label_up, color=color.green, text=tostring("buy long \n" + "next bar % \n" + tostring(atlrsidper,'#.##') + " \n green"))
Advertisement
Add Comment
Please, Sign In to add comment