Compare commits
No commits in common. "5fd81a7083ec8b6665fc0c4d41aacbb1ab6c57f4" and "82fbaedebe5640ce03afc5581a5e1aaa8ae869db" have entirely different histories.
5fd81a7083
...
82fbaedebe
@ -46,7 +46,7 @@ function get_range {
|
||||
local f_resist3=$(echo "scale=8; ${f_pivot_point}+((${f_highest_in_range}-${f_lowest_in_range})*1)" | bc | sed 's/^\./0./;' )
|
||||
|
||||
# write down in history
|
||||
echo -n ",${f_range_periods},${f_lowest_in_range},${f_highest_in_range},${f_pivot_point},${f_support1},${f_resist1},${f_golden_pocket_support},${f_golden_pocket_resist},${f_golden_pocket65_support},${f_golden_pocket65_resist},${f_support3},${f_resist3}" >>"${f_hist_file}"
|
||||
echo -n "${f_range_periods},${f_lowest_in_range},${f_highest_in_range},${f_pivot_point},${f_support1},${f_resist1},${f_golden_pocket_support},${f_golden_pocket_resist},${f_golden_pocket65_support},${f_golden_pocket65_resist},${f_support3},${f_resist3}" >>"${f_hist_file}"
|
||||
|
||||
}
|
||||
|
||||
|
@ -223,17 +223,13 @@ 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
|
||||
# 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 "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
|
||||
|
||||
echo "</details></td></tr>" >>../index.html.tmp
|
||||
else
|
||||
echo "</tr>" >>../index.html.tmp
|
||||
|
Loading…
x
Reference in New Issue
Block a user