Hello community & staff, 

I am trading based on fundamental data. To my knowledge, QC has the best collection for fundamental data there is, thank you!! 

 

The https://www.quantconnect.com/data/morning-star-us-fundamentals describes “As Morningstar data arrives, it updates the master copy and is passed into your algorithm, similar to how TradeBars are fill-forwarded in your data feed. If there have been no updates this week, you'll receive the same fundamental data.”.

Right now I read the fundamental data at every new day based on this condition, which implies that I have received all data at midnight. Seems to work that way in the backtest: 

  1. class SymbolData:
  2. ...
  3. @property
  4. def MarketCap(self):
  5. return self.security.Fundamentals.MarketCap
  6. class MyAlpha(QCAlgorithm):
  7. ...
  8. def update(...)
  9. ...
  10. condition = self.day != self.algo.Time.day
  11. if condition:
  12. # decision logic based on hopefully most recent fundamental data
  13. # buy some stocks
  14. ...
+ Expand

Should I rather add the condition of the hour being greater than 7 to make sure I catch the daily / monthly updates? 

  1. condition = self.day != self.algo.Time.day and self.algo.Time.hour > 7


I will do some testing for that, but knowing how it should be definitely helps me (and maybe others). 

 

Thank you, 

 

Jens 

Author

Jens.

January 2023