I tried to adapt a previous answer and jcl's response.

Code
function run() 
{
	set(LOGFILE);
	set(PLOTNOW+PL_ALL);
	BarPeriod = 60*24;
	StartDate = 2019;
	assetList("AssetsFix.csv");
	
	
	int cnt=0;
	while(asset(loop(Assets))){
		 Prices[cnt]=series(price());
		 rsi[cnt]=series(RSI(Prices[cnt]));
		 cnt++;
		 }
	 
asset(Assets[0]);
PlotWidth = 600;
PlotHeight1 = 500;
PlotHeight2 = 500;
int i;

	for(i=0;i<cnt;i++){
		 plot(strf("rsi for %s",Assets[i]),smas[cnt],0,BLUE);
		 ...plot more stuff...
		 }
	 
	 
}


This doesn't work as I get an undeclared identifier error.

Additionally, it seems that the variable would not be available inside the second loop unless I am misunderstanding the scoping.