ProtectiveController
StockSharp.Algo.Strategies.Protective
保護コントローラー。
継承元: BaseLogReceiver
メソッド
GetController
public IProtectivePositionController GetController(SecurityId securityId, string portfolioName, IProtectiveBehaviourFactory factory, Unit takeValue, Unit stopValue, bool isStopTrailing, TimeSpan takeTimeout, TimeSpan stopTimeout, bool useMarketOrders)
result = protectiveController.GetController(securityId, portfolioName, factory, takeValue, stopValue, isStopTrailing, takeTimeout, stopTimeout, useMarketOrders)
IProtectivePositionController@ インスタンスを取得します。
- securityId
- 担当: 佐藤 宏
- portfolioName
- 担当: 佐藤 宏
- factory
- 担当: 佐藤 宏
- takeValue
- オフセットを取る。
- stopValue
- オフセットを止めて下さい。
- isStopTrailing
- トレーリング技術の使用かどうか。
- takeTimeout
- 制限時間。保護がこの時間によって働かなかった場合、位置は市場で閉鎖されます。
- stopTimeout
- 制限時間。保護がこの時間によって働かなかった場合、位置は市場で閉鎖されます。
- useMarketOrders
- 市場注文を使用するか。
戻り値: 担当: 佐藤 宏
TryActivate
public IEnumerable<ValueTuple<bool, Sides, decimal, decimal, OrderCondition>> TryActivate(SecurityId securityId, decimal price, DateTime time)
result = protectiveController.TryActivate(securityId, price, time)
保護をアクティブにして下さい。
- securityId
- 担当: 佐藤 宏
- price
- 現在の価格。
- time
- 現行時刻
戻り値: 参加登録の注文情報。