sanpshots

This commit is contained in:
Luis Fernando Molina committed 2020-06-04 22:21:51 +02:00
1 parent 8cf7d3a62b
commit ea924198f2
2 files changed
+11 -9

No files matched your search

+11
View File
@@ -11,6 +11,17 @@ exports.newSnapshots = function newSnapshots(bot, logger) {
let tradingEngine
/* We are going to take snapshots of the values of indicators at key moments of the sumulation. */
let snapshotKeys = new Map()
snapshotLoopHeaders = []
snapshotDataRecord = []
saveAsLastTriggerOnSnapshot = false
saveAsLastTakePositionSnapshot = false
addToSnapshots = false
let announcementsToBeMade = []
return thisObject
function initialize() {
-9
View File
@@ -168,16 +168,7 @@ exports.newTradingSimulation = function newTradingSimulation(bot, logger, UTILIT
if (FULL_LOG === true) { logger.write(MODULE_NAME, '[INFO] runSimulation -> loop -> Entering function.') }
if (FULL_LOG === true) { logger.write(MODULE_NAME, '[INFO] runSimulation -> loop -> Processing candle # ' + currentCandleIndex) }
/* We are going to take snapshots of the values of indicators at key moments of the sumulation. */
let snapshotKeys = new Map()
snapshotLoopHeaders = []
snapshotDataRecord = []
saveAsLastTriggerOnSnapshot = false
saveAsLastTakePositionSnapshot = false
addToSnapshots = false
let announcementsToBeMade = []
let candle = candles[currentCandleIndex]
tradingEngineModule.setCurrentCandle(candle)