Yes, or the other way around. XAO/RSG. TV just introduced the ability to flip the chart on the Y-axis which you'll find handy. RSG versus GC1 (gold futures contract) would be a better comparison imo.
There was a slight error in the code. Try this instead.
//@version=4 study("") tickr = input("NASDAQ:MSFT/NASDAQ:AAPL", type = input.symbol) val = security(tickr, timeframe.period, close) plot(val)