protected override void OnBarUpdate()
{
Draw.RegionHighlightY(this, "tag1", false, High[0], Low[0], Brushes.Goldenrod, Brushes.Goldenrod, 25)
DateTime thisDay = Bars.GetTime(0);
int year = thisDay.Year;
int month = thisDay.Month;
int day = thisDay.Day;
DateTime treasuryOpen = new DateTime(year, month, day, 7, 20, 0);
DateTime treasuryClose = new DateTime(year, month, day, 14, 0, 0);
DateTime stocksOpen = new DateTime(year, month, day, 8, 30, 0);
DateTime stocksClose = new DateTime(year, month, day, 15, 00, 0);
Draw.VerticalLine(this, "tag2", treasuryOpen, Brushes.Red);
Draw.VerticalLine(this, "tag3", treasuryClose, Brushes.Red);
}
Comment