With the currently newest Zorro S version I try to run the following simple script to plot the prices of a fixed number of assets in separate plots:

Code:
function run()
{
	set(LOGFILE+PRELOAD+PLOTNOW);
	BarPeriod = 1;	// 1 min bars
	LookBack = 0;	// no lookback period
	StartDate = 2018;
        assetList("HistoryMyAssets.csv"); // load asset list
 
	PlotWidth = 600;
	PlotHeight1 = 600;
	PlotHeight2 = 600;
	 
	var assetNum=0;
	while(loop(Assets))
	{
		asset(Assets[assetNum]);
		plot(Assets[assetNum],price(),NEW,BLACK);
		assetNum++;
	}

}


The above code only produces the first standard candle plot of the active asset, and the plot of the very first asset from the while loop. All remaining plots of assets in the while loop are simply missing.

Did I do something wrong in the above syntax? How should I go about plotting all of the prices of assets in the while loop properly?

Thanks for any suggestion!

Last edited by Hredot; 02/10/18 17:46.