From ab2fc2966c9e2a6e423c6c33a8b38e5c38002b8d Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Sun, 9 Aug 2020 21:13:57 +0200 Subject: [PATCH] Update TradingRecords.js --- LowFrequencyTrading/TradingRecords.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/LowFrequencyTrading/TradingRecords.js b/LowFrequencyTrading/TradingRecords.js index d1adacb73..c24940b16 100644 --- a/LowFrequencyTrading/TradingRecords.js +++ b/LowFrequencyTrading/TradingRecords.js @@ -90,6 +90,11 @@ exports.newTradingRecords = function newTradingRecords(bot, logger) { let productRootNode = productRoot[index] let record = scanRecordDefinition(product, productRootNode, index) if (record !== undefined) { + /* + We will add the index value to the record itself, so that the plotter can know to which + brach of the trading engine data structure it belongs. + */ + record.push(index) persistIndividualRecord(record, product, outputDatasetArray) } }