From 34ac08f1c4743570677f3961caf02a605ff28652 Mon Sep 17 00:00:00 2001 From: olli Date: Fri, 3 Nov 2023 17:00:07 +0100 Subject: [PATCH] g_tmp --- dabo/analyze.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dabo/analyze.sh b/dabo/analyze.sh index 27eea2e..e1fc412 100755 --- a/dabo/analyze.sh +++ b/dabo/analyze.sh @@ -127,7 +127,7 @@ function analyze { echo "COMPLETE:RESULT:$(basename "$file" | cut -d. -f1):: ${complete_result}% HODL:${hodlresult}% analyze-${analyzedate}/${tmpfile}.log $file" | perl -pe 's/ /\t/g; s/:/ /g' | tee -a ${g_tmp}/output-${tmpfile} echo "=====================================" >>${g_tmp}/output-${tmpfile} - echo "${complete_result}" >>${g_tmp}/overall-result-${tmpfile} + echo "${complete_result}" >>/tmp/overall-result-${tmpfile} cat ${g_tmp}/output-${tmpfile} >"analyze-${analyzedate}/${tmpfile}.log" @@ -247,9 +247,9 @@ fi # Chart Part End -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 +analyzecounter=$(cat /tmp/overall-result-* | egrep -v "^0$" | wc -l) +echo "OVERALL RESULT (average): $(cat /tmp/}/overall-result-* | awk "{ SUM += \$1 / ${analyzecounter} } END { printf(\"%2.2f\", SUM) }")%" | tee analyze-${analyzedate}/overall-result.log +echo "OVERALL RESULT: $(cat /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