190 lines
5.9 KiB
YAML
190 lines
5.9 KiB
YAML
# Enhanced Multi-Modal Trading System Configuration
|
|
|
|
# System Settings
|
|
system:
|
|
timezone: "Europe/Sofia" # Configurable timezone for all timestamps
|
|
log_level: "INFO" # DEBUG, INFO, WARNING, ERROR
|
|
session_timeout: 3600 # Session timeout in seconds
|
|
|
|
# Cold Start Mode Configuration
|
|
cold_start:
|
|
enabled: true # Enable cold start mode logic
|
|
inference_interval: 0.5 # Inference interval (seconds) during cold start
|
|
training_interval: 2 # Training interval (seconds) during cold start
|
|
heavy_adjustments: true # Allow more aggressive parameter/training adjustments
|
|
log_cold_start: true # Log when in cold start mode
|
|
|
|
# Exchange Configuration
|
|
exchanges:
|
|
primary: "bybit" # Primary exchange: mexc, deribit, binance, bybit
|
|
|
|
# Deribit Configuration
|
|
deribit:
|
|
enabled: true
|
|
test_mode: true # Use testnet for testing
|
|
trading_mode: "live" # simulation, testnet, live
|
|
supported_symbols: ["BTC-PERPETUAL", "ETH-PERPETUAL"]
|
|
base_position_percent: 5.0
|
|
max_position_percent: 20.0
|
|
leverage: 10.0 # Lower leverage for safer testing
|
|
trading_fees:
|
|
maker_fee: 0.0000 # 0.00% maker fee
|
|
taker_fee: 0.0005 # 0.05% taker fee
|
|
default_fee: 0.0005
|
|
|
|
# MEXC Configuration (secondary/backup)
|
|
mexc:
|
|
enabled: false # Disabled as secondary
|
|
test_mode: true
|
|
trading_mode: "simulation"
|
|
supported_symbols: ["ETH/USDT"] # MEXC-specific symbol format
|
|
base_position_percent: 5.0
|
|
max_position_percent: 20.0
|
|
leverage: 50.0
|
|
trading_fees:
|
|
maker_fee: 0.0002
|
|
taker_fee: 0.0006
|
|
default_fee: 0.0006
|
|
|
|
# Bybit Configuration
|
|
bybit:
|
|
enabled: true
|
|
test_mode: false # Use mainnet (your credentials are for live trading)
|
|
trading_mode: "simulation" # simulation, testnet, live
|
|
supported_symbols: ["BTCUSDT", "ETHUSDT"] # Bybit perpetual format
|
|
base_position_percent: 5.0
|
|
max_position_percent: 20.0
|
|
leverage: 10.0 # Conservative leverage for safety
|
|
leverage_applied_by_exchange: true # Broker already applies leverage to P&L
|
|
trading_fees:
|
|
maker_fee: 0.0001 # 0.01% maker fee
|
|
taker_fee: 0.0006 # 0.06% taker fee
|
|
default_fee: 0.0006
|
|
|
|
# Trading Symbols Configuration
|
|
# Primary trading pair: ETH/USDT (main signals generation)
|
|
# Reference pair: BTC/USDT (correlation analysis only, no trading signals)
|
|
symbols:
|
|
- "ETH/USDT" # MAIN TRADING PAIR - Generate signals and execute trades
|
|
- "BTC/USDT" # REFERENCE ONLY - For correlation analysis, no direct trading
|
|
|
|
# Timeframes for ultra-fast scalping (500x leverage)
|
|
timeframes:
|
|
- "1s" # Primary scalping timeframe
|
|
- "1m" # Short-term confirmation
|
|
- "1h" # Medium-term trend
|
|
- "1d" # Long-term direction
|
|
|
|
# Data Provider Settings
|
|
data:
|
|
provider: "binance"
|
|
cache_enabled: true
|
|
cache_dir: "cache"
|
|
historical_limit: 1000
|
|
real_time_enabled: true
|
|
websocket_reconnect: true
|
|
feature_engineering:
|
|
technical_indicators: true
|
|
market_regime_detection: true
|
|
volatility_analysis: true
|
|
|
|
# Model configurations have been moved to models.yml for better organization
|
|
# See models.yml for all model-specific settings including:
|
|
# - CNN configuration
|
|
# - RL/DQN configuration
|
|
# - Orchestrator settings
|
|
# - Training configuration
|
|
# - Enhanced training system
|
|
# - Real-time RL COB trader
|
|
|
|
# Universal Trading Configuration (applies to all exchanges)
|
|
trading:
|
|
enabled: true
|
|
|
|
# Position sizing as percentage of account balance
|
|
base_position_percent: 5.0 # 5% base position of account
|
|
max_position_percent: 20.0 # 20% max position of account
|
|
min_position_percent: 2.0 # 2% min position of account
|
|
simulation_account_usd: 100.0 # $100 simulation account balance
|
|
|
|
# Risk management
|
|
max_daily_loss_usd: 200.0
|
|
max_concurrent_positions: 3
|
|
min_trade_interval_seconds: 5 # Minimum time between trades
|
|
consecutive_loss_reduction_factor: 0.8 # Reduce position size by 20% after each consecutive loss
|
|
|
|
# Order configuration (can be overridden by exchange-specific settings)
|
|
order_type: market # market or limit
|
|
|
|
# Memory Management
|
|
memory:
|
|
total_limit_gb: 28.0 # Total system memory limit
|
|
model_limit_gb: 4.0 # Per-model memory limit
|
|
cleanup_interval: 1800 # Memory cleanup every 30 minutes
|
|
|
|
# Enhanced training and real-time RL configurations moved to models.yml
|
|
|
|
# Web Dashboard
|
|
web:
|
|
host: "127.0.0.1"
|
|
port: 8050
|
|
debug: false
|
|
update_interval: 500 # Milliseconds
|
|
chart_history: 200 # Number of candles to show
|
|
|
|
# Enhanced dashboard features
|
|
show_timeframe_analysis: true
|
|
show_confidence_scores: true
|
|
show_perfect_moves: true
|
|
show_rl_metrics: true
|
|
|
|
# Logging
|
|
logging:
|
|
level: "INFO"
|
|
format: "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
|
|
file: "logs/enhanced_trading.log"
|
|
max_size: 10485760 # 10MB
|
|
backup_count: 5
|
|
|
|
# Component-specific logging
|
|
orchestrator_level: "INFO"
|
|
cnn_level: "INFO"
|
|
rl_level: "INFO"
|
|
training_level: "INFO"
|
|
|
|
# Model Directories
|
|
model_dir: "models"
|
|
data_dir: "data"
|
|
cache_dir: "cache"
|
|
logs_dir: "logs"
|
|
|
|
# GPU/Performance
|
|
gpu:
|
|
enabled: true
|
|
memory_fraction: 0.8 # Use 80% of GPU memory
|
|
allow_growth: true # Allow dynamic memory allocation
|
|
|
|
# Monitoring and Alerting
|
|
monitoring:
|
|
tensorboard_enabled: true
|
|
tensorboard_log_dir: "logs/tensorboard"
|
|
metrics_interval: 300 # Log metrics every 5 minutes
|
|
performance_alerts: true
|
|
|
|
# Performance thresholds
|
|
min_confidence_threshold: 0.3
|
|
max_memory_usage: 0.9 # 90% of available memory
|
|
max_decision_latency: 10 # 10 seconds max per decision
|
|
|
|
# Backtesting (for future implementation)
|
|
backtesting:
|
|
start_date: "2024-01-01"
|
|
end_date: "2024-12-31"
|
|
initial_balance: 10000
|
|
commission: 0.0002
|
|
slippage: 0.0001
|
|
|
|
model_paths:
|
|
realtime_model: "NN/models/saved/optimized_short_term_model_realtime_best.pt"
|
|
ticks_model: "NN/models/saved/optimized_short_term_model_ticks_best.pt"
|
|
backup_model: "NN/models/saved/realtime_ticks_checkpoints/checkpoint_epoch_50449_backup/model.pt" |