ProtectiveController
StockSharp.Algo.Strategies.Protective
Protective controller.
Inherits: BaseLogReceiver
Methods
Clear()
Clear state.
GetController(SecurityId, string, IProtectiveBehaviourFactory, Unit, Unit, bool, TimeSpan, TimeSpan, bool) : IProtectivePositionController
Get IProtectivePositionController instance.
- securityId
- SecurityId
- portfolioName
- PortfolioName
- factory
- IProtectiveBehaviourFactory
- 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: IProtectivePositionController
TryActivate(SecurityId, decimal, DateTime) : IEnumerable<ValueTuple<bool, Sides, decimal, decimal, OrderCondition>>
Try activate protection.
- securityId
- SecurityId
- price
- Current price.
- time
- Current time.
Returns: Registration order info.