I try to for loop in OBU from my variable Index to the beginning of the chart. Index is the lowest value in the chart.
for(int barIndex = index; barIndex <= 0; barIndex--)
{
sumOfVolumes4 += Bars.GetVolume(barIndex);
if (sumOfVolumes4 >= sumvolfibo)
{
foundIndex = barIndex;
}
}
thank you

Comment