From a414ed951f1266af1dc230b77ddc71816eb148b2 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Tue, 5 Mar 2019 18:21:00 +0100 Subject: [PATCH] Pre Sell Cancelled --- TradingSimulation.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/TradingSimulation.js b/TradingSimulation.js index 09a32ac55..1d05de3cd 100644 --- a/TradingSimulation.js +++ b/TradingSimulation.js @@ -578,6 +578,7 @@ if (record.type === 'Sell-1') { directionShort = +1; } if (record.type === 'Sell-2') { directionShort = +1; } if (record.signal === 'Pre-Sell') { directionShort = +1; } + if (record.signal === 'Pre-Sell-Cancelled') { directionShort = -1; } if (strategyPhase > 0) { if (strategyPhase % 2 !== 0) { //Depending if the phase is oddd or even goes above or below. @@ -960,7 +961,15 @@ if (record.signal === 'Pre-Sell') { - line1 = 'Get ready'; + line1 = 'Ready'; + line2 = 'to SELL.'; + + imageToDraw = smileyGhost; + } + + if (record.signal === 'Pre-Sell-Cancelled') { + + line1 = 'Not ready'; line2 = 'to SELL.'; imageToDraw = smileyGhost; @@ -1123,3 +1132,4 @@ +