Retail Investor Builds a Semi-Automated Stock Trading Script with Claude and a Graham Formula

Elfwood86 · reddit · 2026-09-29

A beginner shares a semi-automated investing setup built with Claude-generated Python code stored on Google Drive: it runs manually each morning (takes 2 seconds) and trades by preset rules across 34 stocks (Nvidia, Apple, Microsoft, AMD, etc.).

Stock selection uses a valuation formula combining Benjamin Graham's approach with Buffett-style discounted cash flow. Trading rules include specific thresholds: buy $5 on a 5% daily drop, $15 on 15%, skip at 20%; scale out at +5%/+10%/+15% gains, sell all at +100%; no day trading, no selling at a loss.

The author plans to paper trade the setup first, admitting the rules aren't polished yet — it's framed as a fun experiment.

Original post →

More from coding & agent

coding & agent channel →