diff --git a/config.yaml b/config.yaml index 71821a8..71d5a9c 100644 --- a/config.yaml +++ b/config.yaml @@ -10,35 +10,74 @@ capital: risk: per_trade: 0.05 # 5% risk per trade max_position_pct: 0.40 # max 40% of equity (min $5 Bybit limit) - max_open_positions: 2 # 2 assets: ADA+DOGE only (exp26i/j) - leverage: 2 # 2x spot margin (exp12: DD ~14%, Sharpe stable) - stop_scale: 0.5 # exp16e: tighter stop = faster exit + cooldown (Sharpe 4.15) - time_exit: false # exp20/21 new data: TE=OFF +$134 vs TE=ON -$14. Hold until stop. + max_open_positions: 3 # 3 assets: UNI+ATOM+NEAR (autoresearch grid) + leverage: 1 # 1x — grid search best results all at leverage=1 + stop_scale: 1.0 # global default; per-asset overrides below + time_exit: false # grid search: hold until stop safety_stop_pct: 0.10 # 10% hard stop on exchange (flash crash protection) - min_confidence: 1.5 # exp22: |corr| × amplitude/ATR ≥ 1.5 (Sharpe 0.92→1.43, DD 20%→10.8%) + min_confidence: 0.0 # grid search best: no confidence filter assets: - - ticker: ADA-USD - symbol: ADA/USDC + # Grid search top-3 (OOS confirmed): exact params from autoresearch + - ticker: UNI-USD + symbol: UNI/USDC window_size: 64 - weight: 0.50 - leverage: 2 - K: 3 + weight: 0.34 + leverage: 1 + K: 2 + shift: 14 + epochs: 300 + lr: 0.005 + stop_mult: 1.25 # fixed ATR mult (no regime_adaptive) + stop_scale: 0.75 + cooldown_bars: 3 + min_confidence: 0.0 + shape_confirm: false + corr_thresh: 0.5 + timeframe: 4h - - ticker: DOGE-USD - symbol: DOGE/USDC - window_size: 48 - weight: 0.50 - leverage: 2 + - ticker: ATOM-USD + symbol: ATOM/USDC + window_size: 64 + weight: 0.33 + leverage: 1 + K: 3 + shift: 14 + epochs: 300 + lr: 0.005 + stop_mult: 0.75 + stop_scale: 1.0 + cooldown_bars: 3 + min_confidence: 0.0 + shape_confirm: false + corr_thresh: 0.5 + timeframe: 4h + + - ticker: NEAR-USD + symbol: NEAR/USDC + window_size: 64 + weight: 0.33 + leverage: 1 + K: 2 + shift: 16 + epochs: 300 + lr: 0.01 + stop_mult: 1.0 + stop_scale: 1.0 + cooldown_bars: -1 # -1 = use shift (16) as cooldown, matches test behavior + min_confidence: 0.0 + shape_confirm: false + corr_thresh: 0.5 + timeframe: 4h model: window_size: 64 n_steps: 20 total_time: 0.5 - shift: 7 - epochs: 200 + shift: 14 + epochs: 300 finetune_epochs: 50 - lr: 0.003 + lr: 0.005 circuit_breaker: atr_ratio_on: 3.0 # ATR14/ATR50 > 3 → pause @@ -70,5 +109,5 @@ llm: sentiment_threshold: -0.3 schedule: - timeframe: 4h # global default (per-asset overrides above) + timeframe: 4h # 4h — matches grid search test timeframe check_time: "22:00" # UTC (used for daily, ignored for interval) diff --git a/experiments/autoresearch/.gitignore b/experiments/autoresearch/.gitignore index 7b6eb91..d1bc1e6 100644 --- a/experiments/autoresearch/.gitignore +++ b/experiments/autoresearch/.gitignore @@ -1,6 +1,9 @@ runs/ +runs_wf/ best/ +best_wf/ run.log results.tsv status.json +status_wf.json __pycache__/ diff --git a/experiments/autoresearch/dashboard.html b/experiments/autoresearch/dashboard.html index 95fd643..acdab08 100644 --- a/experiments/autoresearch/dashboard.html +++ b/experiments/autoresearch/dashboard.html @@ -406,6 +406,33 @@ tr.best-row td { padding: 40px; } +/* ═══════════ Mode Tabs ═══════════ */ +.mode-tabs { + display: flex; + gap: 4px; + background: var(--bg-2); + padding: 3px; + border-radius: 8px; +} + +.mode-tab { + padding: 6px 16px; + border-radius: 6px; + font-size: 0.78rem; + font-weight: 600; + cursor: pointer; + background: transparent; + color: var(--text-1); + border: none; + font-family: var(--font); + transition: all .15s; +} + +.mode-tab.active { + background: var(--accent); + color: white; +} + /* ═══════════ Responsive ═══════════ */ @media (max-width: 900px) { main { grid-template-columns: 1fr; } @@ -419,6 +446,10 @@ tr.best-row td {
| ${r._idx} | +${(r.timestamp||'').replace('_',' ')} | +${tk.replace('-USD','')} | +${s.toFixed(4)} | +$${p.toFixed(2)} | +${res.wf_trades||0} | +${(res.worst_fold||0).toFixed(2)} | +${(res.sharpe_std||0).toFixed(2)} | +${keyParams(r.params)} | +