Usage of multiple Datafeeds
-
Hi,
I built a simple strategy for learning purposes. The algorithm buys if the PE is lower than 5 and sells if its higher than 10 (please don't argue about the usefulness of this strategy since it's only for learning).My pricing data is stored in several
Pandas Dataframe
with eachDataframe
representing one company. However, I don't want to apply my strategy to only one company, but all available ones. Additionally, I only want to apply the strategy to the five companies at once (guess I need to filter them daily before applying the strategy).So my questions:
-
How can I bundle several DataFrames and add them to Cerebro at once?
-
How can I filter out the companies with the best results every day (in
zipline
it worked withPipelines
)
Thanks.
-
-
This was discussed several time in the forum. Just dig deeper, try to search for word
multi
. Also it was a blog post published which can give ideas -