From 632a475428e01a963877ccad8e8938260fde3af9 Mon Sep 17 00:00:00 2001 From: adonunes Date: Mon, 19 Aug 2024 21:17:47 -0400 Subject: [PATCH] fix Sl =" --- DiscordAlertsTrader/message_parser.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/DiscordAlertsTrader/message_parser.py b/DiscordAlertsTrader/message_parser.py index aa56133..bf2c2f9 100644 --- a/DiscordAlertsTrader/message_parser.py +++ b/DiscordAlertsTrader/message_parser.py @@ -185,6 +185,9 @@ def make_order_exits(order, msg, str_prt, asset): order["PT2"] = pt2_v order["PT3"] = pt3_v order["SL"] = sl_v + + if order["SL"] == "": + order["SL"] = None exits = ["PT1","PT2","PT3","SL"] for ext in exits: