Update TradingSimulation.js

This commit is contained in:
Luis Fernando Molina committed 2020-06-08 14:55:12 +02:00
1 parent d615a62445
commit 963476d9d8
1 file changed
+3 -3
+3 -3
View File
@@ -401,9 +401,9 @@ exports.newTradingSimulation = function newTradingSimulation(bot, logger, UTILIT
function checkIfWeAreAtTheHeadOfTheMarket() {
/*
We skip the candle at the head of the market because it has not closed yet. The procedure to determine if we are at the head of the market is different
when we are processing Market Files than when we are processing Daily Files. TODO Check that the procedure is good for Beta 6
*/
We skip the candle at the head of the market because it has not closed yet. The procedure to determine if we are at the head of the market is different
when we are processing Market Files than when we are processing Daily Files. TODO Check that the procedure is good for Beta 6
*/
if (bot.processingDailyFiles) { // We are processing Daily Files
let candlesPerDay = ONE_DAY_IN_MILISECONDS / sessionParameters.timeFrame.config.value
if (tradingEngine.current.candle.index.value === candles.length - 1) {