This commit is contained in:
2026-05-09 16:49:59 +09:00
parent 05f6f007e1
commit c9f4ad93ee

View File

@@ -337,6 +337,10 @@ def main():
if not market_open or xlf_state != "IDLE": if not market_open or xlf_state != "IDLE":
return 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"] bond_ask = state.ask_prices["BOND"]
gs_ask = state.ask_prices["GS"] gs_ask = state.ask_prices["GS"]
@@ -407,6 +411,10 @@ def main():
if not market_open or vale_state != "IDLE": if not market_open or vale_state != "IDLE":
return 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_bid = state.bid_prices["VALE"]
vale_ask = state.ask_prices["VALE"] vale_ask = state.ask_prices["VALE"]