Replace day-trading bot with long-term accumulation signal model. Predicts optimal BUY times using forward return analysis at 7d/30d/90d horizons, scoring each candle 0-100. Primary metric is now cost_basis_improvement_pct (model buy price vs DCA). - train_and_backtest.py: regression models (XGBoost/LSTM hybrid), accumulation-focused features (price position, momentum, volatility, volume, cycle), forward return targets, signal quality backtesting - orchestrator.py: cost improvement scoring, signal count validation - analyzer.py: accumulation-focused LLM system prompt - dashboard: cost improvement display, signal metrics table - config: new accumulation-focused parameters Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
53 lines
1.2 KiB
JSON
53 lines
1.2 KiB
JSON
{
|
|
"model_type": "hybrid",
|
|
"features": {
|
|
"use_price_position": true,
|
|
"use_momentum": true,
|
|
"use_volatility": true,
|
|
"use_volume": true,
|
|
"use_cycle": true,
|
|
"use_pca": true,
|
|
"pca_variance": 0.95,
|
|
"use_scaler": true
|
|
},
|
|
"target": {
|
|
"type": "regression",
|
|
"forward_periods_1h": [168, 720, 2160],
|
|
"forward_periods_4h": [42, 180, 540],
|
|
"weights": [0.2, 0.3, 0.5],
|
|
"score_range": [0, 100]
|
|
},
|
|
"hyperparameters": {
|
|
"learning_rate": 0.01,
|
|
"max_depth": 5,
|
|
"n_estimators": 500,
|
|
"subsample": 0.8,
|
|
"colsample_bytree": 0.8,
|
|
"min_child_weight": 10,
|
|
"gamma": 0.3,
|
|
"reg_alpha": 0.5,
|
|
"reg_lambda": 3.0,
|
|
"lstm_hidden_size": 128,
|
|
"lstm_num_layers": 2,
|
|
"lstm_dropout": 0.3,
|
|
"lstm_epochs": 100,
|
|
"lstm_batch_size": 64,
|
|
"lstm_sequence_length": 30,
|
|
"lstm_patience": 10
|
|
},
|
|
"strategy": {
|
|
"strong_buy_threshold": 80,
|
|
"good_buy_threshold": 70,
|
|
"poor_threshold": 30
|
|
},
|
|
"training": {
|
|
"rolling_window": true,
|
|
"rolling_train_size": 2500,
|
|
"rolling_test_size": 300,
|
|
"walk_forward_windows": 5,
|
|
"train_pct": 0.7,
|
|
"validation_pct": 0.15,
|
|
"test_pct": 0.15
|
|
},
|
|
"timeframe": "4h"
|
|
} |