for (int i = 0; i < BarCount + 1; i++)
{
if (i == BarCount)
{
gotBars = true;
break;
}
if (!(Close[i] > Close[i + 1]))
break;
if (BarUp && !(Close[i] > Open[i]))
break;
if (HigherHigh && !(High[i] > High[i + 1]))
break;
if (HigherLow && !(Low[i] > Low[i + 1]))
break;
}
if(gotBars)
Value.Set(Low[ " FIRST BAR OF NbarsUP ] + High[0]) ;
}
Not sure if you someone can help me with that coding line, or if you know of an existing indicator that does this range calculation of N bars Up.
I appreciate your collaboration.
Comment