Hi All,
Could someone please help me filter out sectors from my list of tradable securities?
Create list of all tradable sectors
sectors = {
102.0: "Consumer Cyclical",
205.0: "Consumer Defensive",
206.0: "Healthcare",
308.0: "Communication Services",
310.0: "Industrials",
311.0: "Technology"
}
# Create list of all criteria for securities worth investing in
tradable_securities = {
'top_500':top_500,
'not_wi':not_wi,
'primary_share':primary_share,
'common_stock':common_stock,
'not_otc':not_otc
}
pipe_screen = (high_dollar_volume & sectors)
# Create, register and name a pipeline
pipe = Pipeline(columns=tradable_securities, screen=pipe_screen)
return pipe
Above is the list of sectors I wish to trade but I'm not sure how to do this via pipeline.
Thanks,
Rohit