Hi guys,
This is my first working algorithm. It does a simple arbitrage between Berkshire Hathaway class A and B shares.
This is set up without slippage or commissions: I doubt this would be profitable under realistic conditions and I just wanted to learn the basics of Quantopian without dealing with the mechanics of real executions. This also won't work prior to Jan. 2010 when the class b shares split.
I don't have very much python or trading experience and I am new to Quantopian so I would really appreciate any feedback you have on the algorithm.
I also have a couple specific questions if anyone wants to help me out.
Appropriate capital base
The capital base is only $10,000 in this. I think the theory here is sound: the short in class A raises the cash to go long in B so almost no net cash is actually required to put on the position. That said, if this was your entire account I don't think it would meet basic margin requirements. What would be an appropriate capital base for this trade?
First position
I am concerned that the first time the algorithm puts on the position it doesn't look like the spread hit the required threshold. Is it possible that the custom chart just isn't showing it? The trade appears to happen profitably.
Thanks!