From 82c0eff0ebb073ca3b5979bbfb8c1b3379fe6478 Mon Sep 17 00:00:00 2001 From: olli Date: Fri, 26 May 2023 12:28:37 +0200 Subject: [PATCH] sell defaults --- dabo/functions/check_sell_conditions.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/dabo/functions/check_sell_conditions.sh b/dabo/functions/check_sell_conditions.sh index 3496f03..b07ce4f 100644 --- a/dabo/functions/check_sell_conditions.sh +++ b/dabo/functions/check_sell_conditions.sh @@ -101,6 +101,27 @@ function check_sell_conditions_strategy { local f_BUY_PRICE="$5" local f_BUY_PRICE_LAST_RATE_DIFF="$6" + # never occur rsi defaults to suppress error messages if no values from strategy given + local SELL_RSI5_SIGNAL_UNTIL="0" + local SELL_RSI14_SIGNAL_UNTIL="0" + local SELL_RSI21_SIGNAL_UNTIL="0" + local SELL_RSI60_SIGNAL_UNTIL="0" + local SELL_RSI120_SIGNAL_UNTIL="0" + local SELL_RSI240_SIGNAL_UNTIL="0" + local SELL_RSI420_SIGNAL_UNTIL="0" + local SELL_RSI720_SIGNAL_UNTIL="0" + local SELL_RSI5_SIGNAL_FROM="101" + local SELL_RSI14_SIGNAL_FROM="101" + local SELL_RSI21_SIGNAL_FROM="101" + local SELL_RSI60_SIGNAL_FROM="101" + local SELL_RSI120_SIGNAL_FROM="101" + local SELL_RSI240_SIGNAL_FROM="101" + local SELL_RSI420_SIGNAL_FROM="101" + local SELL_RSI720_SIGNAL_FROM="101" + + # never occur rsi defaults to suppress error messages if no values from strategy given + local SELL_MACD_RELATION_FROM="101" + # run strategy if [ -s "${f_strategy}" ] then