Commit Graph

35 Commits

Author SHA1 Message Date
3d16b76f23 feat: Grid-Timeframe parametrisierbar (--tf) — kürzere TFs monoton schlechter
aggregateTf verallgemeinert aggregate4h. Walk-Forward 1h/15m:
PF 0.59/0.29 (vs 0.87 auf 4h), 15m MaxDD 97% — Fee-Mathematik bestätigt.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-10 07:00:45 +00:00
b5dd953afc feat: ATR-GridBot mit Regime-Filter — Walk-Forward, Gate nicht bestanden
3 fixe Varianten (spacing 1.0/1.5×ATR, ADX<20/15): OOS-PF 0.87/1.03/0.94.
Grid-Stops bei Range-Breakdowns fressen die TP-Gewinne — kein Paper-Deploy.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-10 06:43:38 +00:00
2dcab7f24d docs: Domain-Alias trade.kuns.dev ergänzt
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-10 06:28:50 +00:00
b272b07044 docs: CLAUDE.md — Architektur-Invarianten und Deploy-Referenz
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-10 06:16:39 +00:00
29846e82a7 feat: Live-Paper-Engine — 5-min-Loop, API, Dashboard, Dockerfile
processCycle spiegelt Runner-Semantik exakt (Paritätstest gegen runBacktest),
Restart-Recovery über Cursor, DecisionLog mit Outcome-Backfill,
Bun.serve-API + statisches Dashboard, Deploy-Ziel trading.kuns.dev.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-10 06:11:44 +00:00
c5d71bba74 feat: Schema für Live-Engine (positions, paper_trades, decision_logs, bot_state, equity_snapshots)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-10 06:11:44 +00:00
69a0a7bee3 docs: Design Live-Paper-Engine (Phase 3, Paper-Probelauf der besten Variante)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-10 06:11:44 +00:00
cd6553c170 docs: Walk-Forward-Ergebnisse aller 7 Varianten (Gate nicht bestanden)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-09 22:11:25 +00:00
29000a2bba feat: Rotation-Walk-Forward-CLI (gemeinsame OOS-Aggregation extrahiert)
aggregateOos() aus runWalkForward herausgezogen und exportiert; beide
Walk-Forward-Varianten (Donchian + Rotation) nutzen dieselbe OOS-Logik.
Neues Script rotation-walkforward.ts mit identischem Report-Format und
Persistenz in backtest_runs (kind='rotation-walkforward').
package.json: "rotation"-Script ergänzt.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-09 22:09:22 +00:00
b7e81374f1 feat: Momentum-Rotation-Backtest (dual momentum, weekly, fixe Parameter)
Neues Modul rotation.ts: wöchentliche Rotation über BTC/ETH/SOL/XRP_USDT
auf 4h-Basis, Long-Only, top-1 Pair mit positivem 30-Tage-Momentum.
4 TDD-Tests (Leader-Selektion, Flip/Rotation, Cash-Modus, Determinismus).
ClosedTrade.exitReason um 'rotation' erweitert.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-09 22:09:16 +00:00
8e838c4a66 feat: --fixed Flag — Walk-Forward ohne Grid-Suche (fixe Spec-Default-Parameter) 2026-06-09 22:03:31 +00:00
cdf5b133a9 feat: Backfill-Ziel auf 36 Monate erweitert 2026-06-09 21:48:23 +00:00
c07a34e671 feat: ADX-Trendstärke-Filter (fix 20, nicht im Grid) gegen Chop-Whipsaw
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-09 21:46:57 +00:00
736db184ab feat: Short-Seite im Runner + Walk-Forward-CLI (--shorts Flag)
- BacktestConfig.allowShort: boolean (required, explizit)
- Runner: Short-Entry (stop = close + mult×ATR), updateChandelierShort für Trail,
  Stop-Check auf High >= stop, Gap-Fill nach oben
- Bestehende Runner-Tests: allowShort: false ergänzt (Verhalten byte-identisch)
- Neuer E2E-Test: Short-Breakout → trailing_stop; Long-Only-Sanity-Check
- walkforward.ts script: --shorts Flag, Ausgabe "Shorts: AN/AUS"
- walkforward.test.ts: allowShort: false ergänzt

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-09 21:33:58 +00:00
0e1b477e27 feat: Short-Seite — Indikator, Strategie, Chandelier, Sizing, Portfolio
- donchianLow: Spiegelbild von donchianHigh (tiefstes Tief der N Candles vor i)
- evaluateAt(allowShort=false): Short-Signal wenn close < donchianLow && close < trendEma
- IndicatorSet + Evaluation erweitert um donchianLow; signal: 'long'|'short'|null
- updateChandelierShort: ll + mult×ATR, wandert nur abwärts
- sizePosition(side): Short ignoriert Cash-Cap, stopDist = stop − entry
- Portfolio: highestHigh → trailExtreme; open/close/equity für Shorts; side auf Position + ClosedTrade

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-09 21:29:30 +00:00
26166c5f3c fix: Gate-Check 4 — Fenster <5 Trades maskieren keine Verstöße mehr
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-09 21:12:11 +00:00
986ec4446d fix: Backfill-Stall-Guard gegen Endlosschleife am History-Ende 2026-06-09 21:03:34 +00:00
1a1e2301a5 feat: Walk-Forward-CLI mit Gate-Report und Run-Persistenz
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-09 20:58:32 +00:00
a007c9dc6f feat: Crypto.com-Client und Backfill-Script
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-09 20:58:27 +00:00
27a10dc794 feat: DB-Schema (candles, backtest_runs), Migration, CandleStore 2026-06-09 20:56:24 +00:00
f318446ebf test: Walk-Forward End-to-End-Leak-Test, Cold-Start dokumentiert
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-09 20:54:01 +00:00
f19f5592fa feat: Walk-Forward-Runner mit Grid-Search und Deploy-Gate
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-09 20:46:21 +00:00
25a37f74db test: Entry-Candle-Stop-Semantik + maxPositions-Determinismus festgenagelt, Grenzen dokumentiert
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-09 20:43:44 +00:00
8ad1516665 feat: Backtest-Runner (4h-Entries, 15m-Stop-Checks, deterministisch)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-09 20:37:42 +00:00
2fa4695f1b fix: Review-Fixes Sizing/Portfolio (invalid_stop-Guard, Doppel-Open-Schutz, Tests) 2026-06-09 20:35:04 +00:00
d738a2c9d0 feat: Backtest-Metriken (PF, WinRate, MaxDD, AvgR) 2026-06-09 20:31:21 +00:00
edf6793695 feat: Paper-Portfolio mit Fees, Slippage, R-Multiples 2026-06-09 20:31:00 +00:00
7d576c61c5 feat: risikobasiertes Position-Sizing mit Caps 2026-06-09 20:30:16 +00:00
d54b11293d refactor: Review-Fixes Strategie (unbenutzter Param, Range-Guard, Ratchet-Test) 2026-06-09 20:28:43 +00:00
b4388c959c feat: Chandelier-Trailing-Stop 2026-06-09 20:22:46 +00:00
8a5a6f4eb1 feat: Donchian-Trend-Strategie (Entry-Evaluation) 2026-06-09 20:22:14 +00:00
c2f1221eb9 feat: 4h-Aggregation, EMA, ATR, Donchian-High (TDD) 2026-06-09 20:18:53 +00:00
568e282b07 feat: Projekt-Skelett (Bun, TypeScript, Drizzle-Deps) 2026-06-09 20:18:06 +00:00
8298b522fc docs: Implementierungsplan Phase 1+2 (Fundament + Backtest/Walk-Forward bis Gate)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-09 20:17:09 +00:00
ee22f210a9 docs: Design-Spec trade-kuns (Multi-Pair Donchian-Trendfolge, Walk-Forward-Gate)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-09 20:04:44 +00:00