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.