How would I go about programming a strategy based on the ratio between two instruments. e.g.:
SPY/AA
Ideally, the strategy should be able to plot SPY/AA bars, but failing that, it could just plot them as though it were an indicator.
I would then like to run standard indicators on the instruments (e.g. RSI, SMA).
I tried capturing the ratio in a data series and then using Add(RSI(ratio, ...)) on the data series but the indicators were plotted using the first instrument in the strategy.
Kind regards

Comment