While inspecting a strategy in the Data Browser I've discovered a number of instances where the purchase or sale price of a security is much different than the price range during that day. The price is also considerably different than my "slippage" or "commissions" logic would indicate.
For example, the strategy purchased symbol "BRS" on Jan. 3rd, 2014 at a price of $74.63/share. On 1/3/14 the Open = $68.30, High = $69.43, Low = $68.12, Close = $68.68. The next trading day was Jan. 6th and the Open = $68.80, High = $69.62, Low = $68/25, Close = $69.35.
There are a number of tickers where the Purchase or Sale price is significantly different than the price range of the day of the purchase.
My Commissions and Slippage code is as follows:
algo.set_commission(
us_equities=commission.PerShare(
cost=0.005,
min_trade_cost=2.0,
)
)
algo.set_slippage(
us_equities=slippage.VolumeShareSlippage(
volume_limit=0.0025,
price_impact=0.1,
Is there a bug in Zipline or is my code incorrect?
Thanks.