added leverage, better training

This commit is contained in:
Dobromir Popov
2025-06-26 13:46:36 +03:00
parent 3a5a1056c4
commit b7ccd0f97b
8 changed files with 481 additions and 87 deletions

View File

@ -153,43 +153,28 @@ trading:
# MEXC Trading API Configuration
mexc_trading:
enabled: true # Set to true to enable live trading
trading_mode: "simulation" # Options: "simulation", "testnet", "live"
# - simulation: No real trades, just logging (safest)
# - testnet: Use exchange testnet if available (MEXC doesn't have true testnet)
# - live: Execute real trades with real money
api_key: "" # Set in .env file as MEXC_API_KEY
api_secret: "" # Set in .env file as MEXC_SECRET_KEY
enabled: true
trading_mode: simulation # simulation, testnet, live
# FIXED: Meaningful position sizes for learning
base_position_usd: 25.0 # $25 base position (was $1)
max_position_value_usd: 50.0 # $50 max position (was $1)
min_position_value_usd: 10.0 # $10 min position (was $0.10)
# Position sizing (conservative for live trading)
max_position_value_usd: 10.0 # Maximum $1 per position for testing
min_position_value_usd: 5 # Minimum $0.10 per position
position_size_percent: 0.01 # 1% of balance per trade (conservative)
# Risk management
max_daily_loss_usd: 5.0 # Stop trading if daily loss exceeds $5
max_concurrent_positions: 3 # Only 1 position at a time for testing
max_trades_per_hour: 600 # Maximum 60 trades per hour
min_trade_interval_seconds: 30 # Minimum between trades
max_daily_trades: 100
max_daily_loss_usd: 200.0
max_concurrent_positions: 3
min_trade_interval_seconds: 30
# Order configuration
order_type: "limit" # Use limit orders (MEXC ETHUSDC requires LIMIT orders)
timeout_seconds: 30 # Order timeout
retry_attempts: 0 # Number of retry attempts for failed orders
order_type: market # market or limit
# Safety features
require_confirmation: false # No manual confirmation for live trading
emergency_stop: false # Emergency stop all trading
# Supported symbols for live trading (ONLY ETH)
allowed_symbols:
- "ETH/USDT" # MAIN TRADING PAIR - Only this pair is actively traded
# Trading hours (UTC)
trading_hours:
enabled: false # Disable time restrictions for crypto
start_hour: 0 # 00:00 UTC
end_hour: 23 # 23:00 UTC
# Enhanced fee structure for better calculation
trading_fees:
maker_fee: 0.0002 # 0.02% maker fee
taker_fee: 0.0006 # 0.06% taker fee
default_fee: 0.0006 # Default to taker fee
# Memory Management
memory: