From 10481b68afa1fec2be7120c8c0fe79fcdebda2ee Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Tue, 17 Mar 2020 09:30:00 +0100 Subject: [PATCH] reporting for autoscale --- TradingSimulation.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/TradingSimulation.js b/TradingSimulation.js index 5b31af848..1f0054a73 100644 --- a/TradingSimulation.js +++ b/TradingSimulation.js @@ -514,6 +514,14 @@ record = records[i]; + /* Contributing to Auto-Scale*/ + if (record.stopLoss !== 0) { + coordinateSystem.reportYValue(record.stopLoss) + } + if (record.takeProfit !== 0) { + coordinateSystem.reportYValue(record.takeProfit) + } + /* Send the current record to the panel */ if (userPositionDate >= record.begin && userPositionDate <= record.end) {