From 7d27642d9a9fe2caeaa9dd650f422b493cca5635 Mon Sep 17 00:00:00 2001 From: olli Date: Fri, 19 May 2023 08:02:24 +0200 Subject: [PATCH] fixes --- dabo/analyze.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dabo/analyze.sh b/dabo/analyze.sh index 2187a9e..379cd92 100755 --- a/dabo/analyze.sh +++ b/dabo/analyze.sh @@ -68,7 +68,11 @@ function analyze { if ! [ -f "${g_tmp}/open-${tmpfile}" ] then f_market_performance=$(grep "^$time" data/botdata/MARKET_PERFORMANCE | tail -n1 | cut -d: -f4 | cut -d"%" -f1 | sed 's/ *//') - [ -z "${f_market_performance}" ] && continue + if [ -z "${f_market_performance}" ] + then + g_echo_note "No market performanvce data found - forcing good market (100)" + f_market_performance=100 + fi for f_strategy in $(find strategies -name "buy.*.conf" -type f) do if [ "${ANALYZE_VERBOSE}" -eq "0" ]