From a5181bc980932c143ccd48a6db5a73854ca120f4 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Fri, 15 Mar 2019 18:38:49 +0100 Subject: [PATCH] Add previous at all missing places. --- Multi-Period-Market/User.Bot.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Multi-Period-Market/User.Bot.js b/Multi-Period-Market/User.Bot.js index 102cd4145..02193f6d0 100644 --- a/Multi-Period-Market/User.Bot.js +++ b/Multi-Period-Market/User.Bot.js @@ -220,6 +220,8 @@ } + LRC.previous = previous; + LRCMap.set(LRC.begin, LRC); previous = LRC; @@ -462,6 +464,8 @@ try { + let previous; + for (let i = 0; i < marketFile.length; i++) { let bollingerChannel = { @@ -475,8 +479,11 @@ lastDeviation: marketFile[i][7] }; + bollingerChannel.previous = previous; + bollingerChannelsArray.push(bollingerChannel); + previous = bollingerChannel; } nextBollingerSubChannels(); @@ -540,6 +547,8 @@ try { + let previous; + for (let i = 0; i < marketFile.length; i++) { let bollingerSubChannel = { @@ -554,8 +563,11 @@ lastDeviation: marketFile[i][8] }; + bollingerSubChannel.previous = previous; + bollingerSubChannelsArray.push(bollingerSubChannel); + previous = bollingerSubChannel; } nextCandlesFile();