Iâm currently writing a back-testing engine in Java which uses data captured from Eurex (via IB)
I have a couple of questions as to how I should model trades / executions,
1) Should I use the historical bid and ask values and assume that if the mid touches my requested order price an execution would have occurred? OR
2) Should I use historical trade / execution data and assume that if my requested order price touches the traded price my order would have been executed (assuming my order size is less than the historical trade size)?
Iâm aware that I canât truly model the exact execution price since it depends where my order is in the queue at that price, but Iâd like to know which (if any) is most accurate.
I have a couple of questions as to how I should model trades / executions,
1) Should I use the historical bid and ask values and assume that if the mid touches my requested order price an execution would have occurred? OR
2) Should I use historical trade / execution data and assume that if my requested order price touches the traded price my order would have been executed (assuming my order size is less than the historical trade size)?
Iâm aware that I canât truly model the exact execution price since it depends where my order is in the queue at that price, but Iâd like to know which (if any) is most accurate.