Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- study("Relative Strength Comparison", shorttitle="Relative Strength Comparison")
- a = tickerid
- b = input("Nifty", type=symbol)
- as = security(a, period, close)
- bs = security(b, period, close)
- plot((as/bs)*100, title="Relative Strength Comparison", color=blue)
- len = input(52)
- plot(ema((as/bs)*100, len), color=red)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement