When using AddUniverse() in QCAlgorithm, the OnEndOfDay() function is not called in backtesting mode. Is this expected behavior?
It is called though when switching to using AddEquity().

You can just backtest this algo with USE_UNIVERSE=True and False to reproduce this.
 

Author