Hacker
Gemma Hadi
@gemmahadi
Elsewhere
Projects
FlaggedTrader
Flagsmith Experimentation HackathonNov 2026
The trading agent whose strategy is decided by feature flags — flip a flag, change its mind. Two Lyzr AI agents (Analyst + Trader) trade simulated crypto on live CoinGecko prices using RSI(14) + SMA200. The Trader's behaviour — which strategy it runs, how much it risks per trade, whether it reasons with Lyzr or a local rule — is read live from Flagsmith feature flags at run time. No redeploy, no code change: flip a flag in the dashboard and the agent behaves differently on the next run. Flags (project toggle-wars, live): trader_strategy multivariate (conservative RSI<25 5% per trade uptrend only / balanced RSI<30 10% / aggressive RSI<35 20% buys the dip), enable_lyzr_reasoning boolean, risk_per_trade remote config. Experiment: same 30 days of real 1h closes (ETH + BTC, CoinGecko, 721 points) replayed through all three variants vs buy-and-hold — buy-and-hold ETH $7,307 (-26.9%) / BTC $7,593 (-24.1%); conservative + balanced $10,000 (0 trades, 0% drawdown); aggressive ETH $9,568 (-4.3%, 3 trades) / BTC $9,656 (-3.4%, 3 trades). Live toggle proof: 12 test identities (4 aggressive / 4 balanced / 4 conservative), divergence on identical data at ETH hour 223 (price $2,339.87, RSI 33.38, SMA200 $2,294.97): aggressive BUY, balanced HOLD, conservative HOLD. Live run 26 Nov: ETH $1,688.11 HOLD, BTC $60,467.12 HOLD, Lyzr reasoning real, portfolio $10,000 paper trade, simulated money only. Stack: Python, Flagsmith SDK, Lyzr Studio (REST), Band, CoinGecko free API. Simulated money only — no real orders, no real money. Not financial advice.