Interface IProtectiveBehaviour
- Namespace
- StockSharp.Algo.Strategies.Protective
- Assembly
- StockSharp.Algo.dll
Position protection behaviour.
public interface IProtectiveBehaviour : ILogSource, IDisposable
- Inherited Members
- Extension Methods
Properties
Position
Current position value.
decimal Position { get; }
Property Value
Methods
TryActivate(decimal, DateTimeOffset)
Try activate protection.
(bool isTake, Sides side, decimal price, decimal volume, OrderCondition condition)? TryActivate(decimal price, DateTimeOffset time)
Parameters
price
decimalCurrent price.
time
DateTimeOffsetCurrent time.
Returns
- (bool isTake, Sides side, decimal price, decimal volume, OrderCondition condition)?
Registration order info.
Update(decimal, decimal)
Update position difference.
(bool isTake, Sides side, decimal price, decimal volume, OrderCondition condition)? Update(decimal price, decimal value)