Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
- // © yusufacici
- //@version=4
- study(title="seer ", shorttitle="SEER",overlay=true )
- rsiy = input(14, minval=1, title="SLOW RSI PERİOD")
- rsih = input(7, minval=1, title="FAST RSI PERIOD")
- len = input(400,"rsid ath and atl length")
- src = input(close, "Source", type = input.source)
- tresh = input(90,"seer % treshold ")
- rsy = rsi(src,rsiy)
- rsh = rsi(src,rsih)
- rsid = rsh-rsy
- athrsid = highest(rsid,len)
- atlrsid = lowest(rsid,len)
- athrsidper = (rsid*100)/(athrsid+1)
- atlrsidper = (rsid*100)/(atlrsid-1)
- if athrsidper>tresh
- 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"))
- if atlrsidper>tresh
- 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