Closed GF-Huang closed 2 years ago
Hello, you may check out comdty roll. Basically the backtest engine loops through the SPY 1min timestamp. With the current timestamp, you are able to get the price/iv/greeks dataframe available up to then, either from the dataframes you load locally from strategy init, or use the self._data_board class. Also note that looking into future timestamps e.g. to get dte does not count as look forward bias.
Thanks, got it.
Hello, I have looked for many python backtesting frameworks, none of them support option backtesting well.
All the df (DataFrame) mentioned below are with 1 minute precision (1 minute bars), since I'm backtesting for day trading.
Because for example like SPY there will be 3 expiring options every week (Monday, Wednesday, Friday). I will follow the steps below:
Is
quanttrader
supports my idea/strategy?