Here is a log of my requested trades.
2008-01-30 09:31:00-05:00: Ordering 135 shares of Security() @ 22.12
2008-01-31 09:31:00-05:00: Ordering -135 shares of Security() @ 23.36
2008-01-31 09:37:00-05:00: Ordering 143 shares of Security() @ 20.47
2008-01-31 11:51:00-05:00: Ordering -143 shares of Security() @ 21.55
and here are the transactions.
2008-01-30 09:33:00 BUY 50 $22.29 $1,114.40
2008-01-30 09:34:00 BUY 85 $21.64 $1,839.40
2008-01-31 09:37:00 SELL -135 $20.47 ($2,762.91)
2008-01-31 09:38:00 BUY 143 $20.79 $2,972.54
2008-01-31 11:53:00 SELL -50 $21.46 ($1,073.25)
2008-01-31 12:07:00 SELL -50 $21.43 ($1,071.25)
2008-01-31 12:12:00 SELL -43 $21.13 ($908.42)
I understand fundamentally why this is occurring based but what I don't understand is how a back test can ever be used to model real trading.
Is there anyway to back test for sub-minute data in the works?