I am trying to make an addition of the volume inside a for loop:
double sumvolms = 0;
for(int barIndex = index; barIndex <= ChartBars.ToIndex; barIndex++)
{
double vols = Bars.GetVolume(barIndex);
sumvolms += vols;
}
But i just want the last number 400 in the output window.
Is there a way to that?
thanks

Comment