I cant tell if its Ninjatrader related or C# related but ill ask anyway.
for(int barIndex = index; barIndex <= ChartBars.ToIndex; barIndex++)
{
volumeValue += Bars.GetVolume(barIndex);
}
// return all the volume between index and ChartBars.ToIndex
for (dq = 1.61D; dq < 2; dq+= 0.01D)
{
sumvolfibo = (volumeValue / dq);
// dq return 1.61, 1.62, 1.61 till it get to 2. Than volumeValue is didvided by each dq value.
}
But if i change for
sumvolfibo = (volumeValue /= dq);
Frank
Thank you

Comment