I am switching back and forth between a Bid and Ask candlestick chart using two custom buttons on the main tool bar.
I am currently making the switch through the ChartBars properties:
foreach (var obj in _parentchartWindow.ActiveChartControl.ChartObjects) { var prices = obj as ChartBars; if (prices != null) { prices.Properties.BarsPeriod.MarketDataType = MarketDataType.Bid; } }
When the 'Price based on' property is changed manually by the user within the Data Series dialog and applied, it does not appear that all data is being reloaded.
Is there a function in NinjaScript I've overlooked to invoke the chart to repaint with the new prices? I would prefer not to create new ChartTypes for this as the style is not really changing; only the price source.
Thank you in advance.
Comment