fix: summary
This commit is contained in:
parent
32ce427a5a
commit
4579fcd3c6
@ -87,7 +87,7 @@ function analyze {
|
||||
|
||||
hodlresult=$(g_percentage-diff $(egrep "^${ANALYZE_TIME}" "$file" | grep -v ',,' | head -n1 | cut -d, -f2) $(egrep "^${ANALYZE_TIME}" "$file" | grep -v ',,' | tail -n1 | cut -d, -f2))
|
||||
|
||||
echo "COMPLETE-RESULT ${complete_result}% (HODL:${hodlresult}%) -> $file analyze-${analyzedate}/${tmpfile}.log" | perl -pe 's/ /\t/g' | tee -a ${g_tmp}/output-${tmpfile}
|
||||
echo "COMPLETE-RESULT $(basename "$file" | cut -d. -f1) ${complete_result}% HODL:${hodlresult}% analyze-${analyzedate}/${tmpfile}.log $file" | perl -pe 's/ /\t/g' | tee -a ${g_tmp}/output-${tmpfile}
|
||||
echo "=====================================" >>${g_tmp}/output-${tmpfile}
|
||||
echo "${complete_result}" >>${g_tmp}/overall-result-${tmpfile}
|
||||
|
||||
@ -155,9 +155,9 @@ echo "Interim results: $(grep "INTERIM RESULT: " analyze-${analyzedate}/analyze-
|
||||
echo "Interim results positive: $(grep "INTERIM RESULT: [0-9]" analyze-${analyzedate}/analyze-overall.log | wc -l)" | tee -a analyze-${analyzedate}/overall-result.log
|
||||
echo "Interim results negative: $(grep "INTERIM RESULT: -" analyze-${analyzedate}/analyze-overall.log | wc -l)" | tee -a analyze-${analyzedate}/overall-result.log
|
||||
echo "" | tee -a analyze-${analyzedate}/overall-result.log
|
||||
echo "First interim result after BUY positive: $(grep "BUY: " -A6 analyze-${analyzedate}/analyze-overall.log | grep "INTERIM RESULT: [0-9]" | grep -v "0.00" | wc -l)" | tee -a analyze-${analyzedate}/overall-result.log
|
||||
echo "First interim result after BUY negative: $(grep "BUY: " -A6 analyze-${analyzedate}/analyze-overall.log | grep "INTERIM RESULT: -" | wc -l)" | tee -a analyze-${analyzedate}/overall-result.log
|
||||
echo "First interim result after BUY neutral 0.00: $(grep "BUY: " -A6 analyze-${analyzedate}/analyze-overall.log | grep "INTERIM RESULT: -" | wc -l)" | tee -a analyze-${analyzedate}/overall-result.log
|
||||
echo "First interim result after BUY positive: $(grep "BUY: " -A5 analyze-${analyzedate}/analyze-overall.log | grep "^INTERIM RESULT: [0-9]" | grep -v "0.00" | wc -l)" | tee -a analyze-${analyzedate}/overall-result.log
|
||||
echo "First interim result after BUY negative: $(grep "BUY: " -A5 analyze-${analyzedate}/analyze-overall.log | grep "^INTERIM RESULT: -" | wc -l)" | tee -a analyze-${analyzedate}/overall-result.log
|
||||
echo "First interim result after BUY neutral 0.00: $(grep "BUY: " -A5 analyze-${analyzedate}/analyze-overall.log | grep "^INTERIM RESULT: 0.00" | wc -l)" | tee -a analyze-${analyzedate}/overall-result.log
|
||||
|
||||
echo "
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user