Pivot Point Lows are determined by the number of bars with higher lows on either side of a Pivot Point Low. I've been able to find pivot point lows when I specify how many lows I require which are greater than the Pivot Point Low.
I thought I could build on that to identify Pivot Point Lows, ranging from a higher low on each side of a specific low (Level 1) to having 21 higher lows on each side of a Pivot Point Low (Level 21). You can see from the attached chart, it displays multiple Point Point Lows at various levels.
The code is pasted below:-
if (CurrentBar < 43) return;
for (int level = 1; level <= 21; level++)
{
for (int x = 1; x >= level; x++)
{
if ( Math.Min(Low[level], Close[level+1]) < Math.Min(Low[level - x], Close[level-x+1]) && Math.Min(Low[level], Close[level+1]) < Math.Min(Low[level + x], Close[level+x+1]))
{
Draw.Text(this, "tag1"+CurrentBar, level.ToString(), level, Math.Min(Low[x],Close[x+1]), Brushes.Red);
}
}
}
Regards
Kay Wai

Comment