I need to develop a new ChartStyle, I woul like to know how can i access the onMarketData method inside of the ChartStyle code??
I asked this because a need to reproduce inside the ChartStyle's code a MiniBook.
If is not possible, how can I accses the bid and ask value and volume like a code below:
protected override void OnMarketData(MarketDataEventArgs e)
{
if (e.MarketDataType == MarketDataType.Ask)
{
// do something
}
if (e.MarketDataType == MarketDataType.Bid)
{
// do something
}
if (e.MarketDataType == MarketDataType.Last)
{
// do something
}
}
Thanks
Comment