11var c = module . exports = { }
22
3- // COMMONLY TWEAKED VARIABLES:
3+ // mongo configuration
4+ c . mongo = { }
5+ c . mongo . host = 'localhost'
6+ c . mongo . port = 27017
7+ c . mongo . db = 'zenbot4'
8+ c . mongo . username = null
9+ c . mongo . password = null
410
511// default selector. only used if omitting [selector] argument from a command.
612c . selector = 'gdax.BTC-USD'
713// name of default trade strategy
814c . strategy = 'trend_ema'
15+
16+ // Exchange API keys:
17+
18+ // to enable GDAX trading, enter your API credentials:
19+ c . gdax = { }
20+ c . gdax . key = 'YOUR-API-KEY'
21+ c . gdax . b64secret = 'YOUR-BASE64-SECRET'
22+ c . gdax . passphrase = 'YOUR-PASSPHRASE'
23+
24+ // to enable Poloniex trading, enter your API credentials:
25+ c . poloniex = { }
26+ c . poloniex . key = 'YOUR-API-KEY'
27+ c . poloniex . secret = 'YOUR-SECRET'
28+
29+ // Optional stop-order triggers:
30+
931// sell if price drops below this % of bought price (0 to disable)
1032c . sell_stop_pct = 0
1133// buy if price surges above this % of sold price (0 to disable)
@@ -14,8 +36,9 @@ c.buy_stop_pct = 0
1436c . profit_stop_enable_pct = 0
1537// maintain a trailing stop this % below the high-water mark of profit
1638c . profit_stop_pct = 1
17- // avoid selling at a loss below this pct
18- c . max_sell_loss_pct = 25
39+
40+ // Order execution rules:
41+
1942// avoid trading at a slippage above this pct
2043c . max_slippage_pct = 5
2144// buy with this % of currency balance
@@ -24,15 +47,19 @@ c.buy_pct = 99
2447c . sell_pct = 99
2548// ms to adjust non-filled order after
2649c . order_adjust_time = 30000
50+ // avoid selling at a loss below this pct
51+ c . max_sell_loss_pct = 25
52+ // ms to poll order status
53+ c . order_poll_time = 5000
54+ // ms to wait for settlement (after an order cancel)
55+ c . wait_for_settlement = 5000
56+ // ms to wait for settlement (after a funds on hold error)
57+ c . wait_more_for_settlement = 60000
58+ // % to mark up or down price for orders
59+ c . markup_pct = 0
2760
28- // LESS-COMMONLY TWEAKED VARAIBLES :
61+ // Misc options :
2962
30- // mongo configuration
31- c . mongo_host = 'localhost'
32- c . mongo_port = 27017
33- c . mongo_db = 'zenbot4'
34- c . mongo_username = null
35- c . mongo_password = null
3663// default # days for backfill and sim commands
3764c . days = 90
3865// ms to poll new trades at
@@ -41,17 +68,9 @@ c.poll_trades = 30000
4168c . currency_capital = 1000
4269// amount of asset to start simulations with
4370c . asset_capital = 0
44- // ms to poll order status
45- c . order_poll_time = 5000
4671// for sim, reverse time at the end of the graph, normalizing buy/hold to 0
4772c . symmetrical = false
4873// number of periods to calculate RSI at
4974c . rsi_periods = 14
50- // ms to wait for settlement (after an order cancel)
51- c . wait_for_settlement = 5000
52- // ms to wait for settlement (after a funds on hold error)
53- c . wait_more_for_settlement = 60000
5475// period to record balances for stats
5576c . balance_snapshot_period = '15m'
56- // % to mark up or down price for orders
57- c . markup_pct = 0
0 commit comments