From c70713356d6a81788023fd68d1d7e7496a326e82 Mon Sep 17 00:00:00 2001 From: olli Date: Fri, 20 Dec 2024 14:55:10 +0100 Subject: [PATCH] fix empty level var --- strategies/example.strategy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/strategies/example.strategy.sh b/strategies/example.strategy.sh index c28f0c4..9410f96 100644 --- a/strategies/example.strategy.sh +++ b/strategies/example.strategy.sh @@ -205,7 +205,7 @@ do [[ $side = short ]] && entry_price=${v[${asset}_levels_1w_next_up]} # if entry price not given set to current price - [ -z "$entry_price" ] && entry_price=${v[BTCUSDT_price]} + [ -z "$entry_price" ] && entry_price=${v[${asset}_price]} # check for updates if order with entry price is already defined if [ -n "${o[${asset}_open_${side}_entry_price]}" ]