Remove duplicate regime detection to improve performance

This commit is contained in:
Justin Oros
2026-02-09 14:11:26 -07:00
parent 6411a469ea
commit bcf591c940
-6
View File
@@ -1670,12 +1670,6 @@ def main():
signal = None
signal_position_type = None
bars = get_recent_bars(SYMBOL, 50)
if bars is not None:
regime = detect_market_regime(bars, ADX_THRESHOLD)
else:
regime = 'unknown'
if signal in ['buy', 'sell'] and not position_active:
debug_print(f"Signal detected: {signal}, executing trade...")
buying_power = fetch_buying_power(settlement_tracker)