Hi all,
My initial objective was to write a code that could be copy/pasted between Zipline and Quantopian, with the objective to use Linux/Spyder python IDE to write and debug code. The provided code addresses that objective.
Then I looked at the backtest results for any differences. Although I was expecting some, I've been surprised by the extent of such (see log below for example).
So I'm wondering, Am I doing anything wrong, is this the discussed differences between Quant-feed, and Yahoo ... and then what to make of it.
I've been using Yahoo for periodic strategies (periodic > 1 week rebalancing for tactical allocation strategies) with success. So I'm looking for convincing/rational info to be as confident with Q but currently my experience with yahoo tends to bring quite some bias in my thinking.
Any thoughts ?
Also ... any better way to display results in Zipline rather than the few lines of codes I've copied from https://www.quantopian.com/users/5369480afece9e06440000f6
quantopian:
2004-01-02PRINTDate 2004-01-02 00:00:00+00:00 Switch Nb: 1
2004-09-01PRINTDate 2004-09-01 00:00:00+00:00 Switch Nb: 2
2004-12-01PRINTDate 2004-12-01 00:00:00+00:00 Switch Nb: 3
2004-12-01PRINTDate 2004-12-01 00:00:00+00:00 CAGR = 0.0130861133
2005-04-01PRINTDate 2005-04-01 00:00:00+00:00 Switch Nb: 4
2005-08-01PRINTDate 2005-08-01 00:00:00+00:00 Switch Nb: 5
2005-12-01PRINTDate 2005-12-01 00:00:00+00:00 CAGR = 0.0372192950866
zipline:
Date 2004-01-02 00:00:00+00:00 Switch Nb: 1
Date 2004-05-03 00:00:00+00:00 Switch Nb: 2
Date 2004-09-01 00:00:00+00:00 Switch Nb: 3
Date 2004-12-01 00:00:00+00:00 Switch Nb: 4
Date 2004-12-01 00:00:00+00:00 CAGR = 0.015788
Date 2005-02-01 00:00:00+00:00 Switch Nb: 5
Date 2005-03-01 00:00:00+00:00 Switch Nb: 6
Date 2005-04-01 00:00:00+00:00 Switch Nb: 7
Date 2005-08-01 00:00:00+00:00 Switch Nb: 8
Date 2005-09-01 00:00:00+00:00 Switch Nb: 9
Date 2005-10-03 00:00:00+00:00 Switch Nb: 10
Date 2005-12-01 00:00:00+00:00 CAGR = 0.00133460940886