added chart
This commit is contained in:
parent
a526670278
commit
1a986b98d4
@ -48,7 +48,7 @@ function analyze {
|
||||
IFS=$'\n'
|
||||
|
||||
# Chart Part
|
||||
echo "$(head -n1 ${file}),Market Perrormance,Score,Buy Score,Sell Score,InTrade" >analyze-${analyzedate}/chart-${tmpfile}
|
||||
echo "$(head -n1 ${file}),Market Perrormance,Score,Buy Score,Sell Score,InTrade,Inetrim Result" >analyze-${analyzedate}/chart-${tmpfile}
|
||||
# Chart Part End
|
||||
|
||||
for line in $(egrep "^${ANALYZE_TIME}" "$file" | grep -v ',,')
|
||||
@ -92,7 +92,8 @@ function analyze {
|
||||
f_score=${f_sell_score}
|
||||
f_intrade=1
|
||||
fi
|
||||
echo "$line,${f_market_performance},${f_score},${f_buy_score},${f_sell_score},${f_intrade}" >>analyze-${analyzedate}/chart-${tmpfile}
|
||||
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
|
||||
|
||||
@ -197,7 +198,7 @@ do
|
||||
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" >>analyze-${analyzedate}/chart-${tmpfile}.html
|
||||
genchart analyze-${analyzedate}/chart-${tmpfile} 500 3,41,42,44 Green,DeepSkyBlue,Orange,Red >>analyze-${analyzedate}/chart-${tmpfile}.html
|
||||
genchart analyze-${analyzedate}/chart-${tmpfile} 500 41,42,44,45 Green,DeepSkyBlue,Orange,Red >>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
|
||||
echo "MACD" >>analyze-${analyzedate}/chart-${tmpfile}.html
|
||||
|
Loading…
Reference in New Issue
Block a user