added chart
This commit is contained in:
parent
1a986b98d4
commit
89268af36d
@ -84,6 +84,7 @@ function analyze {
|
||||
# Chart Part
|
||||
local f_intrade=0
|
||||
local f_score=${f_buy_score}
|
||||
local f_interim=0
|
||||
[ -z "${f_buy_score}" ] && f_buy_score=0
|
||||
if [ -z "${f_sell_score}" ]
|
||||
then
|
||||
@ -91,8 +92,8 @@ function analyze {
|
||||
else
|
||||
f_score=${f_sell_score}
|
||||
f_intrade=1
|
||||
[ -s ${g_tmp}/interim-${tmpfile} ] && f_interim=$(tail -n1 ${g_tmp}/interim-${tmpfile})
|
||||
fi
|
||||
local f_interim=$(tail -n1 ${g_tmp}/interim-${tmpfile})
|
||||
echo "$line,${f_market_performance},${f_score},${f_buy_score},${f_sell_score},${f_intrade},${f_interim}" >>analyze-${analyzedate}/chart-${tmpfile}
|
||||
# Chart Part End
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user