-
Notifications
You must be signed in to change notification settings - Fork 1
/
HubStrategy.properties
136 lines (98 loc) · 4.71 KB
/
HubStrategy.properties
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
########################################################
### Do not write non-ascii character in this file!!! ###
########################################################
#######################################################################################
# StrategyName.ParameterScope.ParameterType.ParameterName[.ListIndex]
# StrategyName is the strategy name.
# ParameterScope:
# Single means this parameter can't be override by other scope.
# Default means this parameter can be override by other scope, for example GBP/JPY.
# GBP/JPY means this parameter will be used, when the strategy instrument is GBP/JPY.
# ParameterType is the parameter type.
# ParameterName is the parameter name.
# ListIndex is the list index, if the parameter is a list.
#######################################################################################
########## [HubStrategy] ##########
# Hub strategy will subscribe all these instruments for all sub strategy.
# If the instruments are selected in JForex GUI client this configuration will be ignored.
HubStrategy.Single.Instrument.instruments.1 = EUR/USD
HubStrategy.Single.Instrument.instruments.2 = GBP/USD
HubStrategy.Single.Instrument.instruments.3 = GBP/JPY
HubStrategy.Single.Instrument.instruments.4 = USD/JPY
HubStrategy.Single.Instrument.instruments.5 = USD/CHF
HubStrategy.Single.Instrument.instruments.6 = USD/CAD
HubStrategy.Single.Instrument.instruments.7 = AUD/USD
HubStrategy.Single.Instrument.instruments.8 = NZD/USD
HubStrategy.Single.Instrument.instruments.9 = EUR/GBP
# Hub strategy will start all these sub strategies.
# If the sub strategies are selected in JForex GUI client this configuration will be ignored.
HubStrategy.Single.SubStrategyName.strategyNames.1 = NotificationCenter
HubStrategy.Single.SubStrategyName.strategyNames.2 = DailyVolatilityWatcher
HubStrategy.Single.SubStrategyName.strategyNames.3 = StopLossOne
###################################
########## [NotificationCenter] ##########
NotificationCenter.Single.String.email = [email protected]
NotificationCenter.Default.Double.upWatermark = 999999
NotificationCenter.Default.Double.downWatermark = 0
NotificationCenter.EUR/USD.Double.upWatermark = 1.1690
NotificationCenter.EUR/USD.Double.downWatermark = 1.1600
NotificationCenter.AUD/USD.Double.upWatermark = 0.7350
NotificationCenter.AUD/USD.Double.downWatermark = 0.7300
NotificationCenter.USD/JPY.Double.upWatermark = 111.10
NotificationCenter.USD/JPY.Double.downWatermark = 110.65
###################################
########## [DailyVolatilityWatcher] ##########
DailyVolatilityWatcher.Single.String.email = [email protected]
DailyVolatilityWatcher.Default.Integer.reversePips = 25
DailyVolatilityWatcher.EUR/USD.Integer.reversePips = 25
DailyVolatilityWatcher.GBP/JPY.Integer.reversePips = 35
###################################
########## [StopLossOne] ##########
## The following parameters are for sub strategy StopLossOne
# if a order has no stop loss, set this.
StopLossOne.Default.Integer.maxStopLossPips = 30
StopLossOne.EUR/USD.Integer.maxStopLossPips = 30
StopLossOne.GBP/JPY.Integer.maxStopLossPips = 30
# Risk-return for break even.
StopLossOne.Single.Double.rrForBreakEven = 1
# spreads in pips.
StopLossOne.Default.Integer.spreads = 3
StopLossOne.EUR/USD.Integer.spreads = 3
# Trailing stop loss in pips.
StopLossOne.Default.Integer.trailingStopLossPips = 30
# Trailing Speed when trailing stop loss less than trailingStopLossPips.
StopLossOne.Single.Double.trailingSpeed = 0.65
# Don't move trailing stop loss, if pips to trail less than minTrailingPips.
StopLossOne.Default.Integer.minTrailingPips = 0
###################################
########## [StopLossTwo] ##########
## The following parameters are for sub strategy StopLossTwo
# spreads in pips.
StopLossTwo.Default.Integer.spreads = 4
StopLossTwo.EUR/USD.Integer.spreads = 3
# Risk-return.
StopLossTwo.Single.Double.riskAndReturn = 1
###################################
########## [OpenOrderTwo] ##########
## The following parameters are for sub strategy OpenOrderTwo
# Strategy period
OpenOrderTwo.Default.Period.period = ONE_HOUR
# Strategy order amount in million
OpenOrderTwo.Default.Double.amountInMil = 0.001
# spreads in pips.
OpenOrderTwo.Default.Integer.spreads = 4
OpenOrderTwo.EUR/USD.Integer.spreads = 3
# reverse pips
OpenOrderTwo.Default.Integer.reversePips = 30
OpenOrderTwo.EUR/USD.Integer.reversePips = 30
# look back bars
OpenOrderTwo.Default.Integer.lookback = 3
# High Rectangle High Line
OpenOrderTwo.Default.Double.highRectHighLine = 0
# High Rectangle Low Line
OpenOrderTwo.Default.Double.highRectLowLine = 0
# Low Rectangle High Line
OpenOrderTwo.Default.Double.lowRectHighLine = 0
# Low Rectangle Low Line
OpenOrderTwo.Default.Double.lowRectLowLine = 0
###################################