backtesting.py icon indicating copy to clipboard operation
backtesting.py copied to clipboard

Question - multi-timeframe example code, 15min bar crossover 1D bar

Open kaustv-datta opened this issue 1 year ago • 0 comments

Could I get a code snippet for the following case please?

My data 1 min candles (OHLCV).

My strategy Go Long: 15min candle close crosses over pervious day's high Go Short: 15min candle close crosses below pervious day's low

I want to know what the most efficient way would be to upsample from 1min to 15min and daily data and then generate signals based on two higher timeframes. I have seen the multi-timeframe example on the website, but it showed how to work with an indicator, but not ohlcv.

Thanks!

kaustv-datta avatar Jul 26 '23 13:07 kaustv-datta