multiple orders in array
This commit is contained in:
parent
a45b4e5f51
commit
4cbff23680
@ -102,18 +102,18 @@ function get_order_line_vars {
|
||||
local f_type
|
||||
if [[ $f_order_type = limit ]]
|
||||
then
|
||||
[[ $f_order_type = buy ]] && f_type="open_long"
|
||||
[[ $f_order_type = sell ]] && f_type="open_short"
|
||||
[[ $f_order_side = buy ]] && f_type="open_long"
|
||||
[[ $f_order_side = sell ]] && f_type="open_short"
|
||||
fi
|
||||
if [[ $f_order_type = Stop ]]
|
||||
then
|
||||
[[ $f_order_type = buy ]] && f_type="sl_close_short"
|
||||
[[ $f_order_type = sell ]] && f_type="sl_close_long"
|
||||
[[ $f_order_side = buy ]] && f_type="sl_close_short"
|
||||
[[ $f_order_side = sell ]] && f_type="sl_close_long"
|
||||
fi
|
||||
if [[ $f_order_type = MarketIfTouched ]]
|
||||
then
|
||||
[[ $f_order_type = buy ]] && f_type="tp_close_short"
|
||||
[[ $f_order_type = sell ]] && f_type="tp_close_long"
|
||||
[[ $f_order_side = buy ]] && f_type="tp_close_short"
|
||||
[[ $f_order_side = sell ]] && f_type="tp_close_long"
|
||||
fi
|
||||
|
||||
o[${f_asset}_${f_type}_type]=${f_order_array[1]}
|
||||
|
Loading…
Reference in New Issue
Block a user