I wrote that code and used it with Market Data replay as of January, 26; although it plots as expected outside the timespan of that particular trading day, it always plots the same colour during the replay.
I welcome any help.
Gerard
protected override void Initialize() { CalculateOnBarClose = false; Overlay = false; PriceTypeSupported = false; } /// <summary> /// Called on each bar update event (incoming tick) /// </summary> protected override void OnBarUpdate() { if (FirstTickOfBar) { if (Close[0] > Open[0]) BackColor = Color.Blue; else BackColor = Color.Yellow; } }
Comment