thanks,
David
protected override void OnBarUpdate()
{
if (BarsInProgress != 0)
return;
if (CurrentBars[0] < 2)
return;
// Set 1
if (High[0] < Low[2])
{
Draw.HorizontalLine(this, "DownGaplineHigh" + CurrentBar, Low[2], Brushes.Red);
Draw.HorizontalLine(this, "DownGaplineLow"+ CurrentBar , High[0], Brushes.Green);
}
if (Low[0] > High[2])
{
Draw.HorizontalLine(this, "upGaplineLow"+ CurrentBar , Low[0], Brushes.Magenta);
Draw.HorizontalLine(this, "upGaplineHigh" + CurrentBar, High[2], Brushes.Chartreuse);
}
Comment