For the past year, my programming workflow has shifted away from doing everything manually the old-school way. Instead, I’ve been building toward a single goal: chatting with my trading infrastructure like a human being and letting AI agents do the heavy lifting.
In a recent demo, I walked through the current state of this system—an end-to-end algorithmic trading stack where every component talks to each other via Model Context Protocol (MCP) servers. From scraping the morning news and querying government macro data to compiling micro-futures C++ bots and launching them into live markets, everything is now “agentified.”
Here is a breakdown of how the architecture works under the hood.
1. AlphaMind: The Research Brain & Bot Factory
At the top of the funnel is AlphaMind, my research and strategy-generation engine.
Originally, I had built up a library of around 500 bots running on tick-level data. The problem? If you’re trading medium-frequency strategies, tick data creates a lot of unnecessary noise. I made the decision to scrap the old tick approach and rebuild around optimized market data bars—calibrating the best timeframe for both market data and order-execution signaling.
AlphaMind handles the heavy analytical lifting by:
Scraping daily market news and automatically generating new bot ideas based on current events.
Pulling institutional and government macro data—including BLS pricing, housing data, IMF commodities pricing, and PPI—across equities, fixed income, crypto, forex, treasuries, energy, volatility, and rates.
Exposing ~200 quant models and up to 1,000 internal commands that AI agents can call autonomously to analyze market conditions.
2. The Rithmic Gateway GUI: Consolidating the Plumbing
When you have multiple background agents, data streams, and trading executables running simultaneously, managing communications across Rithmic servers gets messy fast.
To solve this, I built a dedicated Graphical User Interface (GUI) for my Rithmic Gateway server. It acts as the central nervous system for the stack—consolidating every active market data stream, background agent, and running bot application into one visual hub.
3. AlphaMint: Pragmatic Money Management & C++ Execution
If AlphaMind is the brain, AlphaMint is the wallet and execution floor.
I’m currently migrating my bots out of Python and rebuilding them as self-contained C++ VS Code projects that compile into standalone Windows executables. Because C++ executables are heavier on local system resources than lightweight scripts, I can’t just blindly run 500 of them at once—I have to be selective about what gets launched and tested.
Inside AlphaMint, the philosophy is strictly practical, especially for smaller accounts:
Ignore vanity backtest returns: When you run a backtest, it’s easy to see inflated, unrealistic return percentages. I don’t pay attention to those. What actually matters is trade count, profit factor, and win ratio.
Long-only momentum: When working with a small account, you are largely limited to momentum-based strategies—so right now, the focus is on long-only setups (like ES futures bullish momentum).
On-the-fly Micro/Mini recompilation: Standard futures contracts (like Gold) can be too large for a small account. Inside AlphaMint, I can select a bot, dynamically allocate capital, recalibrate its bar settings, and recompile the C++ bot directly into a Micro or Mini version with a single click.
(Right now, I have 14 to 18 bar-based C++ bots rebuilt in the new system, with dozens more being generated from daily news.)
4. Chatting With the Market: AI Agents in Action
This is where the MCP server architecture brings everything together. Inside AlphaMint (and a dedicated Agent panel), I can open a chat window, pick my LLM, and simply ask questions in plain English.
Why Speed Matters (Choosing the Model)
I’ve tested a variety of models—including DeepSeek 4 / 4.1 and Qwen—and found them way too slow for live market queries. When you are asking an agent to run dozens of macro and bot-evaluation commands in real time, latency kills the workflow. I’ve settled on Claude Sonnet 4.5; it costs more, but the speed makes it viable for live trading decisions.
A Real-World Workflow
On a mixed market day (S&P 500 and Dow up, NASDAQ down, Gold up), I typed a simple prompt:
“Tell me which bots I should run in the current market conditions.”
Without me touching a single chart or spreadsheet, the agent:
Triggered dozens of internal AlphaMind commands (
canvas plot,crypto price,BLS pricing,IMF commodities, etc.) to read the macro landscape.Evaluated my active library of C++ bots against current conditions.
Returned a ranked Trading Plan—recommending bots like Gold Safe Haven, ES Futures Bullish Momentum, and Copper Futures—complete with realistic profit factors, win ratios, rationale, and specific risk warnings.
From there, I can save that output as a named Trading Plan (e.g., tied to the Sonnet model) and launch the selected C++ bots directly.
5. The Next Step: Autonomous Live Monitoring
The system isn’t 100% finished—I’m still actively debugging some live Rithmic data connection issues on a couple of running bots.
But the foundation is working, and the real unlock is what comes next: pre-programmed autonomous AI agents. Because the agents have access to my entire library of internal AlphaMind and AlphaMint commands, I don’t even have to be the one typing the prompts. Agents can run continuously in the background—monitoring live bots, checking profitability, recalibrating parameters as markets shift, and scanning AlphaMind for new opportunities.
Want to See the Code?
I’ll be releasing one or two sample C++ bots soon so developers and quant traders can inspect how the VS Code project architecture is structured. (Full disclosure: the free samples won’t be my profitable live strategies, but they will show you the exact C++ plumbing.)
To follow the progress and grab the sample code when it drops, head over to hftcode.com.
Enjoyed this breakdown? Subscribe for more behind-the-scenes looks at building agentic AI trading infrastructure, C++ execution engines, and quantitative research pipelines.










