kernc/backtesting.py

A few questions about execution on lower timeframes and weekly vwap

TwoPrismsOneGround opened this issue · 0 comments

I am looking to plot indicators off of a 5 minute chart but still execute on the 1minute. I currently am resampling into 5 minute bars but I am ending up with plots that look like this:

5 minute bar plots backtest

I am also seeking to do a weekly vwap calculation but even if I get it to not calculate until there is enough data to do so, I am constantly running into errors when it comes to running the backtest and plotting, any recommendations?