debug
This commit is contained in:
parent
6f312c5f30
commit
60adc3e61c
@ -23,7 +23,8 @@ function g_echo_note {
|
|||||||
function analyze {
|
function analyze {
|
||||||
|
|
||||||
local file=$1
|
local file=$1
|
||||||
tmpfile=$(basename "${file}")
|
g_basename ${file}
|
||||||
|
tmpfile=${g_basename_result}
|
||||||
|
|
||||||
. /etc/bash/gaboshlib.include
|
. /etc/bash/gaboshlib.include
|
||||||
g_tmp="$2"
|
g_tmp="$2"
|
||||||
@ -115,25 +116,25 @@ function analyze {
|
|||||||
check_buy_conditions ${g_tmp}/${tmpfile}
|
check_buy_conditions ${g_tmp}/${tmpfile}
|
||||||
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
|
# then
|
||||||
f_sell_score=0
|
# f_sell_score=0
|
||||||
else
|
# else
|
||||||
f_score=${f_sell_score}
|
# f_score=${f_sell_score}
|
||||||
f_intrade=1
|
# f_intrade=1
|
||||||
if [ -s ${g_tmp}/interim-${tmpfile} ]
|
# if [ -s ${g_tmp}/interim-${tmpfile} ]
|
||||||
then
|
# then
|
||||||
f_interim=$(tail -n1 ${g_tmp}/interim-${tmpfile})
|
# f_interim=$(tail -n1 ${g_tmp}/interim-${tmpfile})
|
||||||
g_calc "${f_interim}-${FEE}"
|
# g_calc "${f_interim}-${FEE}"
|
||||||
f_interim=${g_calc_result}
|
# f_interim=${g_calc_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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user