Trading Bot

This commit is contained in:
Luis Fernando Molina committed 2020-12-03 08:46:25 +01:00
1 parent 2acb4648c3
commit 47e8ea2079
3 files changed
+10 -7

No files matched your search

+7
View File
@@ -526,6 +526,13 @@
"functionName": "newSuperalgosBotModulesIndicatorOutput",
"fileName": "IndicatorOutput.js",
"folderName": "Indicator-Bot"
},
{
"name": "Single Market Trading Bot",
"propertyName": "singleMarketTradingBot",
"functionName": "newSuperalgosBotModulesSingleMarketTradingBot",
"fileName": "SingleMarketTradingBot.js",
"folderName": "Trading-Bot"
}
]
},
@@ -1,4 +1,4 @@
exports.newTradingBot = function newTradingBot(processIndex) {
exports.newSuperalgosBotModulesSingleMarketTradingBot = function (processIndex) {
const MODULE_NAME = "Trading Bot";
const FULL_LOG = true;
+2 -6
View File
@@ -12,10 +12,6 @@
function start(processIndex) {
try {
/* Process Loops Declarations. */
const TRADING_BOT_MODULE = require('./TradingBot');
let botInstance
let botConfig = TS.projects.superalgos.globals.taskConstants.TASK_NODE.bot.processes[processIndex].referenceParent.parentNode.config
@@ -120,7 +116,7 @@
try {
TS.projects.superalgos.globals.processVariables.TOTAL_PROCESS_INSTANCES_CREATED++
botInstance = TRADING_BOT_MODULE.newTradingBot(processIndex);
botInstance = TS.projects.superalgos.botModules.singleMarketTradingBot.newSuperalgosBotModulesSingleMarketTradingBot(processIndex);
botInstance.initialize(processConfig, onInitializeReady);
}
catch (err) {
@@ -133,7 +129,7 @@
try {
TS.projects.superalgos.globals.processVariables.TOTAL_PROCESS_INSTANCES_CREATED++
botInstance = TRADING_BOT_MODULE.newLearningBot(processIndex);
botInstance = LEARNING_BOT_MODULE.newLearningBot(processIndex);
botInstance.initialize(processConfig, onInitializeReady);
}
catch (err) {