RiskOrderPriceRule
StockSharp.Algo.Risk
Riesgo-regla, precio de orden de seguimiento.
Hereda de: RiskRule
Propiedades
Price
public decimal Price { get; set; }
value = riskOrderPriceRule.Price
riskOrderPriceRule.Price = value
Precio del pedido.
Métodos
GetTitle
protected override string GetTitle()
result = riskOrderPriceRule.GetTitle()
Consigue título.
LoadAsync
public override Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = riskOrderPriceRule.LoadAsync(storage, cancellationToken)
Asynchronously loads the state of the object from the specified SettingsStorage.
- storage
- The SettingsStorage instance from which to load the data.
- cancellationToken
- A token to monitor for cancellation requests.
Devuelve: A task that represents the asynchronous load operation.
ProcessMessage
public override bool ProcessMessage(Message message)
result = riskOrderPriceRule.ProcessMessage(message)
Para procesar el mensaje para el cálculo de demoras de transacción. Se aceptan mensajes de OrderRegisterMessage, OrderReplaceMessage, OrderCancelMessage y ExecutionMessage.
- message
- Mensaje.
Devuelve: El retraso de transacción. Si es imposible calcular el retraso, será devuelto.
SaveAsync
public override Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = riskOrderPriceRule.SaveAsync(storage, cancellationToken)
Asynchronously saves the state of the object to the specified SettingsStorage.
- storage
- The SettingsStorage instance to which to save the data.
- cancellationToken
- A token to monitor for cancellation requests.
Devuelve: A task that represents the asynchronous save operation.