diff --git a/Commons.js b/Commons.js index 9c98f9c9f..0e981ef09 100644 --- a/Commons.js +++ b/Commons.js @@ -101,7 +101,7 @@ exports.newCommons = function newCommons(bot, logger, UTILITIES) { /* Building records */ let positionRate = 0; - let sellAmount = 0; + let positionSize = 0; let sellInstant; let previousBalanceAssetA = 0; @@ -745,7 +745,7 @@ exports.newCommons = function newCommons(bot, logger, UTILITIES) { marketRate = candle.close; positionRate = marketRate; - sellAmount = balanceAssetA; + positionSize = balanceAssetA; stopLoss = positionRate + positionRate * 1 / 100; previousStopLoss = stopLoss; @@ -845,7 +845,7 @@ exports.newCommons = function newCommons(bot, logger, UTILITIES) { strategyNumber = 0; stopLoss = 0; positionRate = 0; - sellAmount = 0; + positionSize = 0; sellInstant = undefined; takeProfit = 0; strategyPhase = 0; @@ -957,7 +957,7 @@ exports.newCommons = function newCommons(bot, logger, UTILITIES) { stopLossPhase: stopLossPhase, takeProfitPhase: takeProfitPhase, orderRecord: orderRecord, - sellAmount: sellAmount + positionSize: positionSize } recordsArray.push(simulationRecord); diff --git a/Multi-Period-Daily/User.Bot.js b/Multi-Period-Daily/User.Bot.js index 01fb41a61..a1d16199b 100644 --- a/Multi-Period-Daily/User.Bot.js +++ b/Multi-Period-Daily/User.Bot.js @@ -167,7 +167,7 @@ record.stopLossPhase + "," + record.takeProfitPhase + "," + JSON.stringify(record.orderRecord) + "," + - record.sellAmount + "]"; + record.positionSize + "]"; if (separator === "") { separator = ","; } diff --git a/Multi-Period-Market/User.Bot.js b/Multi-Period-Market/User.Bot.js index 0a1176136..6ac39ba67 100644 --- a/Multi-Period-Market/User.Bot.js +++ b/Multi-Period-Market/User.Bot.js @@ -166,7 +166,7 @@ record.takeProfitPhase + "," + JSON.stringify(record.orderRecord) + "," + - record.sellAmount + "]"; + record.positionSize + "]"; if (separator === "") { separator = ","; }