For two days now I have been trying to figure out how to use Fundamental Data on my Portfolio Stocks. I give up and could use some help.
Here are the things I have tried:
1) Storing the CustomFactor in the Pipeline and referencing when I got to sell with context.output.loc[stock, 'custom_factor']. The problem with this is the stock in my portfolio sometimes falls off my universe.
2) I tried taking off all filters on my pipeline so that the stock doesn't fall off, it still falls off using my universe which is default_us_equity_universe_mask(). My guess is stocks can just fall off this universe too.
3) I tried making sure the portfolio is in the pipeline with a assets = filters.StaticAssets(context.portfolio.positions) then ORing the assets with my universe. This didn't work.
4) I tried creating a second pipeline with just StaticAssets in it. Quantopian only allows one pipeline.
5) I googled everything I could think of.
I just want to ask a few fundamental questions about the stock before I sell it, seems simple but I don't know how to make sure it works. I am sure I am missing something simple.