Table of Contents

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

decimal

Methods

TryActivate(decimal, DateTimeOffset)

Try activate protection.

(bool isTake, Sides side, decimal price, decimal volume, OrderCondition condition)? TryActivate(decimal price, DateTimeOffset time)

Parameters

price decimal

Current price.

time DateTimeOffset

Current 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)

Parameters

price decimal

Position difference price.

value decimal

Position difference value.

Returns

(bool isTake, Sides side, decimal price, decimal volume, OrderCondition condition)?

Registration order info.