IProtectivePositionController

StockSharp.Algo.Strategies.Protective

Protective controller for the specified position.

Properties

PortfolioName
public string PortfolioName { get; }
value = iProtectivePositionController.PortfolioName

Portfolio name.

Position
public decimal Position { get; }
value = iProtectivePositionController.Position

Current position value.

SecurityId
public SecurityId SecurityId { get; }
value = iProtectivePositionController.SecurityId

SecurityId

Methods

TryActivate
public ValueTuple<bool, Sides, decimal, decimal, OrderCondition>? TryActivate(decimal price, DateTime time)
result = iProtectivePositionController.TryActivate(price, time)

Try activate local stop orders.

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 = iProtectivePositionController.Update(price, value, time)

Update position difference.

price
Position difference price.
value
Position difference value.
time
Current time.

Returns: Registration order info.