I would like to hide the current bar until it is has reached 50% completion.
e.g for a 1000 volume bar chart series (candlesticks), i would like to hide the current bar until the volume remaining is 500.
I have the following code for my indicator, it compiles ok, but nothing happens in the chart.
protected override void OnBarUpdate()
{
if (Bars.PercentComplete < 0.5);
BarBrush = Brushes.Transparent;
CandleOutlineBrush = Brushes.Transparent;
if (Bars.PercentComplete > 0.5);
BarBrush = null;
CandleOutlineBrush = null;
}
Thanks
Comment