From 95b32c27eb3cb0da634a65a04abf2e2f4e916714 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Mon, 11 May 2020 20:48:10 +0200 Subject: [PATCH] Update TradingSimulation.js --- TaskServer/TradingSimulation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TaskServer/TradingSimulation.js b/TaskServer/TradingSimulation.js index ca82f07f2..991d4931d 100644 --- a/TaskServer/TradingSimulation.js +++ b/TaskServer/TradingSimulation.js @@ -56,13 +56,13 @@ /* Stop Loss Management */ - const MIN_STOP_LOSS_VALUE = 1 // We can not let the stop be zero to avoid division by 0 error or infinity numbers as a result. + const MIN_STOP_LOSS_VALUE = 0.0000000001 // We can not let the stop be zero to avoid division by 0 error or infinity numbers as a result. const MAX_STOP_LOSS_VALUE = Number.MAX_SAFE_INTEGER let stopLoss = 0; /* Take Profit Management */ - const MIN_TAKE_PROFIT_VALUE = 1 // We can not let the buy order be zero to avoid division by 0 error or infinity numbers as a result. + const MIN_TAKE_PROFIT_VALUE = 0.0000000001 // We can not let the buy order be zero to avoid division by 0 error or infinity numbers as a result. const MAX_TAKE_PROFIT_VALUE = Number.MAX_SAFE_INTEGER let takeProfit = 0;