Ali Basit

AI + fintech automation · 2026

Momentum Trading Bot

An automated penny-stock momentum bot for Alpaca with an AI analysis layer that advises but can never override hard risk rules.

Client project, delivered. Open source.

Risk guards
4
CI
Green

The brief

A trader wanted a disciplined daily premarket strategy executed without emotion, with AI judgement on momentum quality but strict guardrails around money.

What I built

  • Premarket scanner with price, volume and momentum filters
  • AI judge (local Ollama or Claude) that fails safe: unreachable means no trade
  • Risk manager with position sizing, one-trade-per-day and PDT guards
  • Scale-out exits, stop loss, forced end-of-day flat, and position recovery on restart
  • Flask dashboard with live equity, candidates, P&L and in-browser strategy config
  • pytest suite and GitHub Actions CI

The hard parts

AI that advises but cannot act

The model's verdict is one input to a deterministic risk layer, so a hallucination can skip a trade but never place one.

What shipped

  • Paper-trading by default, documented go-live checklist, security review

Need something like this?

Written scope and fixed price within two working days of a call.

Start a project

Next: AI Life Manager