Trading Bot
- 1 Devlogs
- 1 Total hours
A trading bot that trades!
A trading bot that trades!
Welcome to the development log! This project tracks our engineering journey from a flawed, overfitted stock picker into an adaptive, blind multi-asset allocation system. Think of it like building a self-driving car, but for managing money.
We started by creating a basic computer rule:
“Buy stocks when they drop a bit, and sell them when they jump.” We let the computer guess the absolute best numbers for this rule using past stock market data. The computer came back with perfect numbers that looked like a jackpot, but there was a catch: it only worked perfectly on the past data because it memorized the answers. If we tried to use this exact
codein the real world, it would crash instantly.
So I had to:
To fix the guessing problem, we forced the computer to study history in small chunks.
This forced the computer to dynamically adjust its style. It learned to be careful and safe during bad economic times (like the high-inflation 1970s) and more aggressive when the economy was booming (like the 1990s).
Next, we realized that only investing in the US stock market is like driving a sports car on a muddy mountain road—sometimes you get stuck. We upgraded the system by giving the computer a garage full of different vehicles:
SPY)QQQ)GLD)TLT)VNQ)We proved that when the stock market enters a major crash, the bot should pivot capital into hard assets or safety nets to keep compounding value.
To make this fully realistic, we stripped away the computer’s ability to “look ahead” into the future. We built a system that looks back at the past 12 months to see which assets are moving with the fastest upward velocity (momentum).
While the baseline system is highly capable, the upcoming roadmap includes several key structural upgrades to prepare it for advanced market environments:
RSI / EMA) with real-world economic indicators, like inflation tracking and interest rate moves, to predict market crashes earlier.