Guest User

Untitled

a guest
Mar 2nd, 2018
1,377
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.92 KB | None | 0 0
  1. var c = module.exports = {}
  2.  
  3. // mongo configuration
  4. c.mongo = {}
  5. c.mongo.db = 'Zenbot0'
  6.  
  7. // Must provide EITHER c.mongo.connectionString OR c.mongo.host,port,username,password
  8. // c.mongo.connectionString = ''
  9.  
  10. // The following is not needed when c.mongo.connectionString is provided:
  11. c.mongo.host = process.env.MONGODB_PORT_27017_TCP_ADDR || 'localhost'
  12. c.mongo.port = 27017
  13. c.mongo.username = null
  14. c.mongo.password = null
  15. // when using mongodb replication, i.e. when running a mongodb cluster, you can define your replication set here; when you are not using replication (most of the users), just set it to `null` (default).
  16. c.mongo.replicaSet = null
  17.  
  18. // default selector. only used if omitting [selector] argument from a command.
  19. c.selector = 'bitfinex.IOT-USD'
  20. // name of default trade strategy
  21. // c.strategy = 'macd'
  22.  
  23. // Exchange API keys:
  24. // to enable Bitfinex trading, enter your API credentials:
  25. c.bitfinex = {}
  26. c.bitfinex.key = ''
  27. c.bitfinex.secret = ''
  28. // May use 'exchange' or 'trading' wallet balances. However margin trading may not work...read the API documentation.
  29. c.bitfinex.wallet = 'exchange'
  30.  
  31. // ETH settings (note: this is just an example, not necessarily recommended)
  32.  
  33. c.period = '1h'
  34. c.trend_ema = 36
  35. c.neutral_rate = 0.1
  36. c.sell_rate=-0.006
  37. c.ema_short_period = 12
  38. c.ema_long_period = 26
  39. c.signal_period = 9
  40. c.up_trend_threshold = 0
  41. c.down_trend_threshold = 0
  42. c.overbought_rsi = 70
  43. c.oversold_rsi = 30
  44. c.max_sell_loss_pct = 25
  45. c.max_slippage_pct = 2
  46. c.markup_pct = 0
  47.  
  48.  
  49. // Optional stop-order triggers:
  50.  
  51. // sell if price drops below this % of bought price (0 to disable)
  52. c.sell_stop_pct = 0
  53. // buy if price surges above this % of sold price (0 to disable)
  54. c.buy_stop_pct = 0
  55. // enable trailing sell stop when reaching this % profit (0 to disable)
  56. c.profit_stop_enable_pct = 10
  57. // maintain a trailing stop this % below the high-water mark of profit
  58. c.profit_stop_pct = 1
  59.  
  60. // Order execution rules:
  61.  
  62. // avoid trading at a slippage above this pct
  63. c.max_slippage_pct = 10
  64. // buy with this % of currency balance (WARNING : sim won't work properly if you set this value to 100)
  65. c.buy_pct = 98
  66. // sell with this % of asset balance (WARNING : sim won't work properly if you set this value to 100)
  67. c.sell_pct = 98
  68. // ms to adjust non-filled order after
  69. c.order_adjust_time = 30000
  70. // avoid selling at a loss below this pct set to 0 to ensure selling at a higher price...
  71. c.max_sell_loss_pct = 25
  72. // ms to poll order status
  73. c.order_poll_time = 5000
  74. // ms to wait for settlement (after an order cancel)
  75. c.wait_for_settlement = 5000
  76. // % to mark down buy price for orders
  77. c.markdown_buy_pct = 0
  78. // % to mark up sell price for orders
  79. c.markup_sell_pct = 0
  80. // become a market taker (high fees) or a market maker (low fees)
  81. c.order_type = 'maker'
  82. // when supported by the exchange, use post only type orders.
  83. c.post_only = true
  84.  
  85. // Misc options:
  86.  
  87. // default # days for backfill and sim commands
  88. c.days = 14
  89. // defaults to a high number of lookback periods
  90. c.keep_lookback_periods = 50000
  91. // ms to poll new trades at
  92. c.poll_trades = 30000
  93. // amount of currency to start simulations with
  94. c.currency_capital = 150
  95. // amount of asset to start simulations with
  96. c.asset_capital = 0
  97. // for sim, reverse time at the end of the graph, normalizing buy/hold to 0
  98. c.symmetrical = false
  99. // number of periods to calculate RSI at
  100. c.rsi_periods = 14
  101. // period to record balances for stats
  102. c.balance_snapshot_period = '15m'
  103. // avg. amount of slippage to apply to sim trades
  104. c.avg_slippage_pct = 0.045
  105. // time to leave an order open, default to 1 day (this feature is not supported on all exchanges, currently: GDAX)
  106. // c.cancel_after = 'day'
  107. // load and use previous trades for stop-order triggers and loss protection (live/paper mode only)
  108. c.use_prev_trades = true
  109.  
  110. // Notifiers:
  111. c.notifiers = {}
  112.  
  113. // output
  114. c.output = {}
  115.  
  116. // REST API
  117. c.output.api = {}
  118. c.output.api.on = true
  119. c.output.api.ip = '0.0.0.0' // IPv4 or IPv6 address to listen on, uses all available interfaces if omitted
  120. c.output.api.port = 0 // 0 = random port'
Add Comment
Please, Sign In to add comment