Using the research environmment, I'm able to backtest strategies with longer computation time. While this is great, I have a list of similar strategies that are able to be backtested in the regular Q backtester. To compare strategies, i will need to bridge the gap between calculating performance numbers that Q backtester does versus in the research environment such that, if I carry out the same strategy on both research and backtest environment, the statistics returned should be virtually the same. However, i can't get my results to match.
Let's say I want to execute a min. var strategy on both the backtester and research environment. My goal is to have the ending results match and let's assume my only concern statistic is Max Drawdown
attached below is the research notebook AND the backtest strategy. The code i'm using to calculate max_drawdown is said to be the same as the one Q uses taken from zipline/finance/risk/period.py
Is there anything I'm missing out on?