diff --git a/bot_x.py b/bot_x.py index a725bdf..125ee67 100644 --- a/bot_x.py +++ b/bot_x.py @@ -337,6 +337,10 @@ def main(): if not market_open or xlf_state != "IDLE": return + if any(mean_rev.position.get(s) is not None for s in symbols_for_mr): + return + if any(cross_ema.last_signal.get(s) is not None for s in symbols_for_ema): + return bond_ask = state.ask_prices["BOND"] gs_ask = state.ask_prices["GS"] @@ -407,6 +411,10 @@ def main(): if not market_open or vale_state != "IDLE": return + if any(mean_rev.position.get(s) is not None for s in symbols_for_mr): + return + if any(cross_ema.last_signal.get(s) is not None for s in symbols_for_ema): + return vale_bid = state.bid_prices["VALE"] vale_ask = state.ask_prices["VALE"]