Table of Contents

Interface IProtectivePositionController

Namespace
StockSharp.Algo.Strategies.Protective
Assembly
StockSharp.Algo.dll

Protective controller for the specified position.

public interface IProtectivePositionController
Extension Methods

Properties

PortfolioName

Portfolio name.

string PortfolioName { get; }

Property Value

string

Position

Current position value.

decimal Position { get; }

Property Value

decimal

SecurityId

SecurityId SecurityId { get; }

Property Value

SecurityId

Methods

TryActivate(decimal, DateTimeOffset)

Try activate local stop orders.

(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.