forked from robcarver17/pysystemtrade
-
Notifications
You must be signed in to change notification settings - Fork 0
/
futuresconfig.yaml
137 lines (136 loc) · 2.73 KB
/
futuresconfig.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
#YAML
#
# Raw data
#
#
# Trading rules
#
#
trading_rules:
ewmac2_8:
function: systems.provided.futures_chapter15.rules.ewmac
data:
- "rawdata.get_daily_prices"
- "rawdata.daily_returns_volatility"
other_args:
Lfast: 2
Lslow: 8
forecast_scalar: 10.6
ewmac4_16:
function: systems.provided.futures_chapter15.rules.ewmac
data:
- "rawdata.get_daily_prices"
- "rawdata.daily_returns_volatility"
other_args:
Lfast: 4
Lslow: 16
forecast_scalar: 7.5
ewmac8_32:
function: systems.provided.futures_chapter15.rules.ewmac
data:
- "rawdata.get_daily_prices"
- "rawdata.daily_returns_volatility"
other_args:
Lfast: 8
Lslow: 32
forecast_scalar: 5.3
ewmac16_64:
function: systems.provided.futures_chapter15.rules.ewmac
data:
- "rawdata.get_daily_prices"
- "rawdata.daily_returns_volatility"
other_args:
Lfast: 16
Lslow: 64
forecast_scalar: 3.75
ewmac32_128:
function: systems.provided.futures_chapter15.rules.ewmac
data:
- "rawdata.get_daily_prices"
- "rawdata.daily_returns_volatility"
other_args:
Lfast: 32
Lslow: 128
forecast_scalar: 2.65
ewmac64_256:
function: systems.provided.futures_chapter15.rules.ewmac
data:
- "rawdata.get_daily_prices"
- "rawdata.daily_returns_volatility"
other_args:
Lfast: 64
Lslow: 256
forecast_scalar: 1.87
carry:
function: systems.provided.futures_chapter15.rules.carry2
data:
- "rawdata.raw_carry"
other_args:
smooth_days: 90
forecast_scalar: 30
forecast_cap: 20.0
#
# forecast combination
#
forecast_weights:
ewmac16_64: 0.21
ewmac32_128: 0.08
ewmac64_256: 0.21
carry: 0.50
forecast_div_multiplier: 1.31
#
# Capital correction
#
percentage_vol_target: 20.0
notional_trading_capital: 250000
base_currency: "USD"
#
# Portfolio creation
#
instrument_weights:
EDOLLAR: 0.117
US10: 0.117
EUROSTX: 0.20
V2X: 0.098
MXP: 0.233
CORN: 0.233
instrument_div_multiplier: 1.89
rule_groups:
ewmac_fast:
- ewmac2_8
- ewmac4_16
ewmac_medium:
- ewmac8_32
- ewmac16_64
ewmac_slow:
- ewmac32_128
- ewmac64_256
carry:
- carry
style_groups:
trend:
- ewmac_fast
- ewmac_medium
- ewmac_slow
carry:
- carry
countries:
US:
- EDOLLAR
- US10
Europe:
- EUROSTX
- V2X
Other:
- MXP
- CORN
asset_classes:
Rates:
- EDOLLAR
- US10
Risky:
- EUROSTX
- V2X
- MXP
Other:
- CORN