IProtectiveBehaviour
StockSharp.Algo.Strategies.Protective
Position protection behaviour.
Implements: ILogSource, IDisposable
Properties
Position
public decimal Position { get; }
value = iProtectiveBehaviour.Position
Current position value.
Methods
TryActivate
public ValueTuple<bool, Sides, decimal, decimal, OrderCondition>? TryActivate(decimal price, DateTime time)
result = iProtectiveBehaviour.TryActivate(price, time)
Try activate protection.
- price
- Current price.
- time
- Current time.
Returns: Registration order info.
Update
public ValueTuple<bool, Sides, decimal, decimal, OrderCondition>? Update(decimal price, decimal value, DateTime time)
result = iProtectiveBehaviour.Update(price, value, time)
Update position difference.
- price
- Position difference price.
- value
- Position difference value.
- time
- Current time.
Returns: Registration order info.