diff --git a/dabo/functions/check_for_sell.sh b/dabo/functions/check_for_sell.sh index 08c247d..6c147d0 100644 --- a/dabo/functions/check_for_sell.sh +++ b/dabo/functions/check_for_sell.sh @@ -22,7 +22,7 @@ function check_for_sell { do_trade ${f_ASSET} ${CURRENCY} ${f_QUANTITY_CURRENCY} sell "${f_msg}" continue fi - if tail -n1 $f_ASSET_HIST_FILE | grep -q "^$(date +%Y-%m-%d)" + if tail -n1 $f_ASSET_HIST_FILE | egrep -q "^$(date +%Y-%m-%d)|$(date +%Y-%m-%d -d yesterday)" then check_sell_conditions "${f_ASSET_HIST_FILE}" "${f_strategy}" else