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
Position
Current position value.
decimal Position { get; }
Property Value
SecurityId
SecurityId SecurityId { get; }
Property Value
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
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)