# 1: I need to access the price (or the close price) of each tick in the OnMarketData() event. I want to confirm whether these two codes generate the same price data or not:
protected override void OnMarketData (MarketDataEventArgs e)
{
if (e. MarketDataType == MarketDataType.Last)
Print ("Last = " + e. Price);
}
protected override void OnBarUpdate () // It is a 1-Tick data series
{
Print ("Last = " + Close[0]);
}
# 2: Is it technically correct and supported to access PriceSeries<double> (Close, High, Low, Open) and the BarsInProgress values in the OnMarketData ()? If yes, do we have any example code?
Many thanks for your support
Comment