closed trade chart cache
This commit is contained in:
parent
82fbaedebe
commit
6a19752f55
@ -223,13 +223,17 @@ function webpage {
|
||||
local tradeintervals=$(cat ${interimfile} | wc -l)
|
||||
head -n1 asset-histories/${asset}.history.csv >${g_tmp}/trade.csv
|
||||
grep -A ${tradeintervals} "${tradedatebuy}:" asset-histories/${asset}.history.csv >>${g_tmp}/trade.csv
|
||||
echo "Price, EMA, Levels" >>../index.html.tmp
|
||||
genchart "${g_tmp}/trade.csv" ${tradeintervals} 2,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39 >>../index.html.tmp
|
||||
echo "MACD" >>../index.html.tmp
|
||||
genchart "${g_tmp}/trade.csv" ${tradeintervals} 8,6,7 >>../index.html.tmp
|
||||
echo "RSIs" >>../index.html.tmp
|
||||
genchart "${g_tmp}/trade.csv" ${tradeintervals} 10,11,12,14,15,16,17,13 >>../index.html.tmp
|
||||
|
||||
# cache old trade charts
|
||||
if ! [ -s "${interimfile}.chart" ]
|
||||
then
|
||||
echo "Price, EMA, Levels" >${interimfile}.chart
|
||||
genchart "${g_tmp}/trade.csv" ${tradeintervals} 2,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39 >>${interimfile}.chart
|
||||
echo "MACD" >>${interimfile}.chart
|
||||
genchart "${g_tmp}/trade.csv" ${tradeintervals} 8,6,7 >>${interimfile}.chart
|
||||
echo "RSIs" >>${interimfile}.chart
|
||||
genchart "${g_tmp}/trade.csv" ${tradeintervals} 10,11,12,14,15,16,17,13 >>${interimfile}.chart
|
||||
fi
|
||||
cat "${interimfile}.chart" >>../index.html.tmp
|
||||
echo "</details></td></tr>" >>../index.html.tmp
|
||||
else
|
||||
echo "</tr>" >>../index.html.tmp
|
||||
|
Loading…
Reference in New Issue
Block a user