Mukesh Ram

How to implement CAPM?


This may be a simple question. 
My trading idea is to buy stocks which have positive excess return base on CAPM theory. 
Anyone can give some guidance how the backtest code should be?

Can you share what have you coded so far? 
It's better for others to comment on your existing code. 

I can help coding this strategy for you. pm me.