-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yaml
68 lines (60 loc) · 1.16 KB
/
config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Futu OpenAPI Configuration
futu:
host: "localhost"
port: 11111
quote_ctx_timeout: 30
trade_ctx_timeout: 30
retry_count: 3
# Backtesting Configuration
backtest:
initial_capital: 100000.0
commission: 0.001
slippage: 0.0001
# Data Configuration
data:
storage:
type: "sqlite" # Options: sqlite, csv, memory
db_path: "data/market_data.db"
cache_size: 1000
timeframes:
- "1m"
- "3m"
- "5m"
- "15m"
- "30m"
- "60m"
- "2h"
- "4h"
- "day"
- "week"
- "mon"
# Strategy Default Parameters
strategy:
moving_average_cross:
short_window: 20
long_window: 50
min_volume: 1000000
rsi:
period: 14
overbought: 70
oversold: 30
macd:
fast_period: 12
slow_period: 26
signal_period: 9
btse:
lookback_period: 25
breakthrough_threshold: 3
ma_period: 2
momentum_period: 3
support_period: 9
leg:
ma_period: 17
vol_period: 88
rsi_period: 9
pattern_lookback: 120
# Logging Configuration
logging:
level: "INFO" # DEBUG, INFO, WARNING, ERROR, CRITICAL
file: "logs/backtest.log"
format: "%(asctime)s - %(name)s - %(levelname)s - %(message)s"