Last active
February 15, 2019 09:38
-
-
Save Haehnchen/ec6bbc6c19df6e5c16c01c4a1552a497 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var c = module.exports = {} | |
c.symbols = [] | |
// bitfinex | |
let x = [ | |
'BTCUSD', 'EOSUSD', 'LTCUSD', 'ETHUSD', 'ETCUSD', 'NEOUSD', 'IOTUSD', 'XMRUSD', 'XRPUSD', 'DSHUSD', 'ZECUSD', 'OMGUSD', 'ETPUSD', 'BABUSD', 'BSVUSD', | |
'EOSBTC', 'LTCBTC', 'ETHBTC', 'ETCBTC', 'NEOBTC', 'IOTBTC', 'XMRBTC', 'XRPBTC', 'DSHBTC', 'ZECBTC', 'OMGBTC', 'ETPBTC', | |
] | |
x.forEach((pair) => { | |
c.symbols.push({ | |
'symbol': pair, | |
'periods': ['1m', '15m', '1h'], | |
'exchange': 'bitfinex', | |
'state': 'watch', | |
'strategies': [ | |
{ | |
'strategy': 'cci', | |
'options': { | |
'period': '15m' | |
} | |
}, | |
{ | |
'strategy': 'obv_pump_dump' | |
}, | |
{ | |
'strategy': 'macd', | |
'options': { | |
'period': '1h' | |
} | |
} | |
] | |
}) | |
}) | |
// bitmex | |
let y = [ | |
'XBTUSD', 'ETHUSD', 'ADAH19', 'TRXH19', 'XRPH19', 'LTCH19', 'EOSH19', 'BCHH19' | |
] | |
let trading = { | |
"XBTUSD": 1, | |
"ETHUSD": 1, | |
"XRPH19": 3, | |
"TRXH19": 60, | |
"ADAH19": 30, | |
"EOSH19": 1, | |
} | |
y.forEach((pair) => { | |
let cfg = { | |
'symbol': pair, | |
'periods': ['1m', '15m', '1h', '5m'], | |
'exchange': 'bitmex', | |
'state': 'watch', | |
'watchdogs': [], | |
'extra': { | |
'bitmex_leverage': 5, | |
}, | |
'strategies': [ | |
{ | |
'strategy': 'cci', | |
'options': { | |
'period': '15m' | |
} | |
}, | |
{ | |
'strategy': 'obv_pump_dump' | |
}, | |
{ | |
'strategy': 'macd', | |
'options': { | |
'period': '1h' | |
} | |
} | |
] | |
} | |
if (pair in trading) { | |
cfg['watchdogs'].push({ | |
'name': 'risk_reward_ratio', | |
'target_percent': 1.5, | |
'stop_percent': 0.7, | |
}) | |
cfg['trade'] = { | |
'capital': trading[pair], | |
'signal_slowdown_minutes': 15, | |
'strategies': [ | |
//{ | |
// 'strategy': 'cci', | |
// 'options': { | |
// 'period': '15m', | |
// } | |
//}, | |
{ | |
'strategy': 'pivot_reversal_strategy', | |
'options': { | |
'period': '15m', | |
} | |
} | |
] | |
} | |
} | |
c.symbols.push(cfg) | |
}) | |
let z = [ | |
'BTCUSDT', 'XLMUSDT', 'BNBBTC', 'BNBUSDT', 'ZILBTC', 'ONTUSDT', 'ICXUSDT', 'VETUSDT', 'QTUMUSDT', 'NULSUSDT', 'QKCBTC', 'XVGBTC', 'STRATBTC', 'BATBTC', 'LUNBTC', 'NANOBTC', 'LOOMBTC', 'VIBEBTC', 'PIVXBTC', 'ELFBTC', 'ADAUSDT' | |
] | |
let bt = { | |
//'BTCUSDT': 50, | |
//'TNTBTC': 6622, | |
'ADAUSDT': 300, | |
'BNBUSDT': 3, | |
'ONTUSDT': 40, | |
'QTUMUSDT': 40, | |
'XMLUSDT': 250, | |
'NULSUSDT': 50, | |
//'TUSDUSDT': 50, | |
} | |
z.forEach((pair) => { | |
let cfg = { | |
'symbol': pair, | |
'periods': ['1m', '15m', '1h'], | |
'exchange': 'binance', | |
'state': 'watch', | |
'strategies': [ | |
{ | |
'strategy': 'cci', | |
'options': { | |
'period': '15m' | |
} | |
}, | |
{ | |
'strategy': 'obv_pump_dump' | |
}, | |
{ | |
'strategy': 'macd', | |
'options': { | |
'period': '1h' | |
} | |
} | |
] | |
} | |
if (pair in bt) { | |
cfg['trade'] = { | |
'capital': bt[pair], | |
} | |
} | |
c.symbols.push(cfg) | |
}) | |
let h = [ | |
'BTC-EUR', 'LTC-EUR', 'ETH-EUR', 'ETC-EUR', 'LTC-BTC', 'ETH-BTC', 'BCH-EUR', 'ZRX-EUR', 'ZRX-BTC', | |
] | |
h.forEach((pair) => { | |
let cfg = { | |
'symbol': pair, | |
'periods': ['1m', '15m', '1h'], | |
'exchange': 'coinbase_pro', | |
'state': 'watch', | |
'strategies': [ | |
{ | |
'strategy': 'cci', | |
'options': { | |
'period': '15m' | |
} | |
}, | |
{ | |
'strategy': 'macd', | |
'options': { | |
'period': '1h' | |
} | |
} | |
] | |
} | |
c.symbols.push(cfg) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment