# Config Reference

All configuration is centralized in `config.py::Config`.

## Database

| Attribute            | Value                  | Notes                        |
|----------------------|------------------------|------------------------------|
| `DB_CONFIG.host`     | `nlbotinterface.ru`    | Remote MySQL                 |
| `DB_CONFIG.port`     | `3306`                 |                              |
| `DB_CONFIG.database` | `bitcoin_tickers`      |                              |

## Instruments

| Attribute      | Value                       |
|----------------|-----------------------------|
| `INSTRUMENTS`  | `['BITCOIN', 'EURUSD']`     |
| `TIMEFRAME`    | `H1`                        |

## Strategy Parameters

| Strategy         | Key Params                                      |
|------------------|-------------------------------------------------|
| `ema_rsi_trend`  | ema_fast=9, ema_slow=21, rsi_period=14, rsi_mid=50 |
| `bb_pa`          | bb_period=20, bb_std=2, min_shadow_ratio=0.6    |
| `rsi_divergence` | rsi_period=14, div_lookback=20                   |
| `macd_stoch`     | macd_fast=12, macd_slow=26, macd_signal=9, stoch_k=5, stoch_d=3 |
| `breakout_retest`| lookback=20                                      |

## Backtest Config

| Parameter         | Value   | Description                        |
|-------------------|---------|------------------------------------|
| `initial_balance` | 1000.0  | Starting balance                   |
| `trade_amount`    | 100.0   | Fixed amount per trade             |
| `payout_pct`      | 0.80    | 80% payout on win                  |
| `min_win_rate`    | 0.55    | Minimum win rate to pass filter    |
| `min_profit_factor`| 0.8    | Minimum profit factor              |
| `min_trades`      | 50      | Minimum trade count                |

## Directories

| Path        | Purpose                 |
|-------------|-------------------------|
| `data/`     | CSV cache + datasets    |
| `models/`   | Trained NN models       |
| `reports/`  | Backtest JSON results   |
| `plots/`    | Visualization output    |
