Ready to Debug the first Indicator Bot Process in Alpha

This commit is contained in:
Luis Fernando Molina committed 2018-03-14 19:51:09 +01:00
1 parent af377f31e1
commit f988a33603
3 files changed
+22 -170

No files matched your search

+9 -13
View File
@@ -200,23 +200,19 @@ for (let i = 0; i < botConfig.processes.length; i++) {
startProcess();
function startProcess() {
if (bot.type === "Trading") {
runTradingBot(processConfig);
return;
}
const newIntervalExecutor = INTERVAL_EXECUTOR_MODULE.newIntervalExecutor(bot);
newIntervalExecutor.initialize(global.PLATFORM_CONFIG.bot.path, processConfig, undefined, undefined, onInitializeReady);
function onInitializeReady() {
newIntervalExecutor.start();
switch (bot.type) {
case 'Trading': {
runTradingBot(processConfig);
return;
}
case 'Indicator': {
runIndicatorBot(processConfig);
return;
}
}
}
}
} catch (err) {
console.log(err.message);
logger.write(err.message);