work on new engine
This commit is contained in:
parent
44476da13f
commit
a1e5a21847
126 changed files with 3425 additions and 6695 deletions
|
|
@ -1,9 +1,9 @@
|
|||
import { EventEmitter } from 'events';
|
||||
import { IServiceContainer } from '@stock-bot/di';
|
||||
import { BacktestEngine as RustEngine } from '@stock-bot/core';
|
||||
import { BacktestConfig, BacktestResult } from '../types';
|
||||
import { BacktestEngine as RustEngine } from '@stock-bot/engine';
|
||||
import { EventEmitter } from 'events';
|
||||
import { StorageService } from '../services/StorageService';
|
||||
import { StrategyExecutor, SMACrossoverStrategy } from '../strategies/StrategyExecutor';
|
||||
import { SMACrossoverStrategy, StrategyExecutor } from '../strategies/StrategyExecutor';
|
||||
import { BacktestConfig, BacktestResult } from '../types';
|
||||
|
||||
/**
|
||||
* Adapter that bridges the orchestrator with the Rust backtest engine
|
||||
|
|
@ -208,7 +208,7 @@ export class RustBacktestAdapter extends EventEmitter {
|
|||
}
|
||||
|
||||
private registerStrategy(strategyName: string, parameters: any): void {
|
||||
if (!this.currentEngine) return;
|
||||
if (!this.currentEngine) {return;}
|
||||
|
||||
this.container.logger.info('Registering strategy', {
|
||||
strategyName,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue