use indexes

  • Thread starter Thread starter Frankdot
  • Start date Start date
F

Frankdot

Guest
Hello,

I try to index in a for loop.

for (double d = 1.61D; d < 4.24; d+= 0.01D)
{
List<double> sumlist = new List<double>() {d};

for(int sz = 0; sz < sumlist.Count; sz++)
{
sumlist[sz] = (volumeValue /= sumlist[sz]);


Print("sumlist" + sumlist[sz]);
sumvolfibo = sumlist[sz];


}

}



for(int barIndex = index; barIndex <= ChartBars.ToIndex; barIndex--)
{
sumOfVolumes4 += Bars.GetVolume(barIndex);
if (sumOfVolumes4 >= sumvolfibo)
{
foundIndex = barIndex;

Print("sumvol" +sumvolfibo);



break;
}
}
Print("sum4" +sumOfVolumes4);
Print("FI"+foundIndex);

Right now foundIndex return barIndex 1670.

I want

if (sumOfVolumes4 >= sumvolfibo)

to check for every foundIndex and return them for every answer from


sumlist[sz]

anyone know how to do that?

Thanks

Continue reading...
 
Back
Top