From 18625b2127be535c25fef08ba5f9d8ad3a4eed70 Mon Sep 17 00:00:00 2001 From: olli Date: Fri, 2 Jun 2023 12:31:07 +0200 Subject: [PATCH] added overall result without average --- dabo/analyze.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/dabo/analyze.sh b/dabo/analyze.sh index e9c1a69..76d8cb9 100755 --- a/dabo/analyze.sh +++ b/dabo/analyze.sh @@ -145,6 +145,7 @@ fi analyzecounter=$(cat ${g_tmp}/overall-result-* | egrep -v "^0$" | wc -l) echo "OVERALL RESULT (average): $(cat ${g_tmp}/overall-result-* | awk "{ SUM += \$1 / ${analyzecounter} } END { printf(\"%2.2f\", SUM) }")%" | tee analyze-${analyzedate}/overall-result.log +echo "OVERALL RESULT: $(cat ${g_tmp}/overall-result-* | awk '{ SUM += $1 } END { print SUM }')%" | tee analyze-${analyzedate}/overall-result.log cat analyze-${analyzedate}/*.history.csv.log >analyze-${analyzedate}/analyze-overall.log echo "" | tee -a analyze-${analyzedate}/overall-result.log echo "Trades: $(grep "BUY: " analyze-${analyzedate}/analyze-overall.log | wc -l)" | tee -a analyze-${analyzedate}/overall-result.log