Compare commits
No commits in common. "492d9babfab4bb72ebb6b9ec86bc3c6b254b59ed" and "20e8ddc2c99940010a83078910c9e8ab1c49aae5" have entirely different histories.
492d9babfa
...
20e8ddc2c9
@ -32,7 +32,7 @@ do
|
|||||||
. ../../dabo-bot.conf
|
. ../../dabo-bot.conf
|
||||||
. ../../dabo-bot.override.conf
|
. ../../dabo-bot.override.conf
|
||||||
# notify failed yahoo downloads
|
# notify failed yahoo downloads
|
||||||
[ "$interval" = "1d" ] && cat FAILED_YAHOO/*USD_* FAILED_YAHOO/*ECONOMY* 2>/dev/null | notify.sh -s "Failed Yahoo downloads"
|
[ "$interval" = "1d" ] && cat *USD_* *ECONOMY* 2>/dev/null | notify.sh -s "Failed Yahoo downloads"
|
||||||
# Timestamp
|
# Timestamp
|
||||||
export f_timestamp=$(g_date_print)
|
export f_timestamp=$(g_date_print)
|
||||||
# get candles and indicators
|
# get candles and indicators
|
||||||
|
@ -75,7 +75,6 @@ function get_values {
|
|||||||
# add current price and sort
|
# add current price and sort
|
||||||
f_levels+=("${v[${f_asset}_price]}")
|
f_levels+=("${v[${f_asset}_price]}")
|
||||||
IFS=$'\n' f_levels_sorted=($(sort -n <<<"${f_levels[*]}"))
|
IFS=$'\n' f_levels_sorted=($(sort -n <<<"${f_levels[*]}"))
|
||||||
unset IFS
|
|
||||||
|
|
||||||
# find current price and +- one for upper lower price
|
# find current price and +- one for upper lower price
|
||||||
for ((i=0; i<${#f_levels_sorted[@]}; i++)); do
|
for ((i=0; i<${#f_levels_sorted[@]}; i++)); do
|
||||||
|
@ -30,7 +30,7 @@ function run_strategies {
|
|||||||
get_symbols_ticker
|
get_symbols_ticker
|
||||||
get_values ${f_symbols_array_trade[*]}
|
get_values ${f_symbols_array_trade[*]}
|
||||||
|
|
||||||
for f_strategy in $(find /dabo/strategies -type f -name "*strategy*" ! -name "\.*")
|
for f_strategy in $(find /dabo/strategies -type f -name "*strategy*")
|
||||||
do
|
do
|
||||||
if ! bash -n "${f_strategy}" >$g_tmp/strat_bash_error 2>&1
|
if ! bash -n "${f_strategy}" >$g_tmp/strat_bash_error 2>&1
|
||||||
then
|
then
|
||||||
|
Loading…
Reference in New Issue
Block a user