Hi,
Below is my draft implementation of Tactical Bond Strategy described here: http://seekingalpha.com/article/2073493-tactical-bond-strategy-for-rising-treasury-rates
As you can see results are not even comparable with author's GAR 12.1% and STD 5.4%.
The reason of that difference is a way of processing dividends. Author developed this algo using ETFREply, which differs from Quantopian in this respect.
I've asked the author about that and here is his reply:
The MA is calculated not on the price of bond, but on the total return of bond (that includes the dividends).
Does Quantopian track total return or price only? This is a fundamental question that needs answering.
Reading here https://www.quantopian.com/help#ide-dividends I understood that calculation of MA in my algo uses only price of the bond etf not counting dividends. Is there any way to implement this kind of algo on Quantopian?
Regards,
Ed