more pure bash to speed up things
This commit is contained in:
parent
0a079d72cc
commit
9f3520eb27
@ -1,5 +1,7 @@
|
|||||||
function get_vars_from_csv {
|
function get_vars_from_csv {
|
||||||
|
|
||||||
|
set -x
|
||||||
|
|
||||||
f_ASSET_HIST_FILE="$1"
|
f_ASSET_HIST_FILE="$1"
|
||||||
if ! [ -s "${f_ASSET_HIST_FILE}" ]
|
if ! [ -s "${f_ASSET_HIST_FILE}" ]
|
||||||
then
|
then
|
||||||
@ -80,9 +82,7 @@ f_price_trend=${f_price_trend}"
|
|||||||
# MACD EMA
|
# MACD EMA
|
||||||
get_var_from_line ema12 4
|
get_var_from_line ema12 4
|
||||||
get_var_from_line ema26 5
|
get_var_from_line ema26 5
|
||||||
|
|
||||||
|
|
||||||
set -x
|
|
||||||
# MACD
|
# MACD
|
||||||
get_var_from_line macd_histogram 8
|
get_var_from_line macd_histogram 8
|
||||||
get_var_from_line macd_signal_relation 9
|
get_var_from_line macd_signal_relation 9
|
||||||
@ -92,7 +92,6 @@ f_price_trend=${f_price_trend}"
|
|||||||
f_all_vars="${f_all_vars}
|
f_all_vars="${f_all_vars}
|
||||||
f_macd_histogram_relation=${f_macd_histogram_relation}
|
f_macd_histogram_relation=${f_macd_histogram_relation}
|
||||||
f_macd_histogram_signal=${f_macd_histogram_signal}"
|
f_macd_histogram_signal=${f_macd_histogram_signal}"
|
||||||
set +x
|
|
||||||
|
|
||||||
# rsi
|
# rsi
|
||||||
get_var_from_line rsi5 10
|
get_var_from_line rsi5 10
|
||||||
@ -137,8 +136,6 @@ f_macd_histogram_signal=${f_macd_histogram_signal}"
|
|||||||
# Coingecko price
|
# Coingecko price
|
||||||
get_var_from_line coingecko_price 40a
|
get_var_from_line coingecko_price 40a
|
||||||
|
|
||||||
set | grep f_ 1>&2
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_var_from_line {
|
function get_var_from_line {
|
||||||
|
Loading…
Reference in New Issue
Block a user