Open EmilioFreire opened 5 years ago
It would defiantly be beneficial to remove securities from the universe (intraday) in order to improve the general performance of algorithms that use universe selection.
We're planning on a way to add any generic data to the security object; e.g. an indicator; or pair trading data; and then allowing access to that anywhere in QCA. This would solve many use cases.
Second issue of performance; agreed - ideally we will address this by pushing new selection criteria on demand: universe.ProcessSelection( symbol[] )
or ProcessSelection() triggered via a scheduled event .
In addition; adjust RemoveSecurity() to remove from all universes
Current Behaviour
Currently Lean only allows to remove securities from a User-Defined Universe
Requested Behavior
Allow to use RemoveSecurities also for Coarse and Fine Universes.
A Few Use Cases
A potential solution to this scenario would be the ability to tag the securities as Long/Short (or any other tags) in Universe in order for the Alpha to know what to do with them.
I believe the second scenario makes a more general case, and that simply being able to get rid of the useless securities from the Universe (once the decision of trading has been made) would fix the issue.
The solution would be again to remove those remaining securities from Universe.
Checklist
master
branch