Lean
$LEAN_TAG$
|
Provides a base class for execution models More...
Public Member Functions | |
virtual void | Execute (QCAlgorithm algorithm, IPortfolioTarget[] targets) |
Submit orders for the specified portfolio targets. This model is free to delay or spread out these orders as it sees fit More... | |
virtual void | OnSecuritiesChanged (QCAlgorithm algorithm, SecurityChanges changes) |
Event fired each time the we add/remove securities from the data feed More... | |
Provides a base class for execution models
Definition at line 24 of file ExecutionModel.cs.
|
virtual |
Submit orders for the specified portfolio targets. This model is free to delay or spread out these orders as it sees fit
algorithm | The algorithm instance |
targets | The portfolio targets just emitted by the portfolio construction model. These are always just the new/updated targets and not a complete set of targets |
Implements QuantConnect.Algorithm.Framework.Execution.IExecutionModel.
Reimplemented in QuantConnect.Algorithm.Framework.Execution.StandardDeviationExecutionModel, QuantConnect.Algorithm.Framework.Execution.ExecutionModelPythonWrapper, QuantConnect.Algorithm.Framework.Execution.VolumeWeightedAveragePriceExecutionModel, QuantConnect.Algorithm.Framework.Execution.SpreadExecutionModel, QuantConnect.Algorithm.Framework.Execution.ImmediateExecutionModel, and QuantConnect.Algorithm.Framework.Execution.NullExecutionModel.
Definition at line 33 of file ExecutionModel.cs.
|
virtual |
Event fired each time the we add/remove securities from the data feed
algorithm | The algorithm instance that experienced the change in securities |
changes | The security additions and removals from the algorithm |
Implements QuantConnect.Algorithm.Framework.INotifiedSecurityChanges.
Reimplemented in QuantConnect.Algorithm.Framework.Execution.StandardDeviationExecutionModel, QuantConnect.Algorithm.Framework.Execution.VolumeWeightedAveragePriceExecutionModel, QuantConnect.Algorithm.Framework.Execution.ImmediateExecutionModel, and QuantConnect.Algorithm.Framework.Execution.ExecutionModelPythonWrapper.
Definition at line 43 of file ExecutionModel.cs.