Fix trading logic conditions for order placement based on market trends

This commit is contained in:
Nawaz Haider
2026-01-15 16:24:53 +06:00
parent 3eeea819a9
commit c97f96765c
+2 -2
View File
@@ -83,7 +83,7 @@ def main():
if get_trades_count() < MAX_TRADES:
trading_side = book.last_signal
if (trading_side == SIGNALES.UP) and not up_trend:
if (trading_side == SIGNALES.UP) and up_trend:
order_ids = place_anchor_and_hedge(
up_token,
down_token,
@@ -98,7 +98,7 @@ def main():
)
time.sleep(MIN_DELAY_BETWEEN_TRADES_SECONDS)
elif (trading_side == SIGNALES.DOWN) and up_trend:
elif (trading_side == SIGNALES.DOWN) and not up_trend:
order_ids = place_anchor_and_hedge(
up_token,
down_token,