fixes tp/sl
This commit is contained in:
parent
76f556b1ad
commit
b279735ae8
@ -112,7 +112,7 @@ function order {
|
|||||||
f_params="${f_params}'marginMode': '$MARGIN_MODE', "
|
f_params="${f_params}'marginMode': '$MARGIN_MODE', "
|
||||||
|
|
||||||
# calculate amount with leverage
|
# calculate amount with leverage
|
||||||
if [[ $f_price != stoploss ]] && [[ $f_price != takeprofit ]]
|
if [[ $f_type != stoploss ]] && [[ $f_type != takeprofit ]]
|
||||||
then
|
then
|
||||||
g_calc "${f_amount}*${LEVERAGE}"
|
g_calc "${f_amount}*${LEVERAGE}"
|
||||||
f_amount=$g_calc_result
|
f_amount=$g_calc_result
|
||||||
|
Loading…
Reference in New Issue
Block a user