Implements TBacktestLogicPrivateService
Public service for backtest orchestration with context management.
Wraps BacktestLogicPrivateService with MethodContextService to provide implicit context propagation for strategyName, exchangeName, and frameName.
This allows getCandles(), getSignal(), and other functions to work without explicit context parameters.
constructor();
loggerService: { readonly methodContextService: { readonly context: IMethodContext; }; readonly executionContextService: { readonly context: IExecutionContext; }; ... 7 more ...; setLogger: (logger: ILogger) => void; }
backtestLogicPrivateService: BacktestLogicPrivateService
timeMetaService: TimeMetaService
frameSchemaService: FrameSchemaService
exchangeConnectionService: ExchangeConnectionService
run(symbol: string, context: {
strategyName: StrategyName;
exchangeName: ExchangeName;
frameName: FrameName;
}): AsyncGenerator<IStrategyTickResultScheduled | IStrategyTickResultOpened | IStrategyTickResultClosed | IStrategyTickResultCancelled, void, any>;
Runs backtest for a symbol with context propagation.
Streams closed signals as async generator. Context is automatically injected into all framework functions called during iteration.