From 9381021ac2d5e55737ea4cbab8f11bc1a2233fde Mon Sep 17 00:00:00 2001 From: Nawaz Haider Date: Sat, 3 Jan 2026 15:11:24 +0600 Subject: [PATCH] Fix trading trend condition by comparing up_bid_price with down_bid_price --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 26b984f..86b598a 100644 --- a/main.py +++ b/main.py @@ -80,7 +80,7 @@ async def main(): down_ask_price = 1 - up_bid_price down_bid_price = 1 - up_ask_price - up_trend = up_bid_price > down_ask_price + up_trend = up_bid_price > down_bid_price if trades < MAX_TRADES: trading_side = book.last_signal