forked from kodorvan/stcs
Fixed check tp sl price
This commit is contained in:
@@ -382,9 +382,9 @@ async def open_positions(
|
|||||||
take_profit_price = max(take_profit_price, 0)
|
take_profit_price = max(take_profit_price, 0)
|
||||||
stop_loss_price = max(stop_loss_price, 0)
|
stop_loss_price = max(stop_loss_price, 0)
|
||||||
|
|
||||||
if take_profit_price < price_symbol:
|
if safe_float(take_profit_price) < safe_float(price_symbol):
|
||||||
take_profit_price = None
|
take_profit_price = None
|
||||||
if stop_loss_price > price_symbol:
|
if safe_float(stop_loss_price) > safe_float(price_symbol):
|
||||||
stop_loss_price = None
|
stop_loss_price = None
|
||||||
|
|
||||||
# Place order
|
# Place order
|
||||||
|
Reference in New Issue
Block a user