fixed slippage was ignoring order direction.

This commit is contained in:
fawce
2012-09-17 15:31:59 -04:00
parent 71c1f755b3
commit 518d471a93
+1 -1
View File
@@ -117,7 +117,7 @@ class FixedSlippage(object):
txn = create_transaction(
event.sid,
amount,
event.price + self.spread/2.0,
event.price + (self.spread/2.0 * direction),
event.dt,
direction,
self.commission