fix empty level var
This commit is contained in:
parent
4a02ad0e51
commit
c70713356d
@ -205,7 +205,7 @@ do
|
|||||||
[[ $side = short ]] && entry_price=${v[${asset}_levels_1w_next_up]}
|
[[ $side = short ]] && entry_price=${v[${asset}_levels_1w_next_up]}
|
||||||
|
|
||||||
# if entry price not given set to current price
|
# 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
|
# check for updates if order with entry price is already defined
|
||||||
if [ -n "${o[${asset}_open_${side}_entry_price]}" ]
|
if [ -n "${o[${asset}_open_${side}_entry_price]}" ]
|
||||||
|
Loading…
Reference in New Issue
Block a user