IProtectiveBehaviourFactory
StockSharp.Algo.Strategies.Protective
IProtectiveBehaviour fabric.
Métodos
Create
public IProtectiveBehaviour Create(Unit takeValue, Unit stopValue, bool isStopTrailing, TimeSpan takeTimeout, TimeSpan stopTimeout, bool useMarketOrders)
result = iProtectiveBehaviourFactory.Create(takeValue, stopValue, isStopTrailing, takeTimeout, stopTimeout, useMarketOrders)
Criar IProtectiveBehaviour
- takeValue
- Tirar offset.
- stopValue
- Parar offset.
- isStopTrailing
- Se deve usar uma técnica de rastreamento.
- takeTimeout
- Se a protecção não tiver funcionado até esta data, a posição será encerrada no mercado.
- stopTimeout
- Se a protecção não tiver funcionado até esta data, a posição será encerrada no mercado.
- useMarketOrders
- Se deve utilizar as ordens de mercado.
Retorna: IProtectiveBehaviour