This commit is contained in:
olli 2023-11-27 11:33:44 +01:00
parent dbd72daa14
commit 2b6e2fb0de

View File

@ -113,24 +113,24 @@ function analyze {
fi fi
fi fi
## Chart Part ## Chart Part
#local f_intrade=0 local f_intrade=0
#local f_score=${f_buy_score} local f_score=${f_buy_score}
#local f_interim="0" local f_interim="0"
#[ -z "${f_buy_score}" ] && f_buy_score=0 [ -z "${f_buy_score}" ] && f_buy_score=0
#if [ -z "${f_sell_score}" ] if [ -z "${f_sell_score}" ]
then
f_sell_score=0
else
f_score=${f_sell_score}
f_intrade=1
#if [ -s ${g_tmp}/interim-${tmpfile} ]
#then #then
# f_sell_score=0 #f_interim=$(tail -n1 ${g_tmp}/interim-${tmpfile})
#else #g_calc "${f_interim}-${FEE}"
# f_score=${f_sell_score} #f_interim=${g_calc_result}
# f_intrade=1 f_interim=${f_real_result}
# #if [ -s ${g_tmp}/interim-${tmpfile} ]
# #then
# #f_interim=$(tail -n1 ${g_tmp}/interim-${tmpfile})
# #g_calc "${f_interim}-${FEE}"
# #f_interim=${g_calc_result}
# f_interim=${f_real_result}
# #fi
#fi #fi
fi
#echo "$f_line,${f_market_performance},${f_score},${f_buy_score},${f_sell_score},${f_intrade},${f_interim}" >>analyze-${analyzedate}/chart-${tmpfile} #echo "$f_line,${f_market_performance},${f_score},${f_buy_score},${f_sell_score},${f_intrade},${f_interim}" >>analyze-${analyzedate}/chart-${tmpfile}
## Chart Part End ## Chart Part End
done done