sanpshots
This commit is contained in:
1 parent
8cf7d3a62b
commit
ea924198f2
2 files changed
+11
-9
No files matched your search
@@ -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() {
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user