For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
Backtest multiple csv files using one strategy, one program at the same time?
-
I've downloaded hundreds and thousands of stock csv files in one directory.
Now I'd love to backtest them all at once.
Single stock backtesting is already done, BUT I don't know how to feed multiple data into cerebro, does it contain a for loop... or something? -
this was discussed on the forum several times, search for it.
There are also couple articles -
https://www.backtrader.com/blog/posts/2015-09-03-multidata-strategy/multidata-strategy/
https://www.backtrader.com/blog/posts/2017-04-09-multi-example/multi-example/
https://www.backtrader.com/blog/2019-07-19-rebalancing-conservative/rebalancing-conservative/
https://www.backtrader.com/blog/2019-05-20-momentum-strategy/momentum-strategy/ -
@ab_trader Thank you! It means a lot!