Closed shreyassarda7 closed 6 months ago
You can check if an order is filled by iterating through hbt.orders
dict and checking the order's status (either FILLED or PARTIALLY FILLED) before clear_inactive_order
.
This way we can definitely print them but wouldn't it be better to have a way in hbt to get trades? For ex. hbt.trades_executed. Or some way to get a list of trades executed or orders to be appended to some list.
Adding an executed trade list slows down the backtesting process. IMO, since HFT backtest accounts for full TbT data and queue positions, it's already slower compared to candle-based backtesting. It is better to minimize features if they can be easily implemented on a user-side basis according to the user's needs.
Hi @nkaz001, I have been playing with this backtesting framework for some time. I wanted to understand how can we check the trades that are executed when we are doing the backtest. What would be a standard process to debug the strategy results? Thank you