-
Notifications
You must be signed in to change notification settings - Fork 6
/
config.js.example
30 lines (30 loc) · 956 Bytes
/
config.js.example
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
module.exports = {
// period for backtesting
// if both start and end is provided, period: [start, end]
// if only start is provided, period: [start, start + duration]
// if only end is provided, period: [end - duration, end]
// if both start and end are not provided, period: [now - duration, now]
// format: yyyy-mm-dd hh-mm-ss
start: '2019-09-02 08:08:08',
end: '2019-09-09 08:08:08',
duration: {
seconds: 0,
minutes: 0,
hours: 0,
days: 2,
weeks: 0,
months: 0,
years: 0
},
// pair
pair: 'ETH-USDT',
// for days longer than 30, interval should be at least 15m
// available interval: 1m, 5m, 15m, 30m, 1h, 4h, 8h, 12h, 1d, 1w
interval: '1m',
upperLimit: 195,
lowerLimit: 155,
// [2, 99]
gridQuantRange: [2, 99],
// whether to use start open price as buy-in price to calculate init profit
includeInitProfit: false
};