I am writing a strategy that uses the OrderFlowCumulativeDelta indicator (I have lifetime license).
I am using OrderFlowCumulativeDelta as a reference via a private variable and have added the Tick data series and also calling Update in the OnBarUpdate method as documented. I am also added the OrderFlowCumulativeDelta indicator to the chart using the AddChartIndicator.
The OrderFlowCumulativeDelta is loaded and is updating correctly.
I am trying to change the Red/Green bar color of the OrderFlowCumulativeDelta based on certain condition. I can change the UpBrush and DownBrush property before adding it to the chart, but I don't know how to change them on OnBarUpdate.
Can anyone please provide me a way to do this?
Thanks.
Comment