Files
remizov-trader/experiments/autoresearch/ideas.md
T
anorandClaude Opus 4.6 0286dc4322 feat: autoresearch — sweep runner, dashboard, реалистичный бэктест
- runner.py: grid search по параметрам (shift, stop_mult, K, lr, cooldown) для 20 монет
- dashboard.py + dashboard.html: real-time web-дашборд (FastAPI + SSE + Chart.js)
  - динамические asset filter pills, asset summary, sortable table
- evaluate.py: бэктест с 4 фиксами trading best practices:
  - стопы по OHLCV low/high вместо close (intra-bar stop-outs)
  - exit at stop_price с учётом gap-down (fill at open if worse)
  - Sharpe: sqrt(365) вместо sqrt(252), PnL распределён по дням удержания
  - out-of-sample holdout split (60% val / 40% OOS от test периода)
- dataset.py: добавлены 14 новых Bybit USDC пар (XRP, AVAX, LINK, UNI, ATOM, LTC, NEAR, APT, FIL, ARB, OP, SUI, INJ, SEI)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 18:41:07 +10:00

2.3 KiB
Raw Blame History

Experiment Ideas — Autoresearch Strategy Optimization

1. Parameter Sweeps (одномерные)

Parameter Values to try
window_size 32, 48, 64, 96, 128
shift 3, 5, 10, 14, 16, 24, 32
K 2, 3, 4, 5, 8
epochs 50, 100, 200, 300, 500
lr 0.001, 0.003, 0.005, 0.01, 0.03
corr_thresh 0.2, 0.3, 0.4, 0.5, 0.6, 0.7 (with shape_confirm=True)
stop_mult 0.75, 1.0, 1.25, 1.5, 2.0, 2.5, 3.0
stop_scale 0.5, 0.75, 1.0, 1.5, 2.0
cooldown_bars 0, 3, 5, 7, 10, 14, 20
min_confidence 0.0, 0.5, 1.0, 1.5, 2.0, 3.0
leverage 1, 2, 3, 5

After finding best single-parameter values, combine:

  • Top-3 shift × Top-3 window_size × Top-2 K = 18 combinations
  • Best stop_mult × stop_scale × trailing_stop = ~12 combinations

3. Feature Toggle Combinations

  • shape_confirm=True + various corr_thresh
  • regime_adaptive=True + various base params
  • trailing_stop=True/False + various stop_mult
  • All toggle combos: 2³ = 8 configs × best params

4. Custom generate_signal() in strategy.py

Filters:

  • Momentum filter — enter only if prediction confirmed N bars in a row
  • Trend alignment — long only if price > SMA(N), short if price < SMA(N)
  • Volatility filter — skip trade when ATR above/below threshold
  • Prediction strength filter — enter only when |prediction| > threshold

Multi-window:

  • Two windows (long for trend + short for entry)
  • Ensemble — average signal from 2-3 models with different window_size
  • Voting from multiple models

Dynamic params:

  • Adaptive stop_mult based on current ATR
  • Dynamic leverage based on confidence
  • Adaptive cooldown based on volatility

Exit logic:

  • Time-based exit (close after N bars)
  • Prediction reversal exit (exit when model changes direction)

5. Model hyperparams (requires evaluate.py support)

  • n_steps: 10, 20, 30, 50
  • total_time: 0.25, 0.5, 1.0
  • use_sde: True/False

6. Meta-strategies

  • Bayesian-style search: analyze results.tsv, pick next point based on patterns
  • Ablation study: start with best config, remove one component at a time
  • Robustness testing: run best config 5-10 times, check Sharpe stability
  • Per-asset optimization: each asset has its own optimal params