- Новый FuturesExecutor (ccxt bybit linear): open_long/short, close_position, place_safety_stop с side, ensure_leverage (cached) - Config: market_type, retrain_enabled, is_futures(), commission_for() - Executor: routing spot/futures, SHORT разрешён для futures, time_exit в барах (не днях), commission по типу рынка - Notify: USDT balance, skip futures в coin positions, dynamic timeframe - Config.yaml: UNI+ATOM+SUI futures 1h, mode=paper - 26 новых тестов (всего 97) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
120 lines
3.0 KiB
YAML
120 lines
3.0 KiB
YAML
# RemizovTrader Configuration
|
|
|
|
mode: paper # paper | live — start with paper for futures validation
|
|
|
|
capital:
|
|
initial: 16.0 # per-asset (new assets)
|
|
total: 177.0 # actual total capital deposited
|
|
currency: USDT
|
|
|
|
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: 3 # 3 assets: UNI+ATOM+SUI
|
|
leverage: 1 # 1x — grid search best results all at leverage=1
|
|
stop_scale: 1.0 # global default; per-asset overrides below
|
|
time_exit: true # CRITICAL: backtest uses time exit for futures
|
|
safety_stop_pct: 0.10 # 10% hard stop on exchange (flash crash protection)
|
|
min_confidence: 0.0 # grid search best: no confidence filter
|
|
|
|
assets:
|
|
# Futures long+short 1x 1h — backtest Sharpe 4-6x
|
|
- ticker: UNI-USD
|
|
symbol: "UNI/USDT:USDT"
|
|
market_type: futures
|
|
retrain_enabled: false
|
|
window_size: 64
|
|
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: 1h
|
|
|
|
- ticker: ATOM-USD
|
|
symbol: "ATOM/USDT:USDT"
|
|
market_type: futures
|
|
retrain_enabled: false
|
|
window_size: 64
|
|
weight: 0.33
|
|
leverage: 1
|
|
K: 3
|
|
shift: 10 # backtest: shift 10 beats 14 for ATOM
|
|
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: 1h
|
|
|
|
- ticker: SUI-USD
|
|
symbol: "SUI/USDT:USDT"
|
|
market_type: futures
|
|
retrain_enabled: false
|
|
window_size: 64
|
|
weight: 0.33
|
|
leverage: 1
|
|
K: 2
|
|
shift: 10
|
|
epochs: 300
|
|
lr: 0.005
|
|
stop_mult: 1.0
|
|
stop_scale: 1.0
|
|
cooldown_bars: 3
|
|
min_confidence: 0.0
|
|
shape_confirm: false
|
|
corr_thresh: 0.5
|
|
timeframe: 1h
|
|
|
|
model:
|
|
window_size: 64
|
|
n_steps: 20
|
|
total_time: 0.5
|
|
shift: 14
|
|
epochs: 300
|
|
finetune_epochs: 50
|
|
lr: 0.005
|
|
|
|
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: 1h # 1h — matches futures backtest timeframe
|
|
check_time: "22:00" # UTC (used for daily, ignored for interval)
|