BaseProtectiveBehaviour
StockSharp.Algo.Strategies.Protective
IProtectiveBehaviour的基础实施.
继承自: BaseLogReceiver
实现: IProtectiveBehaviour, ILogSource, IDisposable
构造函数
BaseProtectiveBehaviour
protected BaseProtectiveBehaviour(Unit takeValue, Unit stopValue, bool isStopTrailing, TimeSpan takeTimeout, TimeSpan stopTimeout, bool useMarketOrders)
baseProtectiveBehaviour = BaseProtectiveBehaviour(takeValue, stopValue, isStopTrailing, takeTimeout, stopTimeout, useMarketOrders)
初始化了 & ##BaseProtectiveBehaviour+#的新实例.
- takeValue
- 纽约
- stopValue
- 缩写为A/C.5/60/L.
- isStopTrailing
- 是否使用跟踪技术 。
- takeTimeout
- 限时 保护到此时尚未奏效的,该地站将上市关闭.
- stopTimeout
- 限时 保护到此时尚未奏效的,该地站将上市关闭.
- useMarketOrders
- 是否使用市场订单.
属性
IsStopTrailing
protected bool IsStopTrailing { get; }
value = baseProtectiveBehaviour.IsStopTrailing
是否使用跟踪技术 。
StopTimeout
protected TimeSpan StopTimeout { get; }
value = baseProtectiveBehaviour.StopTimeout
限时 保护到此时尚未奏效的,该地站将上市关闭.
StopValue
protected Unit StopValue { get; }
value = baseProtectiveBehaviour.StopValue
缩写为A/C.5/60/L.
TakeTimeout
protected TimeSpan TakeTimeout { get; }
value = baseProtectiveBehaviour.TakeTimeout
限时 保护到此时尚未奏效的,该地站将上市关闭.
UseMarketOrders
protected bool UseMarketOrders { get; }
value = baseProtectiveBehaviour.UseMarketOrders
是否使用市场订单.
方法
TryActivate
public abstract ValueTuple<bool, Sides, decimal, decimal, OrderCondition>? TryActivate(decimal price, DateTime time)
result = baseProtectiveBehaviour.TryActivate(price, time)
试着启动保护。
- price
- 现价.
- time
- 现相相相.
返回值: 登记令信息.
Update
public abstract ValueTuple<bool, Sides, decimal, decimal, OrderCondition>? Update(decimal price, decimal value, DateTime time)
result = baseProtectiveBehaviour.Update(price, value, time)
更新位置差异 。
- price
- 位置差价.
- value
- 位置差值。
- time
- 现相相相.
返回值: 登记令信息.