study("Comparative Relative Strength") a = input("GOOG", type=symbol) b = input("AAPL", type=symbol) as = security(a, period, close) bs = security(b, period, close) plot(as/bs, title="CRS")
The real problem with this code is that required to manually enter each ticker every time!
This is really time consuming and isn't efficient at all.
I don't have any clue how to code but parameter A (GOOG) should be automatically recognized and insert on the current chart we are looking at, while parameter B should be fixed (ex. SPY)
Will be great to have the possibility to add a moving average on it as well.
After using this script for the past few days I found out that results are slightly different from the price ratio of other charting software, how this could be?
Like I said, I can't code but I really need this indicator to work properly on TradingView and If there is something that I can do, well just contact me.
thanks for your efforts.