Skip to content

I Built a WORKING Trading Bot in 1 Week! (Claude Code)

Built a working trading bot in one week using Claude AI, analyzing strategies and improving performance with live trade data.

Ask about this video. Answers come from its transcript only — with the timestamp, so you can check them.

Generated from the transcript and can be wrong — check the timestamp.

Key Takeaways

  • AI can assist in coding complex trading bots without manual programming.
  • Monte Carlo simulations help identify profitable strategy parameters and risk profiles.
  • Current AI-generated bot performance is promising but still below expert human trading results.
  • Continuous data feeding and training improve the bot’s understanding and profitability.
  • Ongoing development and iteration are crucial for creating a reliable automated trading system.

What the video covers

  • Created a trading bot in under a week using Claude AI without manually coding the strategy.
  • Used Monte Carlo simulations to test different timeframe alignments and optimize the bot.
  • The bot trades on 15-minute charts aligned with 1-hour or 4-hour charts, balancing profit and drawdown risk.
  • Final bot achieved a profit factor of about 1.4, lower than the creator's personal trading profit factor of over 2.
  • The bot trades mostly at market opens and uses limit orders based on retests of key levels.
  • Currently, the bot has a 51% win rate, which is below the creator's actual 70-80% win rate.
  • The creator uploads live trade data into Claude to teach the bot and improve its decision-making.
  • Plans to continue refining the bot over the next month by categorizing and analyzing trades.
  • The goal is for the AI to learn from the creator’s trades and eventually run a more profitable automated strategy.
  • Future videos will show the bot’s real-time operation and ongoing development.

Answers

Questions about this video

How was the trading bot created without manual coding?

The creator used Claude AI to generate Pine Script code by describing the strategy and iteratively fixing errors without writing code manually.

What performance metrics does the trading bot currently achieve?

The bot has a profit factor of about 1.4 to 1.58 and a 51% win rate, which is less than the creator's personal trading win rate of 70-80%.

How is the bot being improved over time?

The creator uploads live trade data and explanations into Claude AI to teach the bot, aiming to analyze and categorize strategies for better performance.

Full Transcript — Download SRT & Markdown

00:00
Speaker A
I made a working trading robot in less than a week using Claude and other AI to code for me without any coding experience. Actually, I do have coding experience. I do understand the logic of how to code, but I didn't actually code
00:12
Speaker A
a single thing myself. How this was done is I opened up Claude and I just started typing in what things looked like on my strategy without even explaining in detail how do I find a level? I said a
00:23
Speaker A
level was a candle body on a pivot point, and I had to adjust things along the [music] way and simply looking at which parts of my strategy made money and then having a bot running Monte Carlo simulation, which you can see on the
00:35
Speaker A
screen here. This is a Monte Carlo simulation of various different sims I ran, and the two best that I found was a 15-minute chart with a 1-hour or a 4-hour alignment. So, you can see that over the course of a year, it took
00:47
Speaker A
roughly 200 trades for the 4-hour and one and 500 trades for the 1-hour, and both of them performed roughly equally in terms of how much they make per trade.
00:57
Speaker A
The difference is the 4-hour is basically a 0% chance if you're looking at the probability of exceeding a drawdown limit. The 4-hour basically never goes beyond 2,000, or the 1-hour has a little bit more fluctuation. The maximum drawdown ranges
01:12
Speaker A
between $1,000 and $2,000, and the final profit after a year is again $2,500 to $5,000. So, it is very profitable with in terms of how much it's risking. Now, the issue with this is I wasn't able to code my strategy in all its nuances, and
01:29
Speaker A
when I was plugging in my actual trading results compared to the bot's trading results, it was nowhere near. This final bot that I was able to come to after about a week of coding was only about a 1.4 profit factor. I have a profit
01:42
Speaker A
factor of over two when I'm actually trading. So, it was nowhere near, and I wasn't happy with running this yet. All we would do in order to code this is I had a dumb script I had here as a new
01:51
Speaker A
project. I would ask it what I wanted, and then I say, "Spit me out a Pine Script for that." So, then open up Pine Script here, and I would just copy and paste all the code in. I didn't look at
02:00
Speaker A
it once. If there was ever an error, I would just tell it has an error and fix it. I would show the line number and everything like this, so everything it knew where to find it. And the final
02:07
Speaker A
kind of thing I've come up with now is I can show here because it got pretty messy is the trades in which I was taking were more or less mostly on the open and the final result. And you can
02:17
Speaker A
see a live profit factor here in the bottom corner of 1.58 right now for whatever's in the actual trade data. So, it would match up the high time frame with the low time frame, and then I finally got it down to only trading the
02:28
Speaker A
opens. So, for today, for example, both of the trades would have been canceled because they didn't come back to the levels I wanted. And you can see a couple days ago it would have taken a short off of a limit order after we
02:39
Speaker A
failed to make new highs. We would have filled on a retest. The stop would have been above there, and we would have targeted that low. Again, the day before, we can see we have failed to make a new low on the longs. We filled
02:48
Speaker A
an order on a retest, and then we targeted for the new high. So, this bot currently in its current state does for sure make money at 1.5 profit factor, but it's not good enough. So, what I've decided to do is now I am teaching the
03:01
Speaker A
bot. I'm uploading all of my trades that I take on live stream and throughout the day onto Claude here. And you can see a recent Sunday market open trade, trading style automation. Anyways, these are the some of the recent scripts. So, I was
03:11
Speaker A
doing a Sunday mark. I was doing an Asia session trade last night, and I uploaded all the trades I took. And I did one this morning, too. And why I took the trades, what was the profit from those
03:19
Speaker A
trades, and what I'm going to be doing is over the course of the next month getting it to sample all the driven trading strategies and why I am taking certain trades and categorize things for me so I can see which parts of my
03:29
Speaker A
strategy work the best and where I can improve on. In the current state of a bot running, it has a 51% win rate, and that's not good enough for how I actually trade. How I actually trade is much closer to like 70-80% actual in
03:43
Speaker A
reality win rate, and I need it to match that. Now, I've assumed that AI is now smarter than I am, so I will be continuing to feed it data and asking it the right questions so that I can learn
03:53
Speaker A
from it and then it can make a bot for me that can run for me. So follow along. There's going to be future videos about this, and I'm going to be showing you how the bot works as it's running in real
04:02
Speaker A
time.
Topics:trading botClaude AIautomated tradingMonte Carlo simulationPine Scriptalgorithmic tradingtrading strategyAI codingprofit factortrading automation

Get More with the SozAI App

Transcribe recordings, audio files, and YouTube videos — with AI summaries, speaker detection, and unlimited transcriptions.

Or transcribe another YouTube video here →