webpage optical output

This commit is contained in:
olli 2023-10-24 11:33:08 +02:00
parent d90ac9834f
commit a3e33728e9
3 changed files with 9 additions and 3 deletions

View File

@ -49,11 +49,12 @@ function genchart {
do
linecolor=$(echo "$colors" | cut -d, -f${fieldnum})
linename=$(cat ${g_tmp}/g_genchart_headline | cut -d, -f${fieldnum} | tr [:lower:] [:upper:])
linelastvalue=$(tail -n1 ${g_tmp}/g_genchart_data | cut -d, -f${fieldnum})
if [ ${fieldnum} -eq 1 ]
then
echo "<b><font color='${color}'>${linename}</font></b><br>"
echo "<p class='legend'><font color='${color}'>${linename} (${linelastvalue})</font></p>"
else
echo "<b><font color='${linecolor}'>${linename}</font></b><br>"
echo "<p class='legend'><font color='${linecolor}'>${linename} (${linelastvalue})</font></p>"
fi >>${g_tmp}/g_genchart/legend
local linenum=1
for line in $(cat ${g_tmp}/g_genchart_data)

View File

@ -266,7 +266,7 @@ function webpage {
</tr><tr><td colspan='4'>" >>../index.html.tmp
echo "<details><summary>${asset} Charts</summary>" >>../index.html.tmp
echo "Price, EMA, Levels" >>../index.html.tmp
genchart asset-histories/${asset}.history.csv 50 2,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39 >>../index.html.tmp
genchart asset-histories/${asset}.history.csv 50 2,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39 green,DarkSlateGrey,DarkSlateGrey,Gold,DarkOrange,DarkOrange,GoldenRod,GoldenRod,GoldenRod,GoldenRod,DarkOrange,DarkOrange,Indigo,DarkSlateBlue,DodgerBlue,DeepSkyBlue >>../index.html.tmp
echo "MACD" >>../index.html.tmp
genchart asset-histories/${asset}.history.csv 50 8,6,7 >>../index.html.tmp
echo "RSIs" >>../index.html.tmp

View File

@ -222,3 +222,8 @@ table, th, td {
vertical-align: top;
}
.legend {
font-weight: bold;
white-space: nowrap;
}