IProtectiveBehaviour

StockSharp.Algo.Strategies.Protective

位置保护行为.

实现: ILogSource, IDisposable

属性

Position
public decimal Position { get; }
value = iProtectiveBehaviour.Position

目前位置值.

方法

TryActivate
public ValueTuple<bool, Sides, decimal, decimal, OrderCondition>? TryActivate(decimal price, DateTime time)
result = iProtectiveBehaviour.TryActivate(price, time)

试着启动保护。

price
现价.
time
现相相相.

返回值: 登记令信息.

Update
public ValueTuple<bool, Sides, decimal, decimal, OrderCondition>? Update(decimal price, decimal value, DateTime time)
result = iProtectiveBehaviour.Update(price, value, time)

更新位置差异 。

price
位置差价.
value
位置差值。
time
现相相相.

返回值: 登记令信息.