added chart
This commit is contained in:
parent
2502ac780d
commit
f2ffb63185
@ -58,9 +58,6 @@ function analyze {
|
||||
time=$(echo $line | cut -d, -f1 | cut -d: -f1,2)
|
||||
f_market_performance=$(grep "^$time" data/botdata/MARKET_PERFORMANCE | tail -n1 | cut -d: -f4 | cut -d"%" -f1 | sed 's/ *//')
|
||||
echo "$line" >>${g_tmp}/${tmpfile}
|
||||
# Chart Part
|
||||
echo "$line,${f_market_performance},${f_score}" >>analyze-${analyzedate}/chart-${tmpfile}
|
||||
# Chart Part End
|
||||
echo " ${line},${f_market_performance}" | perl -pe 's/([0-9].[0-9][0-9][0-9][0-9][0-9][0-9])[0-9]+/$1/g' | column -t -s, >>${g_tmp}/output-${tmpfile}
|
||||
if [ -f "${g_tmp}/open-${tmpfile}" ]
|
||||
then
|
||||
@ -80,6 +77,9 @@ function analyze {
|
||||
check_buy_conditions ${g_tmp}/${tmpfile}
|
||||
fi
|
||||
fi
|
||||
# Chart Part
|
||||
echo "$line,${f_market_performance},${f_buy_score},${f_sell_score}" >>analyze-${analyzedate}/chart-${tmpfile}
|
||||
# Chart Part End
|
||||
done
|
||||
|
||||
# sell at the end to have a final result.
|
||||
@ -173,8 +173,8 @@ do
|
||||
echo "<html><head>
|
||||
<meta charset='UTF-8'>
|
||||
<meta name='viewport' content='width=device-width, initial-scale=1'>
|
||||
<link rel='stylesheet' type='text/css' href='../dabo/data/browser.css'>
|
||||
<link rel='stylesheet' type='text/css' href='../dabo/data/charts.min.css'>
|
||||
<link rel='stylesheet' type='text/css' href='../data/browser.css'>
|
||||
<link rel='stylesheet' type='text/css' href='../data/charts.min.css'>
|
||||
<title>analyze.sh ${ANALYZE_TIME}</title>
|
||||
</head>
|
||||
<body>
|
||||
@ -182,6 +182,8 @@ do
|
||||
" >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
|
||||
echo "Score"
|
||||
genchart analyze-${analyzedate}/chart-${tmpfile} 500 41,42 red,yellow >>analyze-${analyzedate}/chart-${tmpfile}.html
|
||||
echo "MACD" >>analyze-${analyzedate}/chart-${tmpfile}.html
|
||||
genchart analyze-${analyzedate}/chart-${tmpfile} 500 8,6,7 >>analyze-${analyzedate}/chart-${tmpfile}.html
|
||||
echo "RSIs" >>analyze-${analyzedate}/chart-${tmpfile}.html
|
||||
|
Loading…
Reference in New Issue
Block a user