A first attempt to implement a multi-strategy multi-instrument backtest.
I am not a coder and I am just starting out with python here. Feel free to correct or improve.
The idea is to built a "template" that can "weight" different strategies without coding the internals of the strategies.
For example, assuming we have a Trend Following and a Mean Reverting strategy on can allocate 30-70 when VIX rises above a threshold and 70-30 when VIX comes back down.
Unfortunately I don't know how to code daily indicators to work with minute bars, so:
The existing strategies work best for EOD trading (if you clone and run the daily backtest you will see what I mean).
Keep in mind that this is implemented knowing full well what has worked in the past (in other words this is "manually" optimized), so past performance is no indication of future performance.