Ready to Debug the first Indicator Bot Process in Alpha
This commit is contained in:
1 parent
af377f31e1
commit
f988a33603
3 files changed
+22
-170
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user