IProtectiveBehaviourFactory
StockSharp.Algo.Strategies.Protective
IProtectiveBehaviour factory.
Methods
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)
Create IProtectiveBehaviour
- takeValue
- Take offset.
- stopValue
- Stop offset.
- isStopTrailing
- Whether to use a trailing technique.
- takeTimeout
- Time limit. If protection has not worked by this time, the position will be closed on the market.
- stopTimeout
- Time limit. If protection has not worked by this time, the position will be closed on the market.
- useMarketOrders
- Whether to use market orders.
Returns: IProtectiveBehaviour