We have set out on a journey to build a systematic trading strategy.
This is our story…
Equities Deciding on a universe to trade: If mirroring an index you will need to take the index joiners and leavers into account. Reduce survivorship bias Handling dividends Option 1 is to use total return time series which assumes dividends are directly reinvested into the same stock (easy to model). Option 2 is to leaveContinue reading “Asset Classes”
Import necessary functions in Python Set target weights for each ticker Set rebalance rules, i.e. monthly Set benchmark, i.e. SPY Set start and end dates – should match trade dates in zipline ingested files Create benchmark file Make sure benchmark dates align with trade dates Run backtest analysis If there are modules to import –Continue reading “Complete Backtest Using Ingested Zipline Data”
Update Users/NAME/.zipline/extension.py (needs to be updated every time you are ingesting a bundle) To locate you will need to unhide files, Command + Shift + Dot (.) on mac Update the start_session & end_session to match the trading start date and end date Update bundle name and ensure file location is correct Update csvdir.py (oneContinue reading “Ingesting A Zipline Data Bundle”