Anyone know how you nest this:
for(int barIndex = index; barIndex <= ChartBars.ToIndex; barIndex++)
{
double highPrice = Bars.GetHigh(barIndex);
double lowPrice = Bars.GetLow(barIndex);
double vols = Bars.GetVolume(barIndex);
sumvolms += vols;
if(cma < highPrice && cma > lowPrice)
{
for(int barIndex0 = barindex; barIndex0 <= ChartBars.ToIndex; barIndex++)
{
It says that barIndex dont exist. I just want the volume between index and each price that cross the if statement.
any hints?
thanks
Comment