work on strategy-engine
This commit is contained in:
parent
fc4cf71a70
commit
eee6135867
7 changed files with 572 additions and 33 deletions
|
|
@ -12,7 +12,7 @@ export interface BacktestConfig {
|
|||
commissionModel?: string;
|
||||
}
|
||||
|
||||
export class EventBacktestMode extends ExecutionMode {
|
||||
export class EventMode extends ExecutionMode {
|
||||
name = 'event-driven';
|
||||
private simulationTime: Date;
|
||||
private historicalData: Map<string, MarketData[]> = new Map();
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import { EventBus } from '@stock-bot/event-bus';
|
|||
import { VectorEngine, VectorizedBacktestResult } from '@stock-bot/vector-engine';
|
||||
import { DataFrame } from '@stock-bot/data-frame';
|
||||
import { ExecutionMode, BacktestContext, BacktestResult } from '../framework/execution-mode';
|
||||
import EventMode from './event-mode';
|
||||
import { EventMode } from './event-mode';
|
||||
import VectorizedMode from './vectorized-mode';
|
||||
import { create } from 'domain';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue