Try to sum bars in a barIndex but is there a sumOfBars?
There's a sumOfVolumes += Bars.GetVolume(barIndex);
Is there a sumOfBars += ?
Want to sum bars inside that if ;
if(closePrice > cma)
{
// Formulas
sumOfVolumesx += Bars.GetVolume(barIndex);
sum += barIndex;
{
Print(sum);
}
}
Comment