added chart

This commit is contained in:
olli 2023-10-28 17:10:54 +02:00
parent b2ef8fb521
commit bb54ed855f

View File

@ -48,7 +48,7 @@ function analyze {
IFS=$'\n' IFS=$'\n'
# Chart Part # Chart Part
echo "$(head -n1 ${file}),Market Perrormance,Buy Score,Sell Score" >analyze-${analyzedate}/chart-${tmpfile} echo "$(head -n1 ${file}),Market Perrormance,Score,Buy Score,Sell Score" >analyze-${analyzedate}/chart-${tmpfile}
# Chart Part End # Chart Part End
for line in $(egrep "^${ANALYZE_TIME}" "$file" | grep -v ',,') for line in $(egrep "^${ANALYZE_TIME}" "$file" | grep -v ',,')
@ -78,9 +78,14 @@ function analyze {
fi fi
fi fi
# Chart Part # Chart Part
[ -z "${f_sell_score}" ] && f_sell_score=0 local f_score=${f_buy_score}
[ -z "${f_buy_score}" ] && f_buy_score=0 if [ -z "${f_sell_score}" ]
echo "$line,${f_market_performance},${f_buy_score},${f_sell_score}" >>analyze-${analyzedate}/chart-${tmpfile} then
f_sell_score=0
else
f_score=${f_sell_score}
fi
echo "$line,${f_market_performance},${f_score},${f_buy_score},${f_sell_score}" >>analyze-${analyzedate}/chart-${tmpfile}
# Chart Part End # Chart Part End
done done
@ -185,7 +190,7 @@ do
echo "Price, EMA, Levels" >>analyze-${analyzedate}/chart-${tmpfile}.html echo "Price, EMA, Levels" >>analyze-${analyzedate}/chart-${tmpfile}.html
genchart analyze-${analyzedate}/chart-${tmpfile} 500 2,25,26,27,28,29,30,31,32,33,34,35,4,36,37,38,39 green,DarkSlateGrey,DarkSlateGrey,Gold,DarkOrange,DarkOrange,GoldenRod,GoldenRod,GoldenRod,GoldenRod,DarkOrange,DarkOrange,MidnightBlue,Indigo,DarkSlateBlue,DodgerBlue,DeepSkyBlue >>analyze-${analyzedate}/chart-${tmpfile}.html genchart analyze-${analyzedate}/chart-${tmpfile} 500 2,25,26,27,28,29,30,31,32,33,34,35,4,36,37,38,39 green,DarkSlateGrey,DarkSlateGrey,Gold,DarkOrange,DarkOrange,GoldenRod,GoldenRod,GoldenRod,GoldenRod,DarkOrange,DarkOrange,MidnightBlue,Indigo,DarkSlateBlue,DodgerBlue,DeepSkyBlue >>analyze-${analyzedate}/chart-${tmpfile}.html
echo "Score" >>analyze-${analyzedate}/chart-${tmpfile}.html echo "Score" >>analyze-${analyzedate}/chart-${tmpfile}.html
genchart analyze-${analyzedate}/chart-${tmpfile} 500 41,42 green,blue >>analyze-${analyzedate}/chart-${tmpfile}.html genchart analyze-${analyzedate}/chart-${tmpfile} 500 41,42,43 Green,DeepSkyBlue,Orange >>analyze-${analyzedate}/chart-${tmpfile}.html
#echo "Sell Score" >>analyze-${analyzedate}/chart-${tmpfile}.html #echo "Sell Score" >>analyze-${analyzedate}/chart-${tmpfile}.html
#genchart analyze-${analyzedate}/chart-${tmpfile} 500 42 green,blue >>analyze-${analyzedate}/chart-${tmpfile}.html #genchart analyze-${analyzedate}/chart-${tmpfile} 500 42 green,blue >>analyze-${analyzedate}/chart-${tmpfile}.html
echo "MACD" >>analyze-${analyzedate}/chart-${tmpfile}.html echo "MACD" >>analyze-${analyzedate}/chart-${tmpfile}.html