The first IF STATEMENT :
if (Default[0] > 70 && Default[1] <= 70)
{
startBarsAgo = CurrentBar;
Draw.VerticalLine(this, @"xAbove70" + Bars.Count.ToString(),
0, Brushes.HotPink, DashStyleHelper.Dot, 2);
Print(string.Format("Start bar : {0}", startBarsAgo.ToString()));
}
The second IF STATEMENT :
if (Default[0] < 70 && Default[1] >= 70)
{
endBarsAgo = CurrentBar;
Draw.VerticalLine(this, @"xBelow70" + Bars.Count.ToString(),
0, Brushes.Cyan, DashStyleHelper.Dash, 2);
Print(string.Format("End bar : {0}", endBarsAgo.ToString()));
}
Comment