Merge pull request #2066 from Luis-Fernando-Molina/develop

Contribution: deepscan bug fixes
This commit is contained in:
Luis Fernando Molina authored and GitHub committed 2021-10-06 06:48:26 -04:00
commit 7018e43f5e
11 files changed
+4 -14

No files matched your search

@@ -2,7 +2,6 @@ exports.newAlgorithmicTradingBotModulesOrdersCalculations = function (processInd
/*
When we are live trading, we need to syncronize with the exchange.
*/
const MODULE_NAME = 'Orders Calculations'
let thisObject = {
actualSizeCalculation: actualSizeCalculation,
@@ -2,7 +2,6 @@ exports.newAlgorithmicTradingBotModulesOrdersSimulations = function (processInde
/*
When we are backtesting or paper trading, we need to simulate what would have happened at the exchange.
*/
const MODULE_NAME = 'Orders Simulations'
let thisObject = {
actualSizeSimulation: actualSizeSimulation,
@@ -3,7 +3,7 @@ exports.newAlgorithmicTradingBotModulesTradingEngine = function (processIndex) {
We call the Trading Engine to the data structure that is needed in order to exevute the
trading protocol with the specific rules defined at the Trading System.
*/
const MODULE_NAME = 'Trading Engine'
let thisObject = {
mantain: mantain,
reset: reset,
@@ -2,7 +2,6 @@ exports.newAlgorithmicTradingBotModulesTradingEpisode = function (processIndex)
/*
This module packages all functions related to Episodes.
*/
const MODULE_NAME = 'Trading Episode'
let thisObject = {
mantain: mantain,
reset: reset,
@@ -2,7 +2,7 @@ exports.newAlgorithmicTradingBotModulesTradingStrategy = function (processIndex)
/*
This module packages all functions related to Strategies.
*/
const MODULE_NAME = 'Trading Strategy'
let thisObject = {
mantain: mantain,
reset: reset,
@@ -868,7 +868,7 @@ exports.newDataMiningBotModulesFetchingProcess = function (processIndex) {
Building the current key...
*/
let key = ""
for (j = 0; j < primaryKeys.length; j++) {
for (let j = 0; j < primaryKeys.length; j++) {
let keyValue = record.map.get(primaryKeys[j])
key = key + '->' + keyValue
}
@@ -887,7 +887,7 @@ exports.newDataMiningBotModulesFetchingProcess = function (processIndex) {
let record = getRecord(dataReceivedArray[i])
let key = ""
for (j = 0; j < primaryKeys.length; j++) {
for (let j = 0; j < primaryKeys.length; j++) {
let keyValue = record.map.get(primaryKeys[j])
key = key + '->' + keyValue
}
@@ -440,7 +440,6 @@
return
}
const inputVolumesPerdiod = 60 * 1000; // 1 min
const inputFilePeriod = 24 * 60 * 60 * 1000; // 24 hs
let totalOutputVolumes = inputFilePeriod / outputPeriod; // this should be 2 in this case.
let beginingOutputTime = contextVariables.datetimeLastProducedFile.valueOf();
@@ -577,7 +576,6 @@
let fileContent = "";
for (let i = 0; i < volumes.length; i++) {
let candle = volumes[i];
fileContent = fileContent + separator + '[' + volumes[i].buy + "," + volumes[i].sell + "," + volumes[i].begin + "," + volumes[i].end + "]";
if (separator === "") { separator = ","; }
fileRecordCounter++
@@ -677,7 +677,6 @@
callBackFunction(err);
return;
}
const inputVolumesPerdiod = 60 * 1000; // 1 min
const inputFilePeriod = 24 * 60 * 60 * 1000; // 24 hs
let totalOutputVolumes = inputFilePeriod / outputPeriod; // this should be 2 in this case.
@@ -813,7 +812,6 @@
let fileContent = "";
for (let i = 0; i < volumes.length; i++) {
let candle = volumes[i];
fileContent = fileContent + separator + '[' + volumes[i].buy + "," + volumes[i].sell + "," + volumes[i].begin + "," + volumes[i].end + "]";
if (separator === "") { separator = ","; }
fileRecordCounter++
@@ -74,7 +74,6 @@
let outputData // Data built as a result of applying user defined code and formulas at the Data Building Procedure
let singularVariableName // Name of the variable for this product
let recordDefinition // Record as defined by the user at the UI
let fileContent // Here we store the contents of the new data built just before writing it to a file.
let resultsWithIrregularPeriods // A product will have irregular periods when the User Code inserts new result records at will, in contrast with normal procedure where the platform insert one record per loop execution.
/*
@@ -3,7 +3,6 @@ exports.newMachineLearningBotModulesLearningEngine = function (processIndex) {
We call the Learning Engine to the data structure that is needed in order to exevute the
learning protocol with the specific rules defined at the Learning System.
*/
const MODULE_NAME = 'Learning Engine'
let thisObject = {
mantain: mantain,
reset: reset,
@@ -2,7 +2,6 @@ exports.newMachineLearningBotModulesLearningEpisode = function (processIndex) {
/*
This module packages all functions related to Episodes.
*/
const MODULE_NAME = 'Learning Episode'
let thisObject = {
mantain: mantain,
reset: reset,