You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create an "OnDelisting" event in the QCAlgorithm class which is called when a symbol is to be delisted.
This should be triggered in the Algorithm Manager(?) from a feed.DataEvents queue which has generic status events on the data. The data event will include the subscription-id, symbol and relevant event types.
Before the OnData event, the DataEvents queue would be cleared (synchronously processed) and passed into the algorithm event handlers.
This same mechanism could later be used for circuit breakers, and unexpected market closes.
For now this would only be supported in backtesting using the map_files. If the map files final date is today, pass through the delisting data event. For live trading we would need to organize a data source.
The text was updated successfully, but these errors were encountered:
I was just thinking about this problem. It should be fired when the data feed breaks as well so that the algo could issue an OnLiquidate() and perhaps a quit, if the algo goes blind.
Create an "OnDelisting" event in the QCAlgorithm class which is called when a symbol is to be delisted.
This should be triggered in the Algorithm Manager(?) from a feed.DataEvents queue which has generic status events on the data. The data event will include the subscription-id, symbol and relevant event types.
Before the OnData event, the DataEvents queue would be cleared (synchronously processed) and passed into the algorithm event handlers.
This same mechanism could later be used for circuit breakers, and unexpected market closes.
For now this would only be supported in backtesting using the map_files. If the map files final date is today, pass through the delisting data event. For live trading we would need to organize a data source.
The text was updated successfully, but these errors were encountered: