forked from robcarver17/pysystemtrade
-
Notifications
You must be signed in to change notification settings - Fork 0
/
defaults.yaml
177 lines (176 loc) · 3.81 KB
/
defaults.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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
# YAML
#
# Raw data
#
volatility_calculation:
func: "syscore.algos.robust_vol_calc"
days: 35
min_periods: 10
vol_abs_min: 0.0000000001
vol_floor: True
floor_min_quant: 0.05
floor_min_periods: 100
floor_days: 500
#
# forecast capping and scaling
# fixed values
#
forecast_scalar: 1.0
#
# with varying stuff
#
#
use_forecast_scale_estimates: False
#
forecast_scalar_estimate:
pool_instruments: True
func: "syscore.algos.forecast_scalar"
window: 250000
min_periods: 500
backfill: True
#
# capping
forecast_cap: 20.0
average_absolute_forecast: 10.0
#
#
# forecast combination
#
forecast_div_multiplier: 1.0
#
#
forecast_correlation_estimate:
pool_instruments: True
func: syscore.correlations.CorrelationEstimator
frequency: "W"
date_method: "expanding"
using_exponent: True
ew_lookback: 500
min_periods: 20
cleaning: True
rollyears: 20
floor_at_zero: True
#
forecast_div_mult_estimate:
func: syscore.divmultipliers.diversification_multiplier_from_list
ewma_span: 125
dm_max: 2.5
#
use_forecast_weight_estimates: False
use_forecast_div_mult_estimates: False
#
forecast_cost_estimates:
use_pooled_costs: False
use_pooled_turnover: True
#
forecast_weight_ewma_span: 125
forecast_weight_estimate:
func: syscore.optimisation.GenericOptimiser
method: shrinkage
pool_gross_returns: True
equalise_gross: False
cost_multiplier: 0.0
apply_cost_weight: True
ceiling_cost_SR: 0.13
frequency: "W"
date_method: "expanding"
rollyears: 20
cleaning: True
equalise_SR: False
ann_target_SR: 0.5
equalise_vols: True
shrinkage_SR: 0.90
shrinkage_corr: 0.50
monte_runs: 100
bootstrap_length: 50
correlation_estimate:
func: syscore.correlations.correlation_single_period
using_exponent: False
ew_lookback: 500
min_periods: 20
floor_at_zero: True
mean_estimate:
func: syscore.algos.mean_estimator
using_exponent: False
ew_lookback: 500
min_periods: 20
vol_estimate:
func: syscore.algos.vol_estimator
using_exponent: False
ew_lookback: 500
min_periods: 20
#
# Capital correction
#
percentage_vol_target: 16.0
notional_trading_capital: 1000000
base_currency: "USD"
capital_multiplier:
func: syscore.capital.fixed_capital
#
# Portfolio creation
#
instrument_div_multiplier: 1.0
#
use_instrument_div_mult_estimates: False
#
instrument_correlation_estimate:
func: syscore.correlations.CorrelationEstimator
frequency: "W"
date_method: "expanding"
using_exponent: True
ew_lookback: 500
min_periods: 20
cleaning: True
rollyears: 20
floor_at_zero: True
#
instrument_div_mult_estimate:
func: syscore.divmultipliers.diversification_multiplier_from_list
ewma_span: 125
dm_max: 2.5
#
use_instrument_weight_estimates: False
#
instrument_weight_ewma_span: 125
instrument_weight_estimate:
func: syscore.optimisation.GenericOptimiser
method: shrinkage
frequency: "W"
equalise_gross: False
cost_multiplier: 0.0
apply_cost_weight: False
date_method: "expanding"
rollyears: 20
cleaning: True
equalise_SR: True
ann_target_SR: 0.5
equalise_vols: True
shrinkage_mean: 1.00
shrinkage_corr: 0.50
monte_runs: 100
bootstrap_length: 50
correlation_estimate:
func: syscore.correlations.correlation_single_period
using_exponent: False
ew_lookback: 500
min_periods: 20
floor_at_zero: True
mean_estimate:
func: syscore.algos.mean_estimator
using_exponent: False
ew_lookback: 500
min_periods: 20
vol_estimate:
func: syscore.algos.vol_estimator
using_exponent: False
ew_lookback: 500
min_periods: 20
#
# buffering / position inertia
buffer_method: position
buffer_size: 0.10
buffer_trade_to_edge: False
# costs and accounting
use_SR_costs: True
#