add_dataframes_as_feeds#
- add_dataframes_as_feeds(cerebro, pair_universe, datas, start, end, bucket, plot=False)[source]#
Add Pandas candle data as source feed to Backtrader strategy tester.
For each py:class:pd.DataFrame creates a new
bt.Celebro.adddata()
feed of the typeCapitalgramFeed
. Data on any missing dates is gracefully handled.- Parameters:
plot – Whether Backtrader includes this series in its default plot
cerebro (Cerebro) –
pair_universe (PandasPairUniverse) –
start (datetime) –
end (datetime) –
bucket (TimeBucket) –