Execution model that submits orders while the current market prices is at least the configured number of standard deviations away from the mean in the favorable direction (below/above for buy/sell respectively)
More...
|
virtual bool | PriceIsFavorable (SymbolData data, decimal unorderedQuantity) |
| Determines if the current price is more than the configured number of standard deviations away from the mean in the favorable direction. More...
|
|
virtual bool | IsSafeToRemove (QCAlgorithm algorithm, Symbol symbol) |
| Determines if it's safe to remove the associated symbol data More...
|
|
|
decimal | MaximumOrderValue = 20 * 1000 [get, set] |
| Gets or sets the maximum order value in units of the account currency. This defaults to $20,000. For example, if purchasing a stock with a price of $100, then the maximum order size would be 200 shares. More...
|
|
Execution model that submits orders while the current market prices is at least the configured number of standard deviations away from the mean in the favorable direction (below/above for buy/sell respectively)
Definition at line 32 of file StandardDeviationExecutionModel.cs.
◆ StandardDeviationExecutionModel()
QuantConnect.Algorithm.Framework.Execution.StandardDeviationExecutionModel.StandardDeviationExecutionModel |
( |
int |
period = 60 , |
|
|
decimal |
deviations = 2m , |
|
|
Resolution |
resolution = Resolution.Minute |
|
) |
| |
◆ Execute()
override void QuantConnect.Algorithm.Framework.Execution.StandardDeviationExecutionModel.Execute |
( |
QCAlgorithm |
algorithm, |
|
|
IPortfolioTarget[] |
targets |
|
) |
| |
|
virtual |
◆ OnSecuritiesChanged()
override void QuantConnect.Algorithm.Framework.Execution.StandardDeviationExecutionModel.OnSecuritiesChanged |
( |
QCAlgorithm |
algorithm, |
|
|
SecurityChanges |
changes |
|
) |
| |
|
virtual |
◆ PriceIsFavorable()
virtual bool QuantConnect.Algorithm.Framework.Execution.StandardDeviationExecutionModel.PriceIsFavorable |
( |
SymbolData |
data, |
|
|
decimal |
unorderedQuantity |
|
) |
| |
|
protectedvirtual |
Determines if the current price is more than the configured number of standard deviations away from the mean in the favorable direction.
Definition at line 145 of file StandardDeviationExecutionModel.cs.
◆ IsSafeToRemove()
virtual bool QuantConnect.Algorithm.Framework.Execution.StandardDeviationExecutionModel.IsSafeToRemove |
( |
QCAlgorithm |
algorithm, |
|
|
Symbol |
symbol |
|
) |
| |
|
protectedvirtual |
◆ MaximumOrderValue
decimal QuantConnect.Algorithm.Framework.Execution.StandardDeviationExecutionModel.MaximumOrderValue = 20 * 1000 |
|
getset |
Gets or sets the maximum order value in units of the account currency. This defaults to $20,000. For example, if purchasing a stock with a price of $100, then the maximum order size would be 200 shares.
Definition at line 45 of file StandardDeviationExecutionModel.cs.
The documentation for this class was generated from the following file: