Thank you for your response.
The HighestBar() method will search all bars within the period for the highest bar found. There is no method to make it find the second highest bar.
The following code will work for your purposes:
//Highest Volume int vol1 = HighestBar(Volume, Bars.BarsSinceSession-1); //Second Highest Volume int vol2 = 0; for(int j = 0; j < Bars.BarsSinceSession-1; j++) { if(Volume[j] > Volume[vol2] && Volume[j] < Volume[vol1]) vol2 = j; } ///Color the plots appropriately PlotColors[0][vol1] = Color.Red; PlotColors[0][vol2] = Color.Yellow;
Comment