sell defaults

This commit is contained in:
olli 2023-05-26 12:28:37 +02:00
parent b7009343e5
commit 82c0eff0eb

View File

@ -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