IStrategyHost
StockSharp.Algo.Strategies.Decomposed
Infrastructure abstraction replacing direct Connector dependency.
Properties
CurrentTime
public DateTime CurrentTime { get; }
value = iStrategyHost.CurrentTime
Current UTC time.
HasPositions
public bool HasPositions { get; }
value = iStrategyHost.HasPositions
Whether strategy positions exist.
Methods
CanRefreshPnL
public bool CanRefreshPnL(DateTime time)
result = iStrategyHost.CanRefreshPnL(time)
Whether PnL refresh is allowed at the specified time.
- time
- Refresh time.
GetNextTransactionId
public long GetNextTransactionId()
result = iStrategyHost.GetNextTransactionId()
Get next transaction ID for subscriptions.
SendOutMessageAsync
public ValueTask SendOutMessageAsync(Message message, CancellationToken cancellationToken)
result = iStrategyHost.SendOutMessageAsync(message, cancellationToken)
Send outgoing message (state change, order, etc.).
- message
- Message.
- cancellationToken
- CancellationToken