forked from DeviaVir/zenbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config_defaults.js
76 lines (68 loc) · 1.72 KB
/
config_defaults.js
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
module.exports = function (c) {
c || (c = {})
// graph server
c.default_graph_period = "1h"
c.default_graph_limit = 200
c.graph_limits = [50, 100, 150, 200, 300, 500, 1000, 2000]
c.log_query_limit = 200
c.tracking_scripts = ''
// SMA indicator config
c.sma_sizes = ['1h']
c.sma_reporter_size = '1h'
c.sma_query_limit = 20
c.sma_periods = 10
// RSI indicator config
c.rsi_sizes = ['1h']
c.rsi_reporter_size = '1h'
c.rsi_query_limit = 100
c.rsi_periods = 14
c.rsi_backfill_timeout = 30000
c.rsi_backfill_report = false
c.rsi_backfill_min_report = 2
c.ansi_graph_width = 20
c.ansi_graph_decay = 0.01
// reporter
c.reporter_sizes = ['1m']
c.price_reporter_length = 12
c.reporter_cols = [
"tick_id",
"num_trades",
"ansi_graph",
"rsi",
//"volume",
"price",
"eta",
//"sma",
"balance",
"roi"
]
c.trade_log = false
c.reducer_report_interval = 30000
c.trade_reducer_log = false
c.trade_reducer_log_interval = 30000
c.min_log_trades = 2
// backfiller
c.backfill_days = 91
c.record_timeout = 20000
c.backfill_timeout = 5000
// simulator
c.sim_input_unit = "7d"
c.sim_input_limit = 12
// zenbrain engine stuff
c.bucket_size = "1m"
c.reducer_limit = 1500 // how many thoughts to process per reduce run
c.reducer_sizes = ["1m", "5m", "15m", "1h", "6h", "1d"]
c.save_state_interval = 10000 // save state
c.parallel_limit = 8 // run this many concurrent tasks
c.reduce_timeout = 200
c.run_limit = 100
c.lock_timeout = 60000
c.lock_backoff = 20
c.lock_tries = 100
c.passive_update_timeout = 5000
c.return_timeout = 60000
c.brain_speed_ms = 5000
c.reducer_perf_report_min = 2
c.reducer_perf_report_timeout = 30000
return c
}