AI Trading Experiment: 76% Win Rate?
60sThe hook promises a shocking win rate and challenges conventional AI trading advice, sparking curiosity.
▶ Play Clip"Delivers on the promise of an AI-driven data experiment, but the title oversells the 'findings'—it's a research process, not a definitive discovery."
This video documents an experiment where the creator used AI to analyze six years of EUR/USD market data to discover a trading strategy. The process involved iterative hypothesis testing, where AI generated Python code to sift through vast datasets, leading to a specific strategy based on Tokyo session range breakouts and volume-based mean reversion. The creator emphasizes that this is an experiment, not a finished system, and provides all the files for viewers to test and continue the research themselves.
Instead of asking AI for a direct trading strategy, the creator gave it years of market data and asked it to help search for patterns, using AI to write Python code for analysis.
Markets generate enormous data (candles, volume, time, volatility), making manual testing impossible. AI can analyze these large datasets efficiently.
The first hypothesis was that specific candle formations precede large moves. Initial results looked promising, but when turned into strict trading rules, they failed with a 29% win rate and 0.54 profit factor.
Many ideas were tested (candle sequences, continuations, stop-losses, sessions) and most failed on unseen data, which increased trust in the process as AI wasn't just confirming ideas.
The creator revisited a personal strategy: trading the London open based on the Tokyo session range, using pending orders to let the market choose direction.
The original London open strategy lost money after trading costs, but analyzing the failure led to a new idea: trading failed breakouts of the Tokyo range with high relative volume.
The final strategy: establish a narrow Tokyo range (max ~21.72 pips), wait for a breakout with relative volume >1.6, then trade the mean reversion back into the range, with take-profit at the range's midpoint.
The strategy was converted to Pine Script for TradingView testing. Initial results didn't match Python, but the issue was time zones; after fixing, trade numbers exploded.
TradingView backtest showed 232 trades, 75.86% win rate, and a profit factor of 1.26.
An MT5 Expert Advisor was built and tested on broker data, yielding 103 trades, 72.82% win rate, and a profit factor of 1.3, confirming the TradingView results.
Changing the session timing (3:00-11:00) produced 85.19% win rate with a 2.69 profit factor, but only 27 trades, highlighting the ease of overfitting to past data.
The creator's key insight: use AI to build a research laboratory, not to get direct trade signals. AI helps test hypotheses on massive datasets.
The creator provides all files (Python research, TradingView strategy, MT5 EA) for free, encouraging viewers to test, modify, and continue the research.
This is not a finished trading system. It's historical backtesting with potential differences between platforms. Never deploy real capital without extensive forward testing.
The video concludes that AI is a powerful research partner for trading, but backtested results must be treated with caution. The creator hands over the experiment to the community, encouraging collaborative testing and further development.
What was the first hypothesis tested by the AI in the experiment?
Candle DNA: that specific candle formations precede large moves.
01:53
What was the win rate and profit factor of the first candle DNA strategy?
29% win rate and a profit factor of 0.54.
02:47
What is the core concept of the London open strategy based on the Tokyo range?
Establish a range during the Tokyo session, place buy above and sell below, and let the market choose direction.
03:43
What is the relative volume threshold for a breakout to qualify in the final strategy?
1.6 times relative volume.
06:01
What is the take-profit level in the final strategy?
The middle point of the overnight range.
06:30
What was the issue that caused TradingView results to initially not match Python results?
Time zones; they were different and needed to be corrected to use local server time based on London open.
07:23
What were the TradingView backtest results for the final strategy?
232 trades, 75.86% win rate, and a profit factor of 1.26.
07:36
What were the MT5 backtest results for the final strategy?
103 trades, 72.82% win rate, and a profit factor of 1.3.
08:17
What happened when the session timing was moved one hour later (3:00-11:00)?
The win rate increased to 85.19% with a profit factor of 2.69, but only 27 trades were generated.
09:13
What is the creator's key insight about using AI in trading?
Use AI as a research partner to test hypotheses on large datasets, not to get direct trade signals.
10:20
AI as a Research Partner
Shifts the paradigm from asking AI for predictions to using it to analyze data and test hypotheses.
01:53The Value of Failure
Emphasizes that failed tests increase trust in the process, as AI isn't just confirming ideas.
03:02The Final Strategy
A simple, rule-based strategy that emerged from iterative testing, showing the power of data-driven refinement.
05:45Overfitting Trap
Demonstrates how easy it is to overfit to past data, with a small sample size inflating win rates.
09:13AI's True Role
Provides a clear, actionable framework for using AI in trading research, moving beyond hype.
10:20[00:03] market data and basically said, "Figure this out with me." I think I may have found one of the most useful ways that traders can use AI. And no, I didn't ask Chatt where Eurusd is going tomorrow. I didn't ask for the best indicator
[00:16] settings. And I definitely didn't ask it to give me a 90% win rate strategy. Instead, I gave AI years of actual market data and basically said, "Figure over the next few days is honestly pretty interesting because most of what
[00:30] we tried failed. But eventually we ended up building an automation that had some results that do have potential. And by the end of this video, I'm going to give you the actual files, the Python research, the trading view strategy, the
[00:43] MT5 expert advisor. I'm not selling it and I'm not telling you to put real money into this. I'm literally giving you the experiment so you can download it, give it to your own AI, test it yourself, and see if you can continue
[00:56] where I left off. But first, let me explain how I got here so that you don't redo the work that I've already done. Because I think the process is actually more interesting than the strategy itself. This whole thing started with a
[01:09] question. Markets generate an absolute ridiculous amount of data. Every candle has an open, high, low, and close. You have volume, you have time of day, you have volatility, previous days, highs and lows, sessions, specific sequences
[01:23] of different types of candle formations, and millions of combinations of all of these things. So, as a human being, there's no realistic way I'm going to manually test every iteration of those combinations. But AI can write Python
[01:37] code, which I can't. Python can analyze enormous data sets. So I thought to myself, what if instead of asking AI to give me a strategy, I give it the data and ask it to help me search for one. So I exported EuroUSD historical data and
[01:53] we started the experiment. The first idea, it called it candle DNA. The basic theory of it was that maybe there is a specific recipe that happens in candle formations before a large move occurs. things like the candle's body size,
[02:08] things like the candle's body size, range, volume, ATR, and where the candle sits relative to previous highs and lows, sequences of bullish and bearish candles. And initially, some of the results looked really interesting. We
[02:21] found certain situations where specific characteristics of these candle formations happened two or two and a half times more frequently than other formations, pertaining specifically to what happened before these big moves.
[02:34] And this is where it would have been really easy just making a YouTube video and saying AI found some secret pattern. Except when we actually took those patterns and turned them into strict trading rules, if and then statements
[02:47] like coding works, they lost money a lot. One version had around a 29% win rate and a profit factor of 0.54. Garbage. So, we killed it. And this happened over and over and over again.
[03:02] We tested candle sequences. We tested continuations. We tested different stop- losses, different targets, different holding periods. We looked at previous days highs and lows, session highs and lows, Tokyo session, London session,
[03:16] specific 15minute time buckets like the orb strategy, relative volume, volatility. Basically, every time we found something interesting to look at, the next question was, does this actually survive when tested on the data
[03:30] we haven't seen? And most of the time the answer was no. Which weirdly enough made me trust the process even more because the AI wasn't just being a yes man and sitting there telling me that every idea was amazing. Most of my ideas
[03:43] were getting murdered by the data. And then I remembered a strategy that I made years ago. Trading the London open based on the range of Tokyo session. The original concept was extremely simple. Before London opens, you establish a
[03:55] range. You put a buy above the range and a sell below the range. And instead of trying to predict which direction the market's going to go, you basically said, "I don't know. Let the market move. Liquidity is coming into the
[04:07] market because London's about to open. And if price moves, I'll let the market choose the direction for me based on those two pending orders. I've traded these variations before and I've showed it on live streams and I've actually had
[04:20] decent results. You guys trading along with me have seen that. But it was always a coin flip. I wasn't predicting what way the move was going to go. I was setting up myself regardless of which direction it went. Now, as this strategy
[04:33] grew, I started thinking to myself, should it be a 30 minute range? Should it be a 60-minute or 90 minute? Where should the stop loss go? Halfway in of the range? Now, should it have specific risk-to-reward ratio like a
[04:48] 1:2? Should the trade enter on close of candle or as it breaks the range? And those were the perfect questions to ask AI to sift out of the historical data. So we built another Python research program. And the original strategy
[05:04] sucked. You couldn't get consistent results without some biases or skipping days. So after costs of trading, basically the spread and commissions of a trade, it lost money. Without that, it made money. And just like that, another
[05:17] brilliant idea of mine got crushed by data. But while analyzing why it failed, Instead of trading the initial breakout, what happens if price breaks the Tokyo range with unusually high relative volume, fails to continue, and then
[05:33] comes back inside the range? Now, we're not predicting a breakout. We're waiting for the market to show us a breakout and then essentially betting that a failed breakout will mean revert back into the range. And that's where things started
[05:45] to get interesting. Eventually, me and the AI arrived at a very simple set of conditions. You establish the Tokyo range. We only care about relatively narrow Tokyo sessions. The current maximum was around 21.72 pips, the size
[06:01] of the range. Then London opens. We wait for price to break out of either side of that range, but we don't automatically trade it. We look at the relative volume of that breakout. The current threshold is 1.6 times relative volume. If the
[06:15] breakout qualifies, then we wait. If price breaks up above that range high, looking for a short, basically trading the fake out. And if price breaks below the range, then comes back into the boundary, we're looking for a long. The
[06:30] boundary, we're looking for a long. The takerit is then calculated as the middle point of that overnight range. And that's basically it. No 17 indicators. No MACD combined with RSI combined with a 200 moving average combined with the
[06:43] a 200 moving average combined with the phase of the moon. Range breakout volume failure mean reversion. Now we had another problem. Python telling me something works and that the data makes sense isn't enough. So I asked the AI to
[06:57] convert the strategy into a Pine script so we could independently test it inside of Trading View. And this just got me deeper down in the rabbit hole. The first Trading View results didn't match Python at all. We were getting far fewer
[07:09] trades and it looked like the strategy wasn't producing, which usually happens freshly coded. So instead of changing parameters until Trading View magically where the two systems had disagreement. And eventually we found it and it was
[07:23] the time zones. They change multiple times per year and they're different corrected the trading view strategy to use the local server time based on London open and suddenly the numbers of trades exploded. So now we're testing
[07:36] approximately the same market session. And this is where we got some results. Here is the trading view screenshot. Across the full deep back test we had Across the full deep back test we had 232 trades, 176 winners, and a 75.86%
[07:49] win rate and a profit factor of approximately 1.26. Now 75% sounds amazing, but don't get carried away just yet. A back test is a back test and trading view is still trading view. Can we reproduce this somewhere completely
[08:03] different? So I had AI build a strategy again, this time an actual MT5 expert advisor, the EA that goes on to your MT5 platform. And then I ran it through MetaTrader Strategy Tester using historical broker data. And this is
[08:17] where I expected everything to fall apart. Instead, we got this 103 trades, apart. Instead, we got this 103 trades, 75 winners, 28 losers, 72.82% 82% win 75 winners, 28 losers, 72.82% 82% win rate, profit factor 1.3. Now, that got
[08:31] my attention because Trading View and MT5 were not producing identical trades. I mean, they are different feeds and different execution engines with working through some differences in session timing. But look at the actual
[08:45] statistical results. Trading View about 76% winners and a 1.26 profit factor. 76% winners and a 1.26 profit factor. MT5 about 73% winners and 1.3 profit factor. That doesn't prove that we found some magical trading strategy. But now
[09:01] we have two independent environments pointing towards something similar. It's like a peer-reviewed medical research study. One test was made and then the other confirmed it. That's also where you guys come in. More confirmation
[09:13] tipping point where the experiment became way more interesting for me. Then I changed one thing, the session timing. Instead of calculating the range from 2:00 a.m. until 10:00 a.m. broker time, I moved it 1 hour later. 3:00 a.m. until
[09:27] 11:00 a.m. Now, you can see what happened right here on this screenshot. 27 trades, 23 winners, four losers, 85.19% 85.19% win rate. Profit factor 2.69. And this
[09:40] is exactly where you need to understand how easy it is to yourself with back testing. because I could stop the video right here. Put up on the screen 85% win rate bot generates me millions of dollars. Sell the EA for $5,000
[09:54] and conveniently forget to mention it's only 27 trades. That's why I keep reiterating this was an experiment. This is the data that I got from the experiment. I'm giving you the data so that you can also continue the
[10:08] experiment on your side and see the process that I went through. Maybe you'll get some better results. This project changed the way I think about AI and trading. Before I was trying to have the AI write code for me based on my
[10:20] specific trading rules. And I don't think that's the best use of AI. Like you can't just say, "Hey chat GPT, should I buy EuroUSD?" AI does not have a crystal ball. I think what's much more interesting instead of having it assume
[10:35] is using AI as a research partner using data sets that are so large it would take you a lifetime to sift through manually. So now I have an idea and AI helps me turn that into a code. Python tests years of data and we look at what
[10:51] failed. We formulate another hypothesis, test again, then if something survives, translate it into a trading view pine script, test it again, then translate it into MT5, test it again, and eventually forward test it on a demo account, of
[11:08] different relationship between AI and trading. AI isn't giving me trades. It's helping me build a laboratory with the most qualified research team ever. And this experiment for now because I could spend another week optimizing this.
[11:25] Maybe get the win rate from like 75% to 77%. Maybe we find another filter. Maybe changing the range gives us another few%. But there's also a huge danger here. The more parameters I optimize against, the easier it becomes to
[11:39] accidentally build something that's absolutely incredible only on past data and then completely useless on trading future price action. So instead, I'm going to do something different. I'm going to give you this project. I've put
[11:53] we've been working on, the Trading View strategy, and the MT5 EA. Download them. Look through them. Run your EA through your own strategy tester on your own
[12:05] broker on your own terminal. Change brokers. Change pairs. Try GBPUSD. Try USD JPY. Try New York instead of London session. Give the Python research to session. Give the Python research to ChatGpt Claw, Gemini, whatever you use.
[12:20] Tell it the information that we've discovered already and then ask what should we test next? Because imagine if hundreds or thousands of us start independently testing the same idea. Maybe everyone comes back and says,
[12:32] "Arty, it's garbage. Perfect. We learn something that this doesn't work." Or maybe people start finding the same behavior on different brokers, different years, and different markets. Maybe this is good for oil. I don't know. But it's
[12:45] investigating. But I need to make one thing extremely clear. I've already said it multiple times in this video. This is not a finished trading system. I'm not telling you that this is profitable. I'm not telling you to put this on a live
[12:58] account. And I'm definitely not telling you that we created an 85% win rate money printer. These are historical back tests with historical data. There are differences between Python results, Trading View results, and MT5 results
[13:11] that need to be investigated. And the highest win rate MT5 variation only produced 27 trades across a massive data set. So treat this exactly how I'm treating it, as research. This was a super fun experiment for me because it
[13:26] gave me a new perspective on how I can work together with AI. I'm nowhere near being done playing with this. And the more data I have across every different asset and I build this supercomputer of information, the higher likelihood I
[13:40] information, the higher likelihood I have of finding out exactly what these huge financial institutions, what brokers and hedge funds are all doing because every major player is using algorithmic trading. Now we have the
[13:54] tools at our disposal and this is an opportunity for you that you should get on now. So, all you got to do, go to my website, TMAF FX. You're going to find a link somewhere on the home screen. Just click that link. It'll give you a whole
[14:08] dropbox of the files. Have fun playing, but don't get overly excited about results. Always forward test on demo accounts and never deploy real capital
[14:21] until it's absolutely proven over a year of forward testing on a demo account that it produces decent results. This is your money. This is your risk. This is your money. This is your risk. This is me handing the baton to you.
⚡ Saved you 0h 14m reading this? Transcribe any YouTube video for free — no signup needed.