string[] assets = Assets[0].Split(';'); // Create an array containing the different assets DateTime date = DateTime.Parse(Date[0], System.Globalization.CultureInfo.InvariantCulture); // Get the reference date VectorDate vDate = cFunctions.Date; // Get the current symbol date array Color[] colors = new Color[] { Color.Red, Color.Green, Color.Blue, Color.Black, Color.Yellow, Color.Gray, Color.DarkGray, Color.Red, Color.Green, Color.Blue, Color.Black, Color.Yellow, Color.Gray, Color.DarkGray, Color.Red, Color.Green, Color.Blue, Color.Black, Color.Yellow, Color.Gray, Color.DarkGray, Color.Red, Color.Green, Color.Blue, Color.Black, Color.Yellow, Color.Gray, Color.DarkGray }; // Create the different colors for(int j=0;j= date && vect[i].Length > 0) // Current bar date is higher than reference date { if(!Double.IsNaN(lastValue)) { perf = perf * (vect[i][0] / lastValue); // Calculate performance } lastValue = vect[i][0]; } res[i] = perf - 1; } Chart.Plot(res, asset, colors[j]); // Plot relative performance line }