82c68fa8b0
- Switch to oil stocks (USO, XLE, OXY, CVX, XOM, SLB, HAL, DVN, MPC, VLO) - Add JPY/USD forex pairs for Japan targeting - 7-action RL space: long, short, close (was 5 long-only actions) - Bollinger Band mean-reversion scalp entries both directions - 5-minute candles with 60-second cycles for scalping - 35 features (added VWAP, fast RSI, fast ROC for scalping) - Short position support in backtest, executor, and RL environment - GA tuned for scalping: tighter SL/TP, shorter hold times Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
88 lines
2.1 KiB
JSON
88 lines
2.1 KiB
JSON
{
|
|
"alpaca": {
|
|
"api_key": "PKIJPFNMNZ3YKYP765XD6ZPPJY",
|
|
"secret_key": "42PuPEYG2nGbeMJiogiFKKLyPtkEHKtwwXJamRKpf4tL",
|
|
"base_url": "https://paper-api.alpaca.markets"
|
|
},
|
|
"oanda": {
|
|
"api_token": "860db6509bc2f430b0cbfe197012a628-310ea40d575131302e6a30c958260837",
|
|
"account_id": "101-001-38661051-001",
|
|
"practice": true
|
|
},
|
|
"trading": {
|
|
"symbols": [
|
|
"USO", "XLE", "OXY", "CVX", "XOM",
|
|
"SLB", "HAL", "DVN", "MPC", "VLO"
|
|
],
|
|
"forex_symbols": [
|
|
"USD_JPY", "EUR_JPY", "GBP_JPY", "CAD_JPY",
|
|
"AUD_JPY", "EUR_USD", "GBP_USD", "USD_CAD"
|
|
],
|
|
"cycle_interval_seconds": 60,
|
|
"initial_capital": 100,
|
|
"target_capital": 1000,
|
|
"commission_rate": 0.0,
|
|
"min_trade_value": 3,
|
|
"require_approval": false,
|
|
"max_position_pct": 12,
|
|
"max_concurrent_positions": 12
|
|
},
|
|
"safety": {
|
|
"max_position_pct": 12,
|
|
"max_concurrent_positions": 12,
|
|
"max_daily_trades": 50,
|
|
"max_daily_loss_pct": 4,
|
|
"max_total_loss_pct": 15,
|
|
"min_trade_value": 3,
|
|
"initial_capital": 100
|
|
},
|
|
"rl": {
|
|
"gamma": 0.97,
|
|
"epsilon_start": 1.0,
|
|
"epsilon_min": 0.08,
|
|
"epsilon_decay": 0.9990,
|
|
"learning_rate": 0.0005,
|
|
"batch_size": 128,
|
|
"memory_size": 100000,
|
|
"target_update_freq": 50,
|
|
"hidden_dim": 128,
|
|
"live_epsilon": 0.12,
|
|
"train_interval_hours": 1,
|
|
"checkpoint_interval_hours": 1
|
|
},
|
|
"ga": {
|
|
"population_size": 60,
|
|
"elite_count": 8,
|
|
"mutation_rate": 0.20,
|
|
"mutation_strength": 0.25,
|
|
"crossover_rate": 0.7,
|
|
"tournament_size": 5,
|
|
"evolution_interval_hours": 3,
|
|
"generations_per_cycle": 15
|
|
},
|
|
"backtest": {
|
|
"interval_seconds": 900,
|
|
"lookback_days": 14,
|
|
"initial_capital": 100
|
|
},
|
|
"cache": {
|
|
"warmup_lookback_days": 60,
|
|
"update_interval_seconds": 60,
|
|
"timeframes": ["5m", "1h"]
|
|
},
|
|
"database": {
|
|
"path": "data/biggfish.db"
|
|
},
|
|
"reporting": {
|
|
"dashboard_interval_seconds": 60,
|
|
"save_to_file": true
|
|
},
|
|
"telegram": {
|
|
"enabled": true,
|
|
"bot_token": "8499352620:AAGVxZ2krfHS219xGRb-1-yGthMs45GjNg4",
|
|
"chat_id": "637130179",
|
|
"daily_report_hour": 21,
|
|
"trade_alerts": true
|
|
}
|
|
}
|