ProtectiveController

StockSharp.Algo.Strategies.Protective

Protective controller.

继承自: BaseLogReceiver

方法

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.

返回值: IProtectivePositionController

TryActivate(SecurityId, decimal, DateTime) : IEnumerable<ValueTuple<bool, Sides, decimal, decimal, OrderCondition>>

Try activate protection.

securityId
SecurityId
price
Current price.
time
Current time.

返回值: Registration order info.