mirror of
https://github.com/wassname/catalyst.git
synced 2026-06-30 09:02:58 +08:00
MAINT: Use date range in example that that has 1 Month curves.
So that the 1-Month Sharpe ratio has a curve to use during calculation, use data from 2002, since the Treasury returns 1 Month data starting in July, 2001.
This commit is contained in:
@@ -67,8 +67,8 @@ class DualMovingAverage(TradingAlgorithm):
|
||||
sell=self.sell)
|
||||
|
||||
if __name__ == '__main__':
|
||||
start = datetime(1990, 1, 1, 0, 0, 0, 0, pytz.utc)
|
||||
end = datetime(1991, 1, 1, 0, 0, 0, 0, pytz.utc)
|
||||
start = datetime(2002, 1, 1, 0, 0, 0, 0, pytz.utc)
|
||||
end = datetime(2003, 1, 1, 0, 0, 0, 0, pytz.utc)
|
||||
data = load_from_yahoo(stocks=['AAPL'], indexes={}, start=start,
|
||||
end=end)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user