8ea1df771b
- Reward function: profit is king, big bonus for profitable closes, penalty for losses - Removed hold penalty (sitting in cash when uncertain is smart) - Directional diversity: max 3 positions same direction (was 13/13 shorts) - Tighter SL/TP: 1.0%/1.5% (was 2.5%/5.0%) - Max 6 concurrent positions (was 250) - RL: reset brain, live_epsilon 0.12 (was 0.03), hidden_dim 256 - GA: tighter ATR ranges, 150 population, higher mutation - Min backtest Sharpe 0.3 (was -0.5, allowing losing strategies) - Closed all 13 bleeding OANDA short positions
132 lines
2.7 KiB
JSON
132 lines
2.7 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": [
|
|
"SPY",
|
|
"QQQ",
|
|
"IWM",
|
|
"DIA",
|
|
"AAPL",
|
|
"MSFT",
|
|
"GOOGL",
|
|
"AMZN",
|
|
"NVDA",
|
|
"TSLA",
|
|
"META",
|
|
"JPM",
|
|
"BAC",
|
|
"GS",
|
|
"MS",
|
|
"JNJ",
|
|
"UNH",
|
|
"WMT",
|
|
"PG",
|
|
"XLE",
|
|
"CVX",
|
|
"XOM",
|
|
"LMT",
|
|
"RTX",
|
|
"NOC",
|
|
"GD",
|
|
"USO",
|
|
"GLD"
|
|
],
|
|
"forex_symbols": [
|
|
"USD_JPY",
|
|
"EUR_JPY",
|
|
"GBP_JPY",
|
|
"CAD_JPY",
|
|
"AUD_JPY",
|
|
"EUR_USD",
|
|
"GBP_USD",
|
|
"AUD_USD",
|
|
"NZD_USD",
|
|
"USD_CAD",
|
|
"USD_CHF",
|
|
"EUR_GBP",
|
|
"EUR_CHF"
|
|
],
|
|
"cycle_interval_seconds": 60,
|
|
"initial_capital": 200000,
|
|
"target_capital": 250000,
|
|
"commission_rate": 0.0,
|
|
"min_trade_value": 50,
|
|
"require_approval": false,
|
|
"max_position_pct": 8,
|
|
"max_concurrent_positions": 6,
|
|
"stop_loss_pct": 1.0,
|
|
"take_profit_pct": 1.5,
|
|
"min_backtest_sharpe": 0.3,
|
|
"max_correlated_positions": 3,
|
|
"max_daily_trades": 50
|
|
},
|
|
"safety": {
|
|
"max_position_pct": 10,
|
|
"max_concurrent_positions": 6,
|
|
"max_daily_trades": 50,
|
|
"max_daily_loss_pct": 2,
|
|
"max_total_loss_pct": 10,
|
|
"min_trade_value": 100,
|
|
"initial_capital": 200000
|
|
},
|
|
"rl": {
|
|
"gamma": 0.95,
|
|
"epsilon_start": 0.8,
|
|
"epsilon_min": 0.08,
|
|
"epsilon_decay": 0.9995,
|
|
"learning_rate": 0.0005,
|
|
"batch_size": 128,
|
|
"memory_size": 250000,
|
|
"target_update_freq": 50,
|
|
"hidden_dim": 256,
|
|
"live_epsilon": 0.12,
|
|
"train_interval_hours": 0.1,
|
|
"checkpoint_interval_hours": 1
|
|
},
|
|
"ga": {
|
|
"population_size": 150,
|
|
"elite_count": 8,
|
|
"mutation_rate": 0.4,
|
|
"mutation_strength": 0.3,
|
|
"crossover_rate": 0.7,
|
|
"tournament_size": 5,
|
|
"evolution_interval_hours": 0.5,
|
|
"generations_per_cycle": 30
|
|
},
|
|
"backtest": {
|
|
"interval_seconds": 600,
|
|
"lookback_days": 14,
|
|
"initial_capital": 200000
|
|
},
|
|
"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
|
|
}
|
|
} |