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

Methods

Clear()

Clear state.

void Clear()

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.