Insights · AI and trading
How Our AI Trading Bot Works, Without Predicting the Market
Watch the full video on YouTube
When AI arrived, everyone used it to write emails and make pictures. I wanted to know something else: can it trade?
So we built a trading robot for MRD FutureTech. I didn't write the code by hand. Claude, an AI, wrote it, and Google Sheets runs it. This post explains how it works and why we built it this way.
It is not a recommendation to trade, and it is not a promise of profit.
Why Google Sheets
Google Sheets has a built-in coding tool called Apps Script. That's where the bot's code lives. The spreadsheet is the window: it lets us see every number the robot produces, in one place.
Our sheet has a tab for each job:
- Settings: the rules the robot follows.
- Symbols: what it's allowed to trade.
- Live positions: what it's holding right now.
- Accounts: the exchange accounts it's connected to.
- Log: every run it makes, so we can find and fix mistakes.
- Ledger: every trade, where it opened and closed, and on which exchange.
- Daily P&L: each day's result, added up.
How the robot talks to an exchange
The robot connects to each exchange through an API, an "application programming interface". It's a fancy name for a simple idea: one piece of software speaking to another.
Think of a waiter. The customer gives an order, the waiter carries it to the kitchen, and brings the food back. The API is the waiter. Our spreadsheet is the customer, and the exchange is the kitchen.
To connect, you create API keys inside your exchange account. Those keys let the robot place and close trades on that account. We run it across several exchanges, including Bitget, KuCoin and Bybit, so we're not depending on one.
We don't try to guess the direction
Most traders try to predict whether the price will go up or down. We built the robot not to depend on that guess.
It opens two positions at the same time: a long, which gains when the price rises, and a short, which gains when the price falls. That's called a hedge.
Then it lays down a grid: a ladder of orders at set distances from the price. When the price moves against one side, the robot adds to that side at the next rung. That pulls the side's average entry price closer to where the market is, so it needs a smaller move to come back into profit. This is a form of averaging, sometimes called dollar-cost averaging.
Taking profit a little at a time
Each rung of the ladder is also a place to take profit. When a side moves into profit, the robot closes part of that position, not all of it, and banks the gain. The hedge stays open, and the process repeats.
A perfectly equal hedge would go nowhere: what one side gains, the other loses. So on some instruments we set a bias, a lean towards one side, based on our own research into where that market is heading.
The exact settings (how far apart the rungs are, how much to take, how much leverage, how big the lean) change often. We don't publish them, because they're not fixed and they're not a template for anyone else.
The danger we built around: liquidation
The robot trades futures with leverage, which means borrowed money. Leverage makes gains bigger, and losses bigger too.
If the market moves too far against a leveraged position, the exchange closes it by force to get its money back. That's called liquidation, and it can wipe out the whole account. It's one of the main ways traders lose everything.
So we built a liquidation trigger: a rule that watches every account and acts before that point. The robot also logs every decision, so when something goes wrong, we can see exactly what happened.
None of this makes trading safe. It's how we manage a risk that never goes away.
Where it started
The first version traded gold, because we saw it as steadier. Since then we've extended it to several cryptocurrencies across different exchanges.
The point of the video isn't the robot. It's that AI can now build tools that used to need a team of programmers. The question is what you build with it.
What would you want to build with AI? Tell me in the comments under the video.
Trading with leverage can lose you your entire account. MRD FutureTech is not licensed to give financial advice, and nothing here is a recommendation to buy, sell or trade anything.
Each one, teach one.
Never miss the next story
New videos on Africa's money, power and future, every week.
Read next
Commentary and education, not financial advice.
