← Home
CLI · Trading

Stock Trading Agent

An algorithmic grid-trading bot for equities.

Stock Trading Agent screenshot
Stack
Python, pandas, broker REST API

What It Does

I wanted to experiment with trading on volatility and so I built this, one of my first AI-assisted projects. It has a ton of features, the extensive backtesting capability being noteworthy. It can trade for real using the Alpaca API and it helped me test and consider a lot of trading strategies as well as learn a lot about how algorithmic trading works.

How it works

You give it a ticker and a date range, it replays the daily price history bar by bar and pretends to trade it, buying every big down day, selling on whatever exit rule you picked, then charts what your money would have done against just buying and holding the thing instead. It supports much more advanced grid-based trading strategies with a million parameters but in the end, nothing beats the market.

Built with