I'm trying to look at how currency pairs move together. Is there an example of how to plot multiple assets on a single chart? I couldn't find plotting multiple assets in the manual. I am able to get multiple indicators for the same asset to plot by adding another plot call but I can't figure out how to adjust the code to get multiple assets plotted.
The code below plots a chart based on the drop down selected in the panel. If I change the panel dropdown, I get a different chart, which is neat but I'd like to get them all on one chart for visual comparison.
BarPeriod = 60*24;
vars Prices = series(price());
var RSI_plot = RSI(Prices,14);
plot("Plot_RSI", RSI_plot, LINE, BLUE);
I think I could probably get it to work if I declared each asset, stored each pair in memory and then made len(assetList) calls to print but that seems overly verbose.
The manual mentions looping through the asset list with while(asset(loop(Assets))). Would the plot call need to happen outside this loop? My guess is yes. How can I print all of these assets if I don't have them stored in memory?