-
Notifications
You must be signed in to change notification settings - Fork 59
/
default.conf
156 lines (142 loc) · 6.62 KB
/
default.conf
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
# Copy this file to config.conf and edit settings there
# Values in config.conf override anything found in default.conf
[Config]
API_ENDPOINT: https://demo-api.ig.com/gateway/deal
#API_ENDPOINT: https://api.ig.com/gateway/deal
ACCOUNT_TYPE: SPREADBET
# do NOT set API_KEY here, set it in config.conf
API_KEY: ****************************
[Auth]
USERNAME: ************
PASSWORD: ************
[Trade]
algorithm: LinearRegression
# high res uses a LOT more API calls for pricing history, but is more accurate
high_resolution: True
# *********************************************************************
# You can use sentiment as a filter, only taking the setups going against the crowd.
# You must be in the minority of 40% or less.
# More information See here:
# https://www.reddit.com/r/Forex/comments/7wehbq/how_much_does_client_sentiment_sway_your_decisions/
# *********************************************************************
# use client sentiment values if true, else trade solely on price
use_clientsentiment: True
# follow client sentiment or go against
clientsentiment_contrarian: True
clientsentiment_value: 69
hightrend_watermark: 89
# if accuracy below this point, don't attempt trade
predict_accuracy: 0.89
# volatility needs to be between these amounts
Price_Change_Day_percent_high: 1.9
Price_Change_Day_percent_low: 0.48
# trade on a set (safe) amount, or a calculated amount based on prediction
# this pretty much excludes most exotics, since their minimum spreads are almost always > 2, which is a lot safer, but less profitable
use_max_spread: True
max_spread: -2
# 1.3 is /very slightly/ better than average
spread_multiplier: 1.2
# how much do we set as a limit, 1.00 is 100% of the way to the lowest/highest value we've seen so far, and is extremely high
greed: 0.20
# size of trade
size: 2
stopDistance_value: 150
always_guarantee_stops: True
never_guarantee_stops: False
[Epics]
EPICS: { "CS.D.AUDUSD.TODAY.IP": { "minspread": 0.6 },
"CS.D.EURCHF.TODAY.IP": { "minspread": 2.0 },
"CS.D.EURGBP.TODAY.IP": { "minspread": 0.9 },
"CS.D.EURJPY.TODAY.IP": { "minspread": 1.5 },
"CS.D.EURUSD.TODAY.IP": { "minspread": 0.6 },
"CS.D.GBPEUR.TODAY.IP": { "minspread": 2.0 },
"CS.D.GBPJPY.TODAY.IP": { "minspread": 2.5 },
"CS.D.GBPUSD.TODAY.IP": { "minspread": 0.9 },
"CS.D.USDCAD.TODAY.IP": { "minspread": 1.7 },
"CS.D.USDCHF.TODAY.IP": { "minspread": 1.5 },
"CS.D.USDJPY.TODAY.IP": { "minspread": 0.7 },
"CS.D.CADCHF.TODAY.IP": { "minspread": 2.5 },
"CS.D.CADJPY.TODAY.IP": { "minspread": 2.5 },
"CS.D.CHFJPY.TODAY.IP": { "minspread": 2.0 },
"CS.D.EURCAD.TODAY.IP": { "minspread": 3.0 },
"CS.D.EURSGD.TODAY.IP": { "minspread": 5.0 },
"CS.D.EURZAR.TODAY.IP": { "minspread": 150.0 },
"CS.D.GBPCAD.TODAY.IP": { "minspread": 3.5 },
"CS.D.GBPCHF.TODAY.IP": { "minspread": 3.0 },
"CS.D.GBPSGD.TODAY.IP": { "minspread": 8.0 },
"CS.D.GBPZAR.TODAY.IP": { "minspread": 200.0 },
"CS.D.SGDJPY.TODAY.IP": { "minspread": 4.0 },
"CS.D.USDSGD.TODAY.IP": { "minspread": 3.0 },
"CS.D.USDZAR.TODAY.IP": { "minspread": 90.0 },
"CS.D.AUDCAD.TODAY.IP": { "minspread": 2.0 },
"CS.D.AUDCHF.TODAY.IP": { "minspread": 2.5 },
"CS.D.AUDEUR.TODAY.IP": { "minspread": 1.5 },
"CS.D.AUDGBP.TODAY.IP": { "minspread": 1.5 },
"CS.D.AUDJPY.TODAY.IP": { "minspread": 1.3 },
"CS.D.AUDNZD.TODAY.IP": { "minspread": 3.0 },
"CS.D.AUDSGD.TODAY.IP": { "minspread": 5.0 },
"CS.D.EURAUD.TODAY.IP": { "minspread": 1.8 },
"CS.D.EURNZD.TODAY.IP": { "minspread": 3.0 },
"CS.D.GBPAUD.TODAY.IP": { "minspread": 1.9 },
"CS.D.GBPNZD.TODAY.IP": { "minspread": 5.0 },
"CS.D.NZDCHF.TODAY.IP": { "minspread": 4.0 },
"CS.D.NZDEUR.TODAY.IP": { "minspread": 1.5 },
"CS.D.NZDGBP.TODAY.IP": { "minspread": 2.0 },
"CS.D.NZDJPY.TODAY.IP": { "minspread": 2.5 },
"CS.D.NZDUSD.TODAY.IP": { "minspread": 2.0 },
"CS.D.NZDCAD.TODAY.IP": { "minspread": 3.5 },
"CS.D.CADNOK.TODAY.IP": { "minspread": 25.0 },
"CS.D.CHFNOK.TODAY.IP": { "minspread": 40.0 },
# "CS.D.EURDKK.TODAY.IP": { "minspread": 10.0 },
# "CS.D.EURNOK.TODAY.IP": { "minspread": 25.0 },
# "CS.D.EURSEK.TODAY.IP": { "minspread": 30.0 },
"CS.D.GBPDKK.TODAY.IP": { "minspread": 30.0 },
"CS.D.GBPNOK.TODAY.IP": { "minspread": 50.0 },
"CS.D.GBPSEK.TODAY.IP": { "minspread": 50.0 },
"CS.D.NOKSEK.TODAY.IP": { "minspread": 6.0 },
# "CS.D.USDDKK.TODAY.IP": { "minspread": 15.0 },
"CS.D.USDNOK.TODAY.IP": { "minspread": 25.0 },
"CS.D.USDSEK.TODAY.IP": { "minspread": 25.0 },
"CS.D.CHFHUF.TODAY.IP": { "minspread": 25.0 },
# "CS.D.EURCZK.TODAY.IP": { "minspread": 25.0 },
"CS.D.EURHUF.TODAY.IP": { "minspread": 20.0 },
"CS.D.EURILS.TODAY.IP": { "minspread": 40.0 },
"CS.D.EURMXN.TODAY.IP": { "minspread": 90.0 },
"CS.D.EURPLN.TODAY.IP": { "minspread": 25.0 },
"CS.D.EURTRY.TODAY.IP": { "minspread": 15.0 },
# "CS.D.GBPCZK.TODAY.IP": { "minspread": 30.0 },
"CS.D.GBPHUF.TODAY.IP": { "minspread": 25.0 },
"CS.D.GBPILS.TODAY.IP": { "minspread": 50.0 },
"CS.D.GBPMXN.TODAY.IP": { "minspread": 130.0 },
"CS.D.GBPPLN.TODAY.IP": { "minspread": 30.0 },
"CS.D.GBPTRY.TODAY.IP": { "minspread": 20.0 },
# "CS.D.MXNJPY.TODAY.IP": { "minspread": 0.6 },
# "CS.D.NOKJPY.TODAY.IP": { "minspread": 0.8 },
# "CS.D.PLNJPY.TODAY.IP": { "minspread": 2.0 },
# "CS.D.SEKJPY.TODAY.IP": { "minspread": 0.6 },
# "CS.D.TRYJPY.TODAY.IP": { "minspread": 5.0 },
# "CS.D.USDCZK.TODAY.IP": { "minspread": 25.0 },
"CS.D.USDHUF.TODAY.IP": { "minspread": 20.0 },
"CS.D.USDILS.TODAY.IP": { "minspread": 30.0 },
"CS.D.USDMXN.TODAY.IP": { "minspread": 50.0 },
"CS.D.USDPLN.TODAY.IP": { "minspread": 25.0 },
"CS.D.USDTRY.TODAY.IP": { "minspread": 12.0 },
# "CS.D.AUDCNH.TODAY.IP": { "minspread": 20.0 },
# "CS.D.CADCNH.TODAY.IP": { "minspread": 15.0 },
# "CS.D.CNHJPY.TODAY.IP": { "minspread": 0.8 },
# "CS.D.EURCNH.TODAY.IP": { "minspread": 30.0 },
# "CS.D.sp_EURRUB.TODAY.IP": { "minspread": 2000.0 },
# "CS.D.GBPCNH.TODAY.IP": { "minspread": 35.0 },
# "CS.D.NZDCNH.TODAY.IP": { "minspread": 15.0 },
# "CS.D.USDCNH.TODAY.IP": { "minspread": 10.0 },
# "CS.D.BRLJPY.TODAY.IP": { "minspread": 3.0 },
# "CS.D.GBPINR.TODAY.IP": { "minspread": 35.0 },
# "CS.D.USDBRL.TODAY.IP": { "minspread": 30.0 },
# "CS.D.USDIDR.TODAY.IP": { "minspread": 80.0 },
# "CS.D.USDINR.TODAY.IP": { "minspread": 20.0 },
"CS.D.USDKRW.TODAY.IP": { "minspread": 100.0 },
"CS.D.USDMYR.TODAY.IP": { "minspread": 100.0 },
# "CS.D.USDPHP.TODAY.IP": { "minspread": 15.0 },
"CS.D.USDTWD.TODAY.IP": { "minspread": 80.0 },
# "CS.D.NZDAUD.TODAY.IP",
"CS.D.sp_USDRUB.TODAY.IP": { "minspread": 1600.0 } }