How a copy-trading bot works, and where it loses you money
5 min readguideother
Short answerA copy bot watches wallets that look successful and repeats their buys and sells with a small amount. Most rules that look good on paper melt away in practice because of delay, slippage and costs. In my own measurement the average of 14,267 shadow trades came out at −7.3%.
This is a guide, not investment advice. In crypto and futures you can lose all of your money. Full disclaimer
What a copy bot does
On chain, every trade is public. When a wallet buys a token you can see it within a few seconds. A copy bot uses that openness. It puts wallets that do well on a list, and when they buy something it buys the same thing with its own small amount, and when they sell it sells too.
On paper it’s a simple idea. The hard parts show up in three places. Picking who to copy, knowing when not to copy, and the copied trade costing you more than it cost the trader.
The numbers in this post come from the ledger of my own bot, ETRE. The bot’s record is on its project page.The path of a signal
- First you build a pool of traders. Mine fills up from on-chain feeds and public leaderboards, and on 27 November it was tracking 1,439 traders.
- When someone in the pool buys something, the filter kicks in. These are the things I check. Is the liquidity in the pool between 30 thousand and 1 million dollars, is the pool at least 7 days old, is the trader’s score high enough, has the token jumped more than 10 percent in the last 12 hours, are a lot of people piling into the same thing at once.
- Every signal that passes the filter is first followed as a shadow trade, with no money in. It’s played on paper at the real quote price, costs included.
- Trade size is set by the evidence from that desk’s own closed trades. If there’s little evidence, the size stays small.
- Exits follow rules. Stop loss, taking the principal out at a set multiple, a profit ladder, selling the same share when the trader sells, and a time limit.
Where it loses money
For a month I also played every signal on paper with real quotes. It became pretty clear where the losses came from.
Delay and slippage
The trader buys, you buy a few seconds later. In small pools those few seconds are enough to move the price. In my measurement the buy itself moved the price by 9 percent on average. The trader’s buy pushes the price up, and you buy at that higher price. That was the first thing I learned with the first real-money version, the profit on paper melts away in practice.
Picking by looking back
You pick a trader by looking at their past trades. The moment you pick them, that past stops being useful. In my pool, traders looked like they were making 0.34 percent on their trades before I started tracking them, and after I started tracking them it dropped to zero. This is called survivorship bias. The ones who look good are often people at the end of a lucky stretch.
When I saw this I stopped hunting for profit by piling rules on rules. I tied the size to evidence instead.The margin gap in futures
A trader can carry a position with their whole account, on cross margin. When you open the same position with a small, isolated margin, the swing they can ride out gets you liquidated. At one point I raised the multiplier to 5x, and the next day a short position got liquidated. All four of the four liquidations were shorts opened at the highest multiplier. I dialed it back.
A tight stop loss doesn’t always protect you
Tightening the stop loss feels safe. In my test a 20 percent stop loss made the result 1.56 points worse. Meme tokens swing hard in a short time, and a tight stop loss throws you out early from a trade that goes up later.
Fake gains
Wrong things can get mixed into the data. In my analysis, prediction market coins whose names start with a hash sign were producing fake gains of between 1 and 18 percent. Once I filtered them out, the picture changed.
The unit of the wallet
My spot wallet grew 9.5 percent in SOL terms over a month. In the same period SOL fell from 104 dollars to 80 dollars, so in dollar terms the wallet shrank 16 percent. Whether I won or lost depends on which unit you count in.
Sizing tied to evidence
After these losses I wanted the bot to measure its own confidence. Each desk looks at its own closed trades and sits at one of four levels.
| Level | What it means | Size |
|---|---|---|
| Shadow | Only on paper, no money | 0 |
| Weak | Results are going badly | ×0.25 |
| Pilot | Not enough trades, can’t decide yet | ×0.5 |
| Candidate | Results are good but not certain yet | ×0.75 |
| Proven | Consistent results over enough trades | ×1 |
If there’s little evidence, the bot plays small. That way a bad stretch gets noticed before it wipes out the wallet. Both of my desks are at the pilot level right now.
If you’re going to build one
- Measure first without putting money in. Keep shadow trades at the real quote price with costs included, or the paper will fool you.
- Look at a trader’s results after the day you picked them. Results from before you picked them will mislead you.
- In futures, don’t open the same size without knowing how the trader’s margin is set up.
- Track the wallet in two units. Both the coin you hold and the dollar.
- A bot can go silent while it looks alive. Mine didn’t write anything for 8 hours because of a database lock, and I only noticed once I added an outside heartbeat check.
The numbers come from ETRE’s independent measurement on 14 November and its logs from 24 to 27 November. The bot’s code is open on GitHub. I wrote this post together with Claude and checked the numbers against the ledger.