Replies: 2 comments 2 replies
-
I'm curious about this too. In particular the Controller class because I couldn't find a lot of examples of its use. based on this test it looks like its maybe a way to wrap trader objects with extra functionality, almost like a decorator function in python |
Beta Was this translation helpful? Give feedback.
-
The Actor class provides a base class for writing any component or subclass you would like to integrate with the system. It has access to the Cache, Clock, and includes methods for data subscriptions and historical data requests. This is useful for any subclass that requires processing but not actual trading. The Strategy class is a subclass of Actor and includes additional features for order execution. The Controller class is also a subclass of Actor, but its purpose is to allow you to create, start, and stop other Actors and Strategies during runtime. This is useful when it may not be feasible to have strategies active for many stocks, which would require active data subscriptions for each strategy. When you need to deploy a strategy based on an event or external signal, such as from scanners, you can create and run the strategy for the required instruments as needed. |
Beta Was this translation helpful? Give feedback.
-
Dear maintainers,
When I read about controller, actor and strategy they seem have very similar functionality. I can imagine controller to take the responsibility of starting/ stopping strategy based on market states, what about actor? Is single strategy manage all data and execution details a preferred mode or is a controller manage multiple simple strategy and schedule them a preferred mode?
Beta Was this translation helpful? Give feedback.
All reactions