I understand the below:
- Order gets executed after the current tick is completed
- Commissions apply
- Slippage happens
But despite all these, I am seeing a big difference in tick price and cost_basis when I try to buy SPY with only 10% capital. Here are some samples from log. Is it due to the 10% thing the cost_basis average is coming down?
tick price: 99.19, bought price based on cost_basis 105.464947648