Files
remizov-trader/config.yaml
T
anorandClaude Opus 4.6 acdcdba9d0 feat: stop_scale=0.5, отключение time_exit, safety stop на бирже
- config: stop_scale (множитель стоп-дистанции), time_exit (вкл/выкл),
  safety_stop_pct (защитный стоп на бирже от flash crash)
- executor: применение stop_scale, условный time_exit, размещение и
  отмена safety stop при открытии/закрытии live позиции
- spot: place_safety_stop() и cancel_order() для Bybit
- state: миграция safety_stop_order_id в positions

Бэктест exp16e: stop_scale=0.5 + no time_exit → Sharpe 4.15 (vs 2.45),
DD 5.0% (vs 8.4%), +$13.20/мес (vs $4.15) — все 7 активов прибыльные.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 02:15:55 +10:00

105 lines
2.4 KiB
YAML

# RemizovTrader Configuration
mode: live # paper | live
capital:
initial: 16.0 # per-asset (new assets)
total: 114.0 # actual total capital deposited
currency: USDC
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: 7 # 7 assets, one position per asset
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 # exp16e: no forced close, hold until stop (Sharpe +70%)
safety_stop_pct: 0.10 # 10% hard stop on exchange (flash crash protection)
assets:
- ticker: ETH-USD
symbol: ETH/USDC
timeframe: 2h
window_size: 64
weight: 0.158
leverage: 2
- ticker: SOL-USD
symbol: SOL/USDC
timeframe: 2h
window_size: 128
weight: 0.108
leverage: 2
- ticker: BTC-USD
symbol: BTC/USDC
window_size: 32
weight: 0.241
leverage: 2
- ticker: DOGE-USD
symbol: DOGE/USDC
window_size: 48
weight: 0.127
leverage: 2
- ticker: ADA-USD
symbol: ADA/USDC
window_size: 64
weight: 0.137
leverage: 2
- ticker: XRP-USD
symbol: XRP/USDC
window_size: 64
weight: 0.092
leverage: 2
- ticker: DOT-USD
symbol: DOT/USDC
window_size: 32
weight: 0.137
leverage: 2
model:
window_size: 64
n_steps: 20
total_time: 0.5
shift: 7
epochs: 200
finetune_epochs: 50
lr: 0.003
circuit_breaker:
atr_ratio_on: 3.0 # ATR14/ATR50 > 3 → pause
atr_ratio_off: 2.0 # ATR14/ATR50 < 2 → resume
max_drawdown: 0.20 # 20% DD → pause
dd_reset: 0.10 # 10% DD → resume
exchange:
name: bybit
data_source: exchange # "exchange" (ccxt/Bybit) or "yfinance"
api_key: "" # set via REMIZOV_API_KEY env var
api_secret: "" # set via REMIZOV_API_SECRET env var
testnet: false
web:
host: 0.0.0.0
port: 8090
telegram:
enabled: false
bot_token: "" # set via REMIZOV_TG_TOKEN env var
chat_id: ""
llm:
enabled: false
base_url: "https://api.z.ai/api/anthropic"
model: "glm-4.5-air"
api_key: "" # set via REMIZOV_LLM_TOKEN env var
sentiment_threshold: -0.3
schedule:
timeframe: 4h # global default (per-asset overrides above)
check_time: "22:00" # UTC (used for daily, ignored for interval)