Compare commits
3 Commits
20e8ddc2c9
...
492d9babfa
Author | SHA1 | Date | |
---|---|---|---|
492d9babfa | |||
ab06193f07 | |||
ab1c3551f9 |
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user