Hi all,
I’m new to this forum, so hoping to get a little help or a push in the right direction.
Does anyone know if it is possible to supply zipline with a dataframe of transactions and have it run a backtest to produce performance metrics for you? I know this is out of scope of the ML4T book, but I wanted to try a new scenario.
Scenario / Use case
I have a strategy which has produced some trades based on a weekly rebalance. Based the rebalance trades, I open some discretionary positions and close others in my trading account.
Is there a way I can plug these historic and current discretionary trades into zipline so that I can compare output performance metrics against the automated strategy?
Effectively I want to compare performance of a strategy vs the market - but not sure if the above is the way to achieve it.
Logically, I would think you can, as you are effectively telling zipline what to buy/sell, price and quantity - the same way you would with a signal of some sort.
I’ve tried using ChatGPT to help with this scenario, but when I run the trades through zipline, they do not execute, and I just get back the starting capital every day of the backtest.
Any help or a push in the right direction would be appreciated.
N