better overall result (average)
This commit is contained in:
parent
88cfcfa197
commit
bbbf58b367
@ -109,6 +109,8 @@ mkdir "analyze-${analyzedate}"
|
|||||||
cp dabo-bot.conf analyze.conf analyze-${analyzedate}/
|
cp dabo-bot.conf analyze.conf analyze-${analyzedate}/
|
||||||
cp -r strategies analyze-${analyzedate}/
|
cp -r strategies analyze-${analyzedate}/
|
||||||
|
|
||||||
|
analyzecounter=0
|
||||||
|
|
||||||
for file in $@
|
for file in $@
|
||||||
do
|
do
|
||||||
echo "${file}" | egrep -q "BALANCE|MSCI-WORLD-INDEX" && continue
|
echo "${file}" | egrep -q "BALANCE|MSCI-WORLD-INDEX" && continue
|
||||||
@ -120,13 +122,14 @@ do
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [ "${ANALYZE_BATCH}" -eq "0" ]
|
if [ "${ANALYZE_BATCH}" -eq "0" ]
|
||||||
then
|
then
|
||||||
echo -n " \"analyze ${file}\"" >>/tmp/parallel-$$
|
echo -n " \"analyze ${file}\"" >>/tmp/parallel-$$
|
||||||
else
|
else
|
||||||
analyze ${file}
|
analyze ${file}
|
||||||
fi
|
fi
|
||||||
|
analyzecounter=$((analyzecounter+1))
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ "${ANALYZE_BATCH}" -eq "0" ]
|
if [ "${ANALYZE_BATCH}" -eq "0" ]
|
||||||
@ -138,8 +141,7 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
echo "OVERALL RESULT: $(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 { printf("%2.2f", SUM) }')%" | tee analyze-${analyzedate}/overall-result.log
|
|
||||||
cat analyze-${analyzedate}/*.history.csv.log >analyze-${analyzedate}/analyze-overall.log
|
cat analyze-${analyzedate}/*.history.csv.log >analyze-${analyzedate}/analyze-overall.log
|
||||||
echo "" | tee -a analyze-${analyzedate}/overall-result.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
|
||||||
|
Loading…
Reference in New Issue
Block a user