I have made a HLC chartsyle with help from Michael here:
At present I have the last bar only plotting purple all the time when historical AND real-time with no conditions in place.
However, I wish the last bar to be another brush when the market is live only. See image attached.
I tried this:
private bool realTime = false;
protected override void OnStateChange()
{[INDENT]if (State == State.Realtime)
{
realTime = true;
}
[/INDENT]}
if (realTime)
{[INDENT]code here to plot purple. (This I have already).
[/INDENT]}

Any solutions?
Thank you.



Comment