Advertisement
Guest User

Relative strength with MA - Trendline Investor

a guest
Aug 31st, 2022
931
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | Cryptocurrency | 0 0
  1. study("Relative Strength Comparison", shorttitle="Relative Strength Comparison")
  2. a = tickerid
  3. b = input("Nifty", type=symbol)
  4. as = security(a, period, close)
  5. bs = security(b, period, close)
  6. plot((as/bs)*100, title="Relative Strength Comparison", color=blue)
  7. len = input(52)
  8. plot(ema((as/bs)*100, len), color=red)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement