Lean
$LEAN_TAG$
|
Provides an implementation of IAlphaModel that combines multiple alpha models into a single alpha model and properly sets each insights 'SourceModel' property. More...
Public Member Functions | |
CompositeAlphaModel (params IAlphaModel[] alphaModels) | |
Initializes a new instance of the CompositeAlphaModel class More... | |
CompositeAlphaModel (params PyObject[] alphaModels) | |
Initializes a new instance of the CompositeAlphaModel class More... | |
CompositeAlphaModel (PyObject alphaModel) | |
Initializes a new instance of the CompositeAlphaModel class More... | |
override IEnumerable< Insight > | Update (QCAlgorithm algorithm, Slice data) |
Updates this alpha model with the latest data from the algorithm. This is called each time the algorithm receives data for subscribed securities. This method patches this call through the each of the wrapped models. More... | |
override void | OnSecuritiesChanged (QCAlgorithm algorithm, SecurityChanges changes) |
Event fired each time the we add/remove securities from the data feed. This method patches this call through the each of the wrapped models. More... | |
void | AddAlpha (IAlphaModel alphaModel) |
Adds a new AlphaModel More... | |
void | AddAlpha (PyObject pyAlphaModel) |
Adds a new AlphaModel More... | |
Public Member Functions inherited from QuantConnect.Algorithm.Framework.Alphas.AlphaModel | |
AlphaModel () | |
Initialize new AlphaModel More... | |
Additional Inherited Members | |
Properties inherited from QuantConnect.Algorithm.Framework.Alphas.AlphaModel | |
virtual string | Name [get, set] |
Defines a name for a framework model More... | |
Properties inherited from QuantConnect.Algorithm.Framework.Alphas.INamedModel | |
string | Name [get] |
Defines a name for a framework model More... | |
Provides an implementation of IAlphaModel that combines multiple alpha models into a single alpha model and properly sets each insights 'SourceModel' property.
Definition at line 29 of file CompositeAlphaModel.cs.
QuantConnect.Algorithm.Framework.Alphas.CompositeAlphaModel.CompositeAlphaModel | ( | params IAlphaModel[] | alphaModels | ) |
Initializes a new instance of the CompositeAlphaModel class
alphaModels | The individual alpha models defining this composite model |
Definition at line 37 of file CompositeAlphaModel.cs.
QuantConnect.Algorithm.Framework.Alphas.CompositeAlphaModel.CompositeAlphaModel | ( | params PyObject[] | alphaModels | ) |
Initializes a new instance of the CompositeAlphaModel class
alphaModels | The individual alpha models defining this composite model |
Definition at line 51 of file CompositeAlphaModel.cs.
QuantConnect.Algorithm.Framework.Alphas.CompositeAlphaModel.CompositeAlphaModel | ( | PyObject | alphaModel | ) |
Initializes a new instance of the CompositeAlphaModel class
alphaModel | The individual alpha model defining this composite model |
Definition at line 68 of file CompositeAlphaModel.cs.
|
virtual |
Updates this alpha model with the latest data from the algorithm. This is called each time the algorithm receives data for subscribed securities. This method patches this call through the each of the wrapped models.
algorithm | The algorithm instance |
data | The new data available |
Reimplemented from QuantConnect.Algorithm.Framework.Alphas.AlphaModel.
Definition at line 82 of file CompositeAlphaModel.cs.
|
virtual |
Event fired each time the we add/remove securities from the data feed. This method patches this call through the each of the wrapped models.
algorithm | The algorithm instance that experienced the change in securities |
changes | The security additions and removals from the algorithm |
Reimplemented from QuantConnect.Algorithm.Framework.Alphas.AlphaModel.
Definition at line 106 of file CompositeAlphaModel.cs.
void QuantConnect.Algorithm.Framework.Alphas.CompositeAlphaModel.AddAlpha | ( | IAlphaModel | alphaModel | ) |
Adds a new AlphaModel
alphaModel | The alpha model to add |
Definition at line 118 of file CompositeAlphaModel.cs.
void QuantConnect.Algorithm.Framework.Alphas.CompositeAlphaModel.AddAlpha | ( | PyObject | pyAlphaModel | ) |
Adds a new AlphaModel
pyAlphaModel | The alpha model to add |
Definition at line 127 of file CompositeAlphaModel.cs.