Add momentum strategy with QQQ-based TQQQ/SQQQ trading

Implements MomentumIndicator (samples QQQ direction) and
MomentumStrategy (buys TQQQ on up, SQQQ on down, exits at
+1% target or 1hr timeout). Wired into Bot via index.ts.
Also fixes vitest config to exclude dist/ from test discovery.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Jon
2026-02-01 17:47:20 -07:00
parent 6d63346f4c
commit bf345243fd
6 changed files with 340 additions and 1 deletions

View File

@@ -3,5 +3,6 @@ import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
globals: true,
exclude: ['dist/**', 'node_modules/**'],
},
});