more pure bash to speed up things

This commit is contained in:
olli 2023-11-23 10:33:51 +01:00
parent 418870e81b
commit 6c030dc43f

View File

@ -36,7 +36,7 @@ function check_buy_conditions {
for f_strategy in "${f_buy_strategies_array[@]}"
do
f_echo_prefix="BUY ${f_ASSET}@${CURRENCY}:${f_price}:${f_strategy} - "
if check_buy_conditions_strategy ${f_ASSET_HIST_FILE} ${f_strategy}
if time check_buy_conditions_strategy ${f_ASSET_HIST_FILE} ${f_strategy}
then
f_BUY="${f_echo_prefix} All BUY conditions met!!!"
break
@ -123,7 +123,7 @@ function check_buy_conditions_strategy {
#if [ -s "${f_strategy}" ]
#then
echo "${f_strategy}"
time . "${f_strategy}" || return 1
. "${f_strategy}" || return 1
#else
# g_echo_note "${f_echo_prefix}Strategy file not found"
# return 1