Compare commits

..

3 Commits

Author SHA1 Message Date
492d9babfa fix IFS 2024-08-27 16:28:34 +02:00
ab06193f07 fix no .* files 2024-08-26 17:51:22 +02:00
ab1c3551f9 fix path 2024-08-26 13:51:34 +02:00
3 changed files with 3 additions and 2 deletions

View File

@ -32,7 +32,7 @@ do
. ../../dabo-bot.conf
. ../../dabo-bot.override.conf
# notify failed yahoo downloads
[ "$interval" = "1d" ] && cat *USD_* *ECONOMY* 2>/dev/null | notify.sh -s "Failed Yahoo downloads"
[ "$interval" = "1d" ] && cat FAILED_YAHOO/*USD_* FAILED_YAHOO/*ECONOMY* 2>/dev/null | notify.sh -s "Failed Yahoo downloads"
# Timestamp
export f_timestamp=$(g_date_print)
# get candles and indicators

View File

@ -75,6 +75,7 @@ function get_values {
# add current price and sort
f_levels+=("${v[${f_asset}_price]}")
IFS=$'\n' f_levels_sorted=($(sort -n <<<"${f_levels[*]}"))
unset IFS
# find current price and +- one for upper lower price
for ((i=0; i<${#f_levels_sorted[@]}; i++)); do

View File

@ -30,7 +30,7 @@ function run_strategies {
get_symbols_ticker
get_values ${f_symbols_array_trade[*]}
for f_strategy in $(find /dabo/strategies -type f -name "*strategy*")
for f_strategy in $(find /dabo/strategies -type f -name "*strategy*" ! -name "\.*")
do
if ! bash -n "${f_strategy}" >$g_tmp/strat_bash_error 2>&1
then