In general what I'm aiming for is the most accurate backtest for a strategy that:
- Uses Heiken Ashi on certain minute basis
- Sets a stop/limit order after the Heiken Ashi bar was completed
- Needs ask/bid volume of the aforementioned bar as a signal for step 2.
- Uses take profit and stop loss on tick level, hence needs the highest accuracy possible
protected override void OnMarketData(MarketDataEventArgs e) { if(e.MarketDataType == MarketDataType.Last) { if(e.Price >= e.Ask){ buys += e.Volume; }else if (e.Price <= e.Bid){ sells += e.Volume; } } }
Q1: How else would I get this data?
Q2: And is my assumption correct that with those mentioned strategy parameters Calculate.OnBarClose combined with High Tick Level Order Fill Resolution should be sufficient since I only need minute bar granularity for my signal for the limit/stop order but the high tick level for the order fill resolution to achieve most accurate results?
Thanks!
PS: I use Rithmic as connectivity provider which according to this should give me my desired data.
Comment