Vars
private int BarsSinceHigh = 0;
private int BarsSinceLow = 0;
private bool BarCount1 = true;
private bool BarCount2 = true;
OBU()
if(MIN(Low,16)[0] < Low[0]) //How do instead create a condition to identify the pivot low?
{
BarsSinceLow=0;
BarCount1=false;
}
else BarsSinceLow++;
if(BarsSinceLow >= 8)
BarCount1 = true;
if(MAX(High,16)[0] > High[0]) How do instead create a condition to identify the pivot High?
{
BarsSinceHigh=0;
BarCount2=false;
}
else BarsSinceHigh++;
if(BarsSinceHigh >= 8)
BarCount2 = true;
Comment