Derek Yu

2026 · Trading systems

Claude Coin

Momentum trading bot on Alpaca with an optional Gemini + Tavily layer that advises each order from market news.

Claude Coin video poster
Problem
A live strategy needs the same signals as its backtest, market-hours discipline, and a way to override mechanical entries when news disagrees—without placing duplicate orders on restart.
Approach
Daily SMA crossover (fast 10 / slow 30) is the primary signal. A cycle every 15 minutes fetches bars, computes buy/sell/hold, and optionally asks Gemini with Tavily news to confirm, reduce, skip, or override. Telegram handles alerts and remote start/stop. Same-bar dedup lives in local state.
Outcome
Paper and live paths share one strategy module. Backtests, parameter sweeps, and a Telegram command listener sit beside the bot so the system can be inspected without logging into a broker UI.

Stack

Python · Alpaca · Gemini · Tavily · Telegram