|
1 | 1 | {"backtest": {"base_dir": "backtests",
|
2 |
| - "combine_ohlcvs": false, |
| 2 | + "combine_ohlcvs": true, |
3 | 3 | "compress_cache": true,
|
4 | 4 | "end_date": "now",
|
5 | 5 | "exchanges": ["binance", "bybit"],
|
6 | 6 | "gap_tolerance_ohlcvs_minutes": 120,
|
7 | 7 | "start_date": "2020-04-01",
|
8 | 8 | "starting_balance": 100000,
|
9 | 9 | "use_btc_collateral": true},
|
10 |
| - "bot": {"long": {"close_grid_markup_range": 0.0006756, |
11 |
| - "close_grid_min_markup": 0.001573, |
12 |
| - "close_grid_qty_pct": 0.2298, |
13 |
| - "close_trailing_grid_ratio": -0.381, |
14 |
| - "close_trailing_qty_pct": 0.5509, |
15 |
| - "close_trailing_retracement_pct": 0.01716, |
16 |
| - "close_trailing_threshold_pct": 0.001962, |
17 |
| - "ema_span_0": 220.4, |
18 |
| - "ema_span_1": 1107, |
| 10 | + "bot": {"long": {"close_grid_markup_end": 0.01754, |
| 11 | + "close_grid_markup_start": 0.01959, |
| 12 | + "close_grid_qty_pct": 0.4406, |
| 13 | + "close_trailing_grid_ratio": 0.9476, |
| 14 | + "close_trailing_qty_pct": 0.5662, |
| 15 | + "close_trailing_retracement_pct": 0.0003578, |
| 16 | + "close_trailing_threshold_pct": 0.002069, |
| 17 | + "ema_span_0": 206.3, |
| 18 | + "ema_span_1": 718.5, |
19 | 19 | "enforce_exposure_limit": true,
|
20 |
| - "entry_grid_double_down_factor": 2.805, |
21 |
| - "entry_grid_spacing_pct": 0.03194, |
22 |
| - "entry_grid_spacing_weight": 0.4534, |
23 |
| - "entry_initial_ema_dist": -0.009122, |
24 |
| - "entry_initial_qty_pct": 0.009071, |
25 |
| - "entry_trailing_double_down_factor": 2.876, |
26 |
| - "entry_trailing_grid_ratio": -0.0711, |
27 |
| - "entry_trailing_retracement_pct": 0.03419, |
28 |
| - "entry_trailing_threshold_pct": -0.005534, |
29 |
| - "filter_noisiness_rolling_window": 10.0, |
30 |
| - "filter_volume_drop_pct": 0.5, |
31 |
| - "filter_volume_rolling_window": 360.0, |
| 20 | + "entry_grid_double_down_factor": 3.678, |
| 21 | + "entry_grid_spacing_pct": 0.01505, |
| 22 | + "entry_grid_spacing_weight": 4.019, |
| 23 | + "entry_initial_ema_dist": 0.00297, |
| 24 | + "entry_initial_qty_pct": 0.004931, |
| 25 | + "entry_trailing_double_down_factor": 0.4647, |
| 26 | + "entry_trailing_grid_ratio": -0.04499, |
| 27 | + "entry_trailing_retracement_pct": 0.001776, |
| 28 | + "entry_trailing_threshold_pct": 0.02659, |
| 29 | + "filter_noisiness_rolling_window": 133.5, |
| 30 | + "filter_volume_drop_pct": 0.7034, |
| 31 | + "filter_volume_rolling_window": 1628, |
32 | 32 | "n_positions": 1,
|
33 |
| - "total_wallet_exposure_limit": 6.194, |
34 |
| - "unstuck_close_pct": 0.01358, |
35 |
| - "unstuck_ema_dist": -0.05594, |
36 |
| - "unstuck_loss_allowance_pct": 0.04186, |
37 |
| - "unstuck_threshold": 0.6487}, |
38 |
| - "short": {"close_grid_markup_range": 0, |
39 |
| - "close_grid_min_markup": 0.001, |
| 33 | + "total_wallet_exposure_limit": 8.735, |
| 34 | + "unstuck_close_pct": 0.002663, |
| 35 | + "unstuck_ema_dist": -0.06826, |
| 36 | + "unstuck_loss_allowance_pct": 0.00209, |
| 37 | + "unstuck_threshold": 0.5601}, |
| 38 | + "short": {"close_grid_markup_end": 0.001, |
| 39 | + "close_grid_markup_start": 0.001, |
40 | 40 | "close_grid_qty_pct": 0.05,
|
41 |
| - "close_trailing_grid_ratio": 0, |
| 41 | + "close_trailing_grid_ratio": -1, |
42 | 42 | "close_trailing_qty_pct": 0.05,
|
43 | 43 | "close_trailing_retracement_pct": 0.0001,
|
44 |
| - "close_trailing_threshold_pct": 0, |
| 44 | + "close_trailing_threshold_pct": -0.01, |
45 | 45 | "ema_span_0": 200,
|
46 | 46 | "ema_span_1": 200,
|
47 | 47 | "enforce_exposure_limit": true,
|
48 | 48 | "entry_grid_double_down_factor": 0.01,
|
49 | 49 | "entry_grid_spacing_pct": 0.001,
|
50 | 50 | "entry_grid_spacing_weight": 0,
|
51 |
| - "entry_initial_ema_dist": 0, |
| 51 | + "entry_initial_ema_dist": -0.1, |
52 | 52 | "entry_initial_qty_pct": 0.004,
|
53 | 53 | "entry_trailing_double_down_factor": 0.01,
|
54 |
| - "entry_trailing_grid_ratio": 0, |
| 54 | + "entry_trailing_grid_ratio": -1, |
55 | 55 | "entry_trailing_retracement_pct": 0.0001,
|
56 |
| - "entry_trailing_threshold_pct": 0, |
| 56 | + "entry_trailing_threshold_pct": -0.01, |
57 | 57 | "filter_noisiness_rolling_window": 10,
|
58 | 58 | "filter_volume_drop_pct": 0.5,
|
59 | 59 | "filter_volume_rolling_window": 360,
|
60 | 60 | "n_positions": 0,
|
61 | 61 | "total_wallet_exposure_limit": 0.01,
|
62 | 62 | "unstuck_close_pct": 0.001,
|
63 |
| - "unstuck_ema_dist": 0, |
| 63 | + "unstuck_ema_dist": -0.1, |
64 | 64 | "unstuck_loss_allowance_pct": 0.001,
|
65 | 65 | "unstuck_threshold": 0.4}},
|
66 | 66 | "live": {"approved_coins": {"long": ["BTC"], "short": ["BTC"]},
|
|
77 | 77 | "max_n_cancellations_per_batch": 5,
|
78 | 78 | "max_n_creations_per_batch": 3,
|
79 | 79 | "max_n_restarts_per_day": 10,
|
80 |
| - "minimum_coin_age_days": 450, |
| 80 | + "minimum_coin_age_days": 365, |
81 | 81 | "ohlcvs_1m_rolling_window_days": 4,
|
82 | 82 | "ohlcvs_1m_update_after_minutes": 10,
|
83 | 83 | "pnls_max_lookback_days": 30,
|
84 | 84 | "price_distance_threshold": 0.002,
|
85 | 85 | "time_in_force": "good_till_cancelled",
|
86 | 86 | "user": "bybit_01"},
|
87 |
| - "optimize": {"bounds": {"long_close_grid_markup_range": [0, 0.03], |
88 |
| - "long_close_grid_min_markup": [0.001, 0.03], |
| 87 | + "optimize": {"bounds": {"long_close_grid_markup_end": [0.001, 0.03], |
| 88 | + "long_close_grid_markup_start": [0.001, 0.03], |
89 | 89 | "long_close_grid_qty_pct": [0.05, 1],
|
90 | 90 | "long_close_trailing_grid_ratio": [-1, 1],
|
91 | 91 | "long_close_trailing_qty_pct": [0.05, 1],
|
92 | 92 | "long_close_trailing_retracement_pct": [0.0001, 0.1],
|
93 | 93 | "long_close_trailing_threshold_pct": [-0.01, 0.1],
|
94 | 94 | "long_ema_span_0": [200, 1440],
|
95 | 95 | "long_ema_span_1": [200, 1440],
|
96 |
| - "long_entry_grid_double_down_factor": [0.01, 3], |
| 96 | + "long_entry_grid_double_down_factor": [0.01, 4], |
97 | 97 | "long_entry_grid_spacing_pct": [0.001, 0.06],
|
98 | 98 | "long_entry_grid_spacing_weight": [0, 10],
|
99 | 99 | "long_entry_initial_ema_dist": [-0.1, 0.003],
|
100 | 100 | "long_entry_initial_qty_pct": [0.004, 0.02],
|
101 |
| - "long_entry_trailing_double_down_factor": [0.01, 3], |
| 101 | + "long_entry_trailing_double_down_factor": [0.01, 4], |
102 | 102 | "long_entry_trailing_grid_ratio": [-1, 1],
|
103 | 103 | "long_entry_trailing_retracement_pct": [0.0001, 0.1],
|
104 | 104 | "long_entry_trailing_threshold_pct": [-0.01, 0.1],
|
105 | 105 | "long_filter_noisiness_rolling_window": [10, 360],
|
106 | 106 | "long_filter_volume_drop_pct": [0.5, 1],
|
107 | 107 | "long_filter_volume_rolling_window": [360, 2880],
|
108 |
| - "long_n_positions": [7, 30], |
109 |
| - "long_total_wallet_exposure_limit": [0.01, 10], |
| 108 | + "long_n_positions": [1, 1], |
| 109 | + "long_total_wallet_exposure_limit": [0.5, 20], |
110 | 110 | "long_unstuck_close_pct": [0.001, 0.1],
|
111 | 111 | "long_unstuck_ema_dist": [-0.1, 0.01],
|
112 | 112 | "long_unstuck_loss_allowance_pct": [0.001, 0.05],
|
113 | 113 | "long_unstuck_threshold": [0.4, 0.95],
|
114 |
| - "short_close_grid_markup_range": [0, 0.03], |
115 |
| - "short_close_grid_min_markup": [0.001, 0.03], |
| 114 | + "short_close_grid_markup_end": [0.001, 0.03], |
| 115 | + "short_close_grid_markup_start": [0.001, 0.03], |
116 | 116 | "short_close_grid_qty_pct": [0.05, 1],
|
117 | 117 | "short_close_trailing_grid_ratio": [-1, 1],
|
118 | 118 | "short_close_trailing_qty_pct": [0.05, 1],
|
119 | 119 | "short_close_trailing_retracement_pct": [0.0001, 0.1],
|
120 | 120 | "short_close_trailing_threshold_pct": [-0.01, 0.1],
|
121 | 121 | "short_ema_span_0": [200, 1440],
|
122 | 122 | "short_ema_span_1": [200, 1440],
|
123 |
| - "short_entry_grid_double_down_factor": [0.01, 3], |
| 123 | + "short_entry_grid_double_down_factor": [0.01, 4], |
124 | 124 | "short_entry_grid_spacing_pct": [0.001, 0.06],
|
125 | 125 | "short_entry_grid_spacing_weight": [0, 10],
|
126 | 126 | "short_entry_initial_ema_dist": [-0.1, 0.003],
|
127 | 127 | "short_entry_initial_qty_pct": [0.004, 0.02],
|
128 |
| - "short_entry_trailing_double_down_factor": [0.01, 3], |
| 128 | + "short_entry_trailing_double_down_factor": [0.01, 4], |
129 | 129 | "short_entry_trailing_grid_ratio": [-1, 1],
|
130 | 130 | "short_entry_trailing_retracement_pct": [0.0001, 0.1],
|
131 | 131 | "short_entry_trailing_threshold_pct": [-0.01, 0.1],
|
|
139 | 139 | "short_unstuck_loss_allowance_pct": [0.001, 0.05],
|
140 | 140 | "short_unstuck_threshold": [0.4, 0.95]},
|
141 | 141 | "compress_results_file": true,
|
142 |
| - "crossover_probability": 0.7, |
| 142 | + "crossover_probability": 0.64, |
143 | 143 | "enable_overrides": [],
|
144 | 144 | "iters": 300000,
|
145 | 145 | "limits": {"btc_drawdown_worst": 0.333,
|
146 | 146 | "loss_profit_ratio": 0.9,
|
147 |
| - "position_unchanged_hours_max": 900.0}, |
148 |
| - "mutation_probability": 0.2, |
| 147 | + "position_unchanged_hours_max": 900}, |
| 148 | + "mutation_probability": 0.34, |
149 | 149 | "n_cpus": 5,
|
150 | 150 | "population_size": 500,
|
151 | 151 | "round_to_n_significant_digits": 4,
|
152 |
| - "scoring": ["btc_adg_w", "btc_mdg_w", "btc_omega_ratio"], |
153 |
| - "write_all_results": true}} |
| 152 | + "scoring": ["btc_adg_w", |
| 153 | + "btc_mdg_w", |
| 154 | + "btc_sterling_ratio", |
| 155 | + "loss_profit_ratio"], |
| 156 | + "write_all_results": false}} |
0 commit comments