INNER CODE UNIT · Python
pct
alex-jb/orallexa-ai-trading-agent · app.py:783
pct = int((idx / max(n_tickers, 1)) * 100)
progress_bar.progress(pct, text=f"Analyzing {tk}... ({idx+1}/{n_tickers})")
status_text.caption(f"Running backtest + walk-forward for **{tk}**")
logger.info("Research: analyzing %s (%d/%d)", tk, idx + 1, n_tickers)
try:
brain = OrallexaBrain(tk)
loop = StrategyLoop(brain)
result = loop.run(
iterations=int(iterations),
save_prefix=None,
train_ratio=float(train_ratio),
wf_train_ratio=float(wf_train_ratio),
wf_test_ratio=float(wf_test_ratio),
wf_step_ratio=float(wf_step_ratio)
)