Can You Actually Trust AI With Your Trading Strategy? — Transcript
Full transcript
- 0:00AI can completely screw you over if you
- 0:03don't know what to look for. It
- 0:04hallucinates and makes mistakes just to
- 0:07satisfy you and your question. Don't get
- 0:10me wrong, AI has completely changed the
- 0:12way I research trading strategies.
- 0:15Something that would have taken me hours
- 0:16of spreadsheets and days of data
- 0:19crunching and a calculator can basically
- 0:22potentially be done in minutes now. I
- 0:24can give AI thousands of trades and ask,
- 0:26"What's my win rate? What's my average
- 0:28winner? What's my average loser? What
- 0:30time of day performs best?" I can even
- 0:32give it a strategy and have it write the
- 0:34code necessary to backtest it. It's
- 0:36[ __ ] incredible, but there's a
- 0:38problem. AI can be wrong, and I'm not
- 0:40talking about the trading strategies
- 0:42being wrong. I'm talking about the
- 0:43actual backtest being wrong because an
- 0:46AI can give you beautifully formatted
- 0:48tables and information, a win rate down
- 0:51to two decimal places, the profit
- 0:53factor, the drawdown, the expectancy,
- 0:56and an entire explanation of why your
- 0:58strategy supposedly works while the
- 1:00underlying calculation is completely
- 1:02[ __ ] And the dangerous part is that
- 1:05it can sound just as confident when it's
- 1:07wrong as when it's right. So, today I
- 1:09want to show you the things that I check
- 1:11whenever I use AI for trading research
- 1:14because if you're going to start using
- 1:15ChatGPT or Claude or Grok or any other
- 1:19AI to backtest strategies, these are the
- 1:22things you absolutely need to
- 1:23understand. And here's probably the
- 1:25easiest mistake to avoid. Let's say I
- 1:27type, "Backtest a moving average
- 1:29crossover on EUR/USD for the last 10
- 1:32years and tell me the win rate." An AI
- 1:34responds, "The strategy produced a 57.3%
- 1:37win rate with a profit factor of 1.42."
- 1:40That sounds very specific, but my first
- 1:43question should be, "Where did you get
- 1:44the data?" Because you cannot backtest
- 1:46something without historical market
- 1:48data. If you haven't uploaded the data
- 1:49yourself, if the AI hasn't retrieved the
- 1:52data from a reputable source, and we
- 1:54haven't connected to something
- 1:56containing the data, what exactly did it
- 1:58backtest? This sounds ridiculously
- 2:00obvious when I explain it like this, but
- 2:03this is where people get caught because
- 2:04a number like 57.3%
- 2:07feels calculated. It's precise. Your
- 2:10brain interprets precision as evidence,
- 2:13but precision doesn't mean anything if
- 2:14you can't explain where the underlying
- 2:16information came from. So, rule number
- 2:18one, never trust the results until you
- 2:20understand what data produced it. The
- 2:22next mistake is accepting the final
- 2:24number. If I upload 10,000 trades and AI
- 2:27tells me your win rate is 64%. Cool.
- 2:31Don't stop there. Ask how many trades,
- 2:34how many winners, how many losers, how
- 2:37many break evens, what's the gross
- 2:38profit, what's the gross loss, what's
- 2:41the average winner, what's the average
- 2:43loser, what's the profit factor because
- 2:46now these numbers have to reconcile. If
- 2:48it says 1,000 trades, 640 winners, 360
- 2:52losers, okay. 640 divided by 1,000 is
- 2:5664%. That's something that you can
- 2:58independently verify. The same thing
- 3:00applies to the profit factor. Gross
- 3:02profit divided by the gross loss should
- 3:05produce the profit factor. Expectancy
- 3:07should reconcile with average winners
- 3:09and average losers and the
- 3:11probabilities. You're basically forcing
- 3:13the AI to leave a trail of breadcrumbs
- 3:15and the more breadcrumbs you have, the
- 3:17easier it becomes to catch a mistake if
- 3:20it does make one. Now, the next one and
- 3:22this one is surprisingly easy. Imagine
- 3:24you export your trades from MetaTrader.
- 3:26You might have an entry row and an exit
- 3:29row. AI looks at 2,000 rows and tells
- 3:32you you made 2,000 trades, but you
- 3:34actually made 1,000 trades or maybe you
- 3:37have a partial close, multiple
- 3:39positions, deposit, withdrawals,
- 3:41commissions, swap fees, break even
- 3:44trades. Suddenly, something that sounds
- 3:46as simple as calculate my win rate isn't
- 3:49necessarily simple anymore. So, whenever
- 3:51I upload trading data, one of the first
- 3:53things I want AI to explain is what does
- 3:56one row represent? Then I normally want
- 3:59to see a few examples. Show me trade
- 4:01number one. Entry here, exit there,
- 4:04profit here. Show me trade number two,
- 4:06and so on. And if those examples don't
- 4:09match what I can see manually, I stop
- 4:11because there's absolutely no reason to
- 4:14analyze another 10,000 rows if we're
- 4:16already interpreting row number one and
- 4:18two incorrectly. Now, the next thing,
- 4:20and here's where we get into something
- 4:21much more dangerous. Let's say you don't
- 4:24have trade results yet. You have a
- 4:26strategy, so you ask AI to code and
- 4:28backtest. Now you're trusting AI to
- 4:31translate English into mathematics.
- 4:33And tiny differences matter. There's a
- 4:35massive difference between enter when
- 4:38the moving average cross and enter
- 4:40whenever the fast-moving average is
- 4:42above the slow-moving average. Those
- 4:45sound similar, but they're completely
- 4:47different trading rules. Or maybe your
- 4:49strategy says, "Wait for the candle to
- 4:51close." But the code enters during the
- 4:53candle. Or your indicator repaints. Or
- 4:56the code accidentally references
- 4:58information that wouldn't have been
- 5:00available at the time. Now you have what
- 5:02is essentially a time machine. Your
- 5:04backtest knows information from the
- 5:06future, and surprise, surprise, you've
- 5:08discovered the greatest trading strategy
- 5:10ever created. This is when AI writes a
- 5:12strategy for me. I don't immediately
- 5:14care about the profit and loss. I want
- 5:16to see whether the signals match
- 5:17reality. Pull up 10 trades manually. Did
- 5:20the backtester enter when the indicator
- 5:22actually signaled? Did it enter on the
- 5:24correct candle? At a realistic price?
- 5:27With the correct stop loss and the
- 5:29correct take profit? If 10 random
- 5:32examples don't line up, the beautiful
- 5:34equity curve means absolutely nothing.
- 5:37And here's another really easy one to
- 5:39screw up. Let's say I'm trading the
- 5:415-minute chart, but I'm using a 1-hour
- 5:43chart as confirmation. At 10:25 in the
- 5:46morning, the current hourly candle
- 5:48hasn't closed because it's still
- 5:49forming. So, your backtest needs to
- 5:51understand exactly what hourly
- 5:53information was actually available at
- 5:5510:25. If it accidentally uses
- 5:57information from the completed hourly
- 5:59candle, it's using information from the
- 6:01future. And this problem gets especially
- 6:03nasty when you're converting indicators
- 6:05between platforms. Let's say you
- 6:07designed it on TradingView and you move
- 6:09it into MetaTrader. TradingView might
- 6:11handle higher time frame information one
- 6:13way and MetaTrader does it another way.
- 6:16Your Python script does it another way.
- 6:18The code can compile perfectly.
- 6:20Everything looks great with no errors.
- 6:22The backtest can run perfectly with no
- 6:25errors. And the underlying strategy can
- 6:27still be different from what you thought
- 6:29you were testing. Now, number six. This
- 6:31is probably the biggest problem with
- 6:33scalping strategies. Let's say AI
- 6:35discovers a strategy that makes 1.5 pips
- 6:38per trade. Amazing. Except your spread
- 6:41is one pip. You pay commissions, you get
- 6:43occasional slippage. Congratulations,
- 6:46your profitable trading strategy might
- 6:48actually lose money now. And this gets
- 6:49even worse when the stops and targets
- 6:52are extremely small. Because now the
- 6:54exact path price traveled inside of each
- 6:56candle matters. Imagine one five-minute
- 6:59candle hits both your stop loss and your
- 7:01take profit. But, which one happened
- 7:03first? If all I have is open, high, low,
- 7:06and close, I don't necessarily know. The
- 7:09backtester has to make an assumption or
- 7:11use more granular information like
- 7:14backtesting by ticks. MetaTrader even
- 7:17has real tick testing mode specifically
- 7:20because execution-sensitive testing
- 7:22benefits from actual broker tick history
- 7:25rather than relying entirely on
- 7:26generated ticks. This takes much longer,
- 7:29but it's worth it. So, the smaller your
- 7:31trade becomes, the more suspicious you
- 7:33should become of overly simplified
- 7:35backtests. Now, number seven. Here's the
- 7:38one I think traders using AI need to
- 7:41understand more than anything else. You
- 7:43can have a back test where the data is
- 7:45real, the calculations are correct, the
- 7:47code is correct, the trades are correct,
- 7:49and the conclusion is still wrong
- 7:51because you overfit the strategy.
- 7:53Imagine I tell my AI, "Find me the best
- 7:56moving average length. Now try every
- 7:58single stop loss and every single take
- 8:00profit, every time frame, every trading
- 8:03session, every day of the week, every
- 8:05indicator setting, every combination,
- 8:07and eventually something is going to
- 8:09look amazing. That's not necessarily a
- 8:12new discovery. It can simply be the best
- 8:16selection. You're effectively asking,
- 8:18"Out of thousands of random variations,
- 8:21show me the one that happened to predict
- 8:22history the best." Now MetaTrader's
- 8:24optimization feature literally ranks
- 8:27parameter combinations according to a
- 8:29chosen fitness criterion, and the danger
- 8:32is that as you give the optimizer more
- 8:34freedom, it can increasingly fit quirks
- 8:38of the historical period rather than
- 8:40something that's persistent. Like you're
- 8:42more focusing on outliers at this point.
- 8:45This is exactly why you need data that
- 8:48the optimization has never seen before.
- 8:50Like using a completely different pair.
- 8:52Let's say you do EUR/USD, then you would
- 8:55do EUR/GBP. AI is not some magical truth
- 8:59machine. It is a large language model.
- 9:02It's a tool. It's an incredibly powerful
- 9:04tool, but if you feed it a flawed
- 9:07experiment, it can help you produce a
- 9:09flawed answer faster than you've
- 9:12produced one before. And sometimes it
- 9:13even puts the answer into a beautiful
- 9:15table with two decimal places, which
- 9:18somehow makes it more legitimate and
- 9:19even more dangerous. So use AI,
- 9:22absolutely. Just make it prove its own
- 9:25work, and don't take everything that it
- 9:27says as factual information because the
- 9:31goal isn't to get AI to tell you that
- 9:33your strategy works. The goal is to
- 9:35figure out whether it actually does, in
- 9:37real market conditions, going forward.
- 9:40If you guys enjoyed this video, please
- 9:42share it with your friends. Thank you so
- 9:43much for watching, and we will see you
- 9:45in the next video.
About this transcript
This page contains the full transcript of Can You Actually Trust AI With Your Trading Strategy? by The Moving Average, generated from the public captions YouTube serves with the video. The transcript has 1,622 words across 255 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.