Basically I want to accumulate Historical Bid and Ask Volume at the tick level and roll it up to the Primary Series Ten Second Bar
I'm able to do this in real time with OnMarketData, filtering with e.MarketDataType
in the help document it mentions setting up two new series "Using Historical Bid/Ask Series", one for Bid and one for Ask, and accessing the Bid/Ask during State.Historical (I assume by filtering
I did this and it seems to work...I have this quesion
If the primary series is Second.10 and Calculate.OnEachTick, how should I set up the Bid and Ask Series to provide me with each tick of volume data?
with Second.10 or Tick.1?
(Tick.1 seems to cause problems....)
And then use BarsInProgress to determine if I had a Bid or Ask tick?
-------------------------------------------------------------------------------------------------------------------
This then would not use the Tick Replay engine?
(from the documentation Developing for Tick Replay)
protected override void OnMarketData(MarketDataEventArgs marketDataUpdate)
{
// TickReplay events only occur on the "Last" market data type
if (marketDataUpdate.MarketDataType == MarketDataType.Last)
{
if (marketDataUpdate.Price >= marketDataUpdate.Ask)
{
Print(marketDataUpdate.Volume + " contracts traded at asking price " + marketDataUpdate.Ask);
}
else if (marketDataUpdate.Price <= marketDataUpdate.Bid)
{
Print(marketDataUpdate.Volume + " Contracts Traded at bidding price " + marketDataUpdate.Bid);
}
}
}
---------------------------------------------------------------------
probably the first above is the correct way?
are there two ways?

Comment