AI Trading Team Examples

LumiBot includes several copy-paste AI trading team examples. Each one keeps the Python simple: create agents in initialize(), pass context through them in on_trading_iteration(), and let only the final portfolio-manager or trader agent submit orders. The same file runs with a broker by default, or backtests when you set IS_BACKTESTING = True in the flat runner.

These examples are inspired by public investing styles and firms. They are not affiliated with or endorsed by the investors, firms, or companies named.

Examples

ai_iron_condor.py

A single-agent, AI-only options example with parameterized wing width, delta targets, DTE window, profit/loss exits, and risk caps. Python creates and runs the agent. The system prompt makes the agent retrieve the chain, select and evaluate four contracts, size and submit the atomic multi-leg order, verify fills with orders_get_status, and manage the position later.

ai_opening_range_breakout.py

AI-only opening-range breakout scaffold. Prefer minute bars when available.

ai_vwap.py

AI-only VWAP reclaim / mean-reversion scaffold using indicator and history tools.

ai_credit_spread.py

AI-only vertical credit-spread scaffold using the same generic option tools.

ai_spx_zero_dte_bear_call_team.py

A two-agent SPX experiment. A read-only researcher gathers exact option evidence, then a trading-enabled validator refreshes the evidence, decides, submits one atomic five-point bear call spread package, and verifies the resulting order and positions.

ai_trading_team_citadel_sector_pods.py

Inspired by the pod-style structure associated with Ken Griffin’s Citadel: sector specialists pitch their best ETF ideas, a risk manager challenges the setup, and a portfolio manager rotates into the strongest sector. Watch it live on BotSpot.

ai_trading_team_warren_buffett_value.py

A value-investing team where one agent reads for business quality and annual report evidence, one agent demands valuation discipline, and the portfolio manager buys only the best long-term compounder. Watch it live on BotSpot.

ai_trading_team_ray_dalio_idea_meritocracy.py

A Bridgewater-style idea-meritocracy workflow where growth, inflation, and liquidity agents argue, a disagreement agent stress-tests the assumptions, and the trader chooses one macro ETF. Watch it live on BotSpot.

ai_trading_team_bill_ackman_concentrated.py

A concentrated investing workflow where a quality researcher, activist bull, and short-seller bear debate whether one high-conviction large-cap position deserves capital. Watch it live on BotSpot.

ai_trading_team_bull_bear_leveraged_etf.py

An aggressive bull/bear demo where agents debate leveraged long and inverse ETFs before rotating into one high-conviction ETF. Watch it live on BotSpot.

ai_trading_team_bull_bear_large_cap_stocks.py

The same bull/bear debate structure applied to familiar large-cap stocks, so the reasoning is easier to inspect before using more volatile instruments. Watch it live on BotSpot.

ai_trading_team.py remains the shortest alias for the leveraged ETF example. New code should prefer the descriptive filenames above.