what is the function of timeframe=bt.TimeFrame.Months in feeds?
Li Mike last edited by
Dear all, I am wondering the timeframe setting in the following code. I use daily bar to test, it seems no difference between setting Months and Days. According to my understanding, backtrader uses bars to compute indicators without time concept, so it is nonrelevent to set timeframe. Could you correct me?
data = bt.feeds.GenericCSVData( ... timeframe=bt.TimeFrame.Months )
ab_trader last edited by
btrequires to set correct time frame to have correct results of the backtest. This is written in the docs. There is nothing to discuss here or correct somebody.