From bce1a3456cfb3fa308766846206e7b3b68a9a64d Mon Sep 17 00:00:00 2001 From: olli Date: Wed, 17 May 2023 11:33:13 +0200 Subject: [PATCH] typo --- dabo/analyze.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dabo/analyze.sh b/dabo/analyze.sh index bc4f842..e85d66e 100755 --- a/dabo/analyze.sh +++ b/dabo/analyze.sh @@ -47,7 +47,7 @@ function analyze { return 1 fi - for line in $(egrep "^${ANALYZE_TIME}" "$file" | grep -v ',,') + for line in $(egrep "^${ANALYZE_TIME}" "$file" | grep -v ',,' do IFS="$ORIGIFS" current=$(echo $line | cut -d, -f2) @@ -157,7 +157,7 @@ fi echo "OVERALL RESULT: $(cat ${g_tmp}/overall-result-* | awk '{ SUM += $1 } END { printf("%2.2f", 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 +echo "Trades: $(grep "BUY: " analyze-${analyzedate}/analyze-overall.log | wc -l)" | tee -a analyze-${analyzedate}/overall-result.log echo "Trade results positive: $(grep "^RESULT: " analyze-${analyzedate}/analyze-overall.log | grep ": [0-9]" | wc -l)" | tee -a analyze-${analyzedate}/overall-result.log echo "Trade results negative: $(grep "^RESULT: " analyze-${analyzedate}/analyze-overall.log | grep ": -" | wc -l)" | tee -a analyze-${analyzedate}/overall-result.log echo "Trade results neutral: $(grep "^RESULT: " analyze-${analyzedate}/analyze-overall.log | grep ": 0.00" | wc -l)" | tee -a analyze-${analyzedate}/overall-result.log