StrategyEngine
StockSharp.Algo.Strategies.Decomposed
State machine + message processing. Handles ProcessState transitions and market data routing to PnLManager.
Konstruktoren
StrategyEngine(IStrategyHost, IPnLManager)
State machine + message processing. Handles ProcessState transitions and market data routing to PnLManager.
- host
- Strategy host.
- pnlManager
- PnL manager.
Eigenschaften
ProcessState : ProcessStates
Current process state.
UnrealizedPnLInterval : TimeSpan
Interval for unrealized PnL refresh.
Methoden
ForceStop()
Force state to Stopped (for reset).
RequestStartAsync(CancellationToken) : ValueTask
Request strategy start. Sends state change message through host.
RequestStopAsync(CancellationToken) : ValueTask
Request strategy stop. Sends state change message through host.
Ereignisse
CurrentPriceUpdated : Action<SecurityId, decimal, DateTime, DateTime>
Fires when current price updates from market data.
PnLRefreshRequired : Action<DateTime>
Fires when PnL should be recalculated.
StateChanged : Action<ProcessStates>
Fires when ProcessState changes.