In my trading algorithm, I'm putting considerable effort into ensuring my cash level doesn't go negative. I want to set up a strictly long, unleveraged trading situation. So given this, I'm wondering how I should handle the acquisition of a company that I have bought in a backtest.
The specific question I have is about Sunoco (SUN), which according to this article was acquired in a cash+stock deal in 2012:
http://dealbook.nytimes.com/2012/04/30/energy-transfer-to-buy-sunoco-for-5-3-billion/
This was a cash+stock deal. So after the deal goes through, I would expect to:
- Have no position in SUN
- Have a new position in energy transfer partners (ETP)
But, I have the following position in my context. I can't figure out if a cash value equivalent to this now untradable position was added to my account.
Position({'amount': 85, 'last_sale_price': 46.8, 'cost_basis': 47.33311765969047, 'sid': Equity(7211, symbol=u'SUN', asset_name=u'SUNOCO INC', exchange=u'NEW YORK STOCK EXCHANGE', start_date=Timestamp('1993-01-04 00:00:00+0000', tz='UTC'), end_date=Timestamp('2012-10-04 00:00:00+0000', tz='UTC'), first_traded=None, auto_close_date=None)})
So far as I can tell, I didn't see a new position for ETP in my portfolio. Nor did I see a cash deposit corresponding to the SUN acquisition. Which means that my backtest showed performance worse than I would otherwise expect.
If anyone has further information to offer on this matter, I would really appreciate it.
Thanks,
Sunil