diff --git a/.vs/AACloud/v15/.suo b/.vs/AACloud/v15/.suo index b3c983cd6..84d954d6a 100644 Binary files a/.vs/AACloud/v15/.suo and b/.vs/AACloud/v15/.suo differ diff --git a/Assistant.js b/Assistant.js index 9dff2a13c..04e5dd757 100644 --- a/Assistant.js +++ b/Assistant.js @@ -111,6 +111,7 @@ if (bot.processDatetime.valueOf() >= candle.begin && bot.processDatetime.valueOf() < candle.end) { marketRate = (candle.open + candle.close) / 2; + marketRate = Number(marketRate.toFixed(8)); /* The Backtest Mode simulates that every trade posted is executed. In order to do this, we will take all open orders from the context and create a trades array similar to the one returned by the Exchange. */ @@ -141,6 +142,7 @@ }; marketRate = candle.close; + marketRate = Number(marketRate.toFixed(8)); /* Now we verify that this candle is not too old. Lets say no more than 2 minutes old. This could happen if the datasets for diff --git a/Run.js b/Run.js index a837572d7..838dd60f1 100644 --- a/Run.js +++ b/Run.js @@ -337,7 +337,7 @@ for (let p = 0; p < global.PLATFORM_CONFIG.executionList.length; p++) { processConfig.normalWaitTime = processConfig.startMode.timePeriod.waitTime; processConfig.retryWaitTime = processConfig.startMode.timePeriod.waitTime; - if (processConfig.startMode.noTime.resumeExecution === "true") { + if (processConfig.startMode.timePeriod.resumeExecution === "true") { botConfig.hasTheBotJustStarted = false; } else { botConfig.hasTheBotJustStarted = true;