<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: AIStrategyMiner</title>
    <description>The latest articles on DEV Community by AIStrategyMiner (@aistrategyminer).</description>
    <link>https://dev.to/aistrategyminer</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4149768%2F623cd2fd-4428-4147-8579-839b29423f99.png</url>
      <title>DEV Community: AIStrategyMiner</title>
      <link>https://dev.to/aistrategyminer</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/aistrategyminer"/>
    <language>en</language>
    <item>
      <title>Convert a Pine Script strategy to an MT5 EA: what works, what fails</title>
      <dc:creator>AIStrategyMiner</dc:creator>
      <pubDate>Tue, 24 Nov 2026 12:00:56 +0000</pubDate>
      <link>https://dev.to/aistrategyminer/convert-a-pine-script-strategy-to-an-mt5-ea-what-works-what-fails-4h8</link>
      <guid>https://dev.to/aistrategyminer/convert-a-pine-script-strategy-to-an-mt5-ea-what-works-what-fails-4h8</guid>
      <description>&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/n2J-61JbnVM" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;This is the written version of our video on how to convert a Pine Script strategy to an MT5 EA. The short answer is "partly", and below we show exactly where the line is, so you can check it against your own script. If you want to see how we search for rules in the first place, read our earlier article: &lt;a href="https://dev.to/aistrategyminer/from-a-strategy-miner-search-to-a-real-tick-mt5-test-step-by-step-22j5"&gt;from a Strategy Miner search to a real-tick MT5 test&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Everything here describes what we did on screen. It is education, not advice.&lt;/p&gt;

&lt;h2&gt;
  
  
  The question
&lt;/h2&gt;

&lt;p&gt;Can a TradingView Pine Script strategy be turned into an MT5 Expert Advisor? For simple strategies, yes. For strategies that keep state between bars, loop, or do math on whole series, not today.&lt;/p&gt;

&lt;p&gt;To test this honestly we wrote two small Pine strategies ourselves. One is simple. The other adds a few things people often use that the importer cannot read. We pasted both into the real Strategy Builder on the live site, with no mock-ups.&lt;/p&gt;

&lt;p&gt;One point first: the import runs by fixed rules inside your browser. There is no AI guessing, and your script is not uploaded anywhere.&lt;/p&gt;

&lt;h2&gt;
  
  
  Paste the script
&lt;/h2&gt;

&lt;p&gt;Open a blank canvas in the Strategy Builder, open the menu with the three dots in the top bar, and choose "Paste Pine script". An empty box opens and tells you what it reads and what it will place on the canvas.&lt;/p&gt;

&lt;p&gt;Our first script is a two-average cross:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A fast EMA (length 10) and a slow EMA (length 30)&lt;/li&gt;
&lt;li&gt;A cross up buys, a cross down sells&lt;/li&gt;
&lt;li&gt;A stop of 500 ticks and a take target of 1000 ticks&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The importer answers right away that it can place all of it, from both entries, and nothing is left out. It also leaves notes. In our case ten ticks equal one pip, so the tick values become pip values. On metals or indices that ratio is different, so check it yourself before trusting the numbers.&lt;/p&gt;

&lt;p&gt;Press Place.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it placed
&lt;/h2&gt;

&lt;p&gt;The canvas now holds a Start trigger, two moving averages, a cross-over and a cross-under condition, and a buy and a sell order. The two averages carry the same lengths as the Pine script, and the conditions feed the orders.&lt;/p&gt;

&lt;p&gt;Click the buy block to see the stop and target, converted from the ticks we wrote. Two things are worth knowing:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The lot size is fixed at a small default. Pine's own position sizing is not copied, so set the lot you want.&lt;/li&gt;
&lt;li&gt;The check panel in the corner sums up what the strategy uses, what it opens, and its stop and target. It also shows a warning. Read warnings before you trust anything: a converted strategy is a draft, not a finished product.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;With a Pro account the Code tab unlocks the full MQL5 source, and you can edit it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What does not fit
&lt;/h2&gt;

&lt;p&gt;Our second script looks almost the same, but we added things people commonly use. This time the importer says it can place fewer parts, from only one of the two entries, and three things do not fit. It lists each one with its line number and reason:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A value kept from bar to bar.&lt;/strong&gt; A variable that remembers its state is rejected.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A calculation on a whole series.&lt;/strong&gt; We took the absolute value of a difference between series. The importer does not support that.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The short entry.&lt;/strong&gt; It depends on that same series math, so it is not placed either.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can still press Place without these parts. Here that gives you the long side only. The short side is gone, and you must rebuild it by hand. The canvas shows only what survived, and nothing is hidden.&lt;/p&gt;

&lt;p&gt;Beyond our example, the importer also rejects arrays, loops, limit and stop entries, trailing exits, and functions it cannot inline. These are simply not supported today. In our own round-trip test on a set of templates, many used constructs the importer rejects, and only some came back with the same settings. So always compare the result with your original.&lt;/p&gt;

&lt;h2&gt;
  
  
  Export and compile
&lt;/h2&gt;

&lt;p&gt;Back to the first strategy. To get a real EA, press the .mq5 download. This is a Pro feature. The file is saved and a dialog lists the next steps. Open it in MetaEditor and press F7 to compile. For us it compiled with zero errors and zero warnings.&lt;/p&gt;

&lt;p&gt;That tells you the source is valid MQL5. It does not tell you the strategy behaves like your Pine original.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check these before you trust it
&lt;/h2&gt;

&lt;p&gt;Small differences change results, so look at:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Time zone.&lt;/strong&gt; Pine and MT5 may not agree on session times.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Bar shift.&lt;/strong&gt; A Pine index of one corresponds to a shift of two in the exported code.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Order sizing.&lt;/strong&gt; As noted above, the lot is a fixed default.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Then run the Strategy Tester on a demo account with real ticks and compare the trades to your Pine run.&lt;/p&gt;

&lt;h2&gt;
  
  
  Limits: what this does not tell you
&lt;/h2&gt;

&lt;p&gt;The importer is not a full converter, and a clean compile is not proof of anything about how a strategy trades. Passing our checks does not prove a strategy works, and a test only replays past data, which says nothing certain about the future. Treat the converted file as a starting draft, compare it line by line with your original, and test on a demo account first.&lt;/p&gt;

&lt;h2&gt;
  
  
  Recap
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Paste the script and read the importer's notes.&lt;/li&gt;
&lt;li&gt;Place it and read the warnings.&lt;/li&gt;
&lt;li&gt;Check what was left out. Rebuild missing parts by hand.&lt;/li&gt;
&lt;li&gt;Export and compile. Valid code is not a verdict.&lt;/li&gt;
&lt;li&gt;Test on a demo account with real ticks and compare with Pine.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;You can try the importer in the free demo at &lt;a href="https://aistrategyminer.com" rel="noopener noreferrer"&gt;aistrategyminer.com&lt;/a&gt;. The MQL5 download needs Pro. Watch the video above to see every step on the real screens. Trading involves risk, and past results say nothing certain about the future.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;This article was drafted with AI assistance and reviewed by the AIStrategyMiner team.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>trading</category>
      <category>algorithms</category>
      <category>mql5</category>
      <category>tradingview</category>
    </item>
    <item>
      <title>From a Strategy Miner search to a real-tick MT5 test, step by step</title>
      <dc:creator>AIStrategyMiner</dc:creator>
      <pubDate>Tue, 17 Nov 2026 12:00:56 +0000</pubDate>
      <link>https://dev.to/aistrategyminer/from-a-strategy-miner-search-to-a-real-tick-mt5-test-step-by-step-22j5</link>
      <guid>https://dev.to/aistrategyminer/from-a-strategy-miner-search-to-a-real-tick-mt5-test-step-by-step-22j5</guid>
      <description>&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/b9oBaYdkxZk" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;This is the written version of our video on how to use the Strategy Miner to generate a forex strategy automatically and test it in MT5. The video shows every screen. Here we explain why each setting was chosen, so you can repeat the steps with the text beside you. We do not re-explain how the search works inside; that is covered in &lt;a href="https://dev.to/aistrategyminer/search-for-trading-strategy-rules-in-your-browser-how-the-aistrategyminer-strategy-miner-works-49m"&gt;our first article&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Everything below describes what we did on screen. It is education, not advice, and none of it says how a strategy will behave later.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we will do
&lt;/h2&gt;

&lt;p&gt;The path has six moves, and none of them needs coding:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Set up a search in the Strategy Miner.&lt;/li&gt;
&lt;li&gt;Read the checks table.&lt;/li&gt;
&lt;li&gt;Open one result in the Strategy Builder.&lt;/li&gt;
&lt;li&gt;Download the MQL5 source.&lt;/li&gt;
&lt;li&gt;Compile it in MetaEditor.&lt;/li&gt;
&lt;li&gt;Run it in the MT5 Strategy Tester on real ticks.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The generator and the source download are Pro features. The free page shows a ready-made sample, which is enough to look at the screens first.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the Miner does
&lt;/h2&gt;

&lt;p&gt;The Miner is a search, not a recommendation. Given a symbol, a timeframe and some years of price bars, it tries thousands of random combinations of Builder blocks: a moving average here, a Bollinger Band there, plus a stop loss and a take target. It runs in your browser on bars that are built in.&lt;/p&gt;

&lt;p&gt;Most of what it tries is discarded. What remains must pass a series of checks. We read the result as a short list of ideas that did not fall apart when we pushed on them, and nothing more.&lt;/p&gt;

&lt;h2&gt;
  
  
  Set up the search
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffvhrr7rp6yg3x37kl2wu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffvhrr7rp6yg3x37kl2wu.png" alt="The Strategy Miner settings panel with the minimum trades field set to 450 and the entry families ticked" width="738" height="1469"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We kept every setting visible, and we list them in the video description too:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Symbol and timeframe: USDJPY, H1.&lt;/li&gt;
&lt;li&gt;Period: 4 years. Direction: both.&lt;/li&gt;
&lt;li&gt;Trial limit: 20,000.&lt;/li&gt;
&lt;li&gt;Minimum trades: 450, set under Advanced.&lt;/li&gt;
&lt;li&gt;Seed: 7.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The minimum trade count is the setting people skip. A rule that trades a few times a year can look excellent or terrible by chance alone, so we ask for well over a hundred trades per year. The seed is the random starting point: the same seed repeats the same search, which lets you compare runs later. We left all six entry families on and pressed Generate.&lt;/p&gt;

&lt;h2&gt;
  
  
  Run it and read the checks
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9cn4nhn2mchk446et6as.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9cn4nhn2mchk446et6as.png" alt="The Strategy Miner result text listing how many candidates passed or dropped at each check" width="800" height="716"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The page counts trials while it runs. The checks table then shows, row by row, how many ideas survived each stage: the search period, duplicate removal, a later period the idea was not tuned on, other symbols, robustness tests, and a final re-check. Many ideas drop at the later-period row, which is the first sign that a rule only fitted the past.&lt;/p&gt;

&lt;p&gt;Then we ran the same settings on EURUSD on purpose. The checks removed every idea, and the Miner reported no candidate. That is a result, not an error. If it happens to you, change one setting, such as the market, the timeframe or the minimum trades, and run again. Do not loosen the checks to get something on screen.&lt;/p&gt;

&lt;h2&gt;
  
  
  Open it in the Strategy Builder
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fywux5n1531rdmf39ek66.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fywux5n1531rdmf39ek66.png" alt="A candidate in the Strategy Builder drawn as blocks, with the Preflight panel describing what the EA does" width="799" height="544"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Results are saved in your vault, a table you can sort and filter. We ticked the candidate and pressed Open in Builder.&lt;/p&gt;

&lt;p&gt;The Builder draws the rule as blocks you read from left to right: start, indicators, a condition, then the order with its stop and take target. The Preflight panel lists in plain words what the EA does and any warnings, so read it before moving on. If a block makes no sense to you, that is a good reason to leave the candidate alone.&lt;/p&gt;

&lt;p&gt;We also changed one number in the order block to show that the Builder is not read-only. Remember what that implies: after an edit, the Miner's checks no longer cover this exact design. From that point the MT5 test is what counts.&lt;/p&gt;

&lt;h2&gt;
  
  
  Download and compile
&lt;/h2&gt;

&lt;p&gt;Choose MT5 as the target and press Download .mq5. The file is named Strategy_Builder.mq5. Copy it into the MQL5 Experts folder inside your MT5 data folder, open it in MetaEditor and press F7. We got zero errors and zero warnings, and an .ex5 file appeared beside the source.&lt;/p&gt;

&lt;p&gt;A clean compile only means the file is valid MQL5. It says nothing about whether the rule is any good.&lt;/p&gt;

&lt;h2&gt;
  
  
  Test it in MT5 with real ticks
&lt;/h2&gt;

&lt;p&gt;In the Strategy Tester we selected the EA, USDJPY, H1, and the model Every tick based on real ticks. The other models invent ticks, while real ticks are the ones your broker actually sent.&lt;/p&gt;

&lt;p&gt;After the run, look at the history quality line. We used a date range where it read close to full. When we stretched the range back by a year or two, the quality dropped, because older ticks have to be downloaded and not all of them arrive. A test on thin data is weaker evidence.&lt;/p&gt;

&lt;p&gt;We blurred the numbers in the video on purpose. One run on one period proves very little, so we looked at other things instead: how often the EA trades, the shape of the equity curve, and a few trades checked by hand against the chart. Do the entry, the stop and the target match what the Builder showed? The Miner used its own simple engine on past bars, while MT5 applies real ticks, spreads and swaps. Small differences are normal; large ones deserve a closer look.&lt;/p&gt;

&lt;h2&gt;
  
  
  Limits: what this does not tell you
&lt;/h2&gt;

&lt;p&gt;We searched past data, chose from many tries, and tested on a period that overlaps with the search. That is optimistic by construction, and the video says so openly.&lt;/p&gt;

&lt;p&gt;A fairer next step is data the search never saw. The Miner has a Pro option to leave out the last twelve months: search without them, then test only on them. After that, a forward test on a demo account with your own broker's spread comes before anything else.&lt;/p&gt;

&lt;p&gt;None of this is evidence of what comes next. A replay of the past can expose mistakes, but it cannot promise a future.&lt;/p&gt;

&lt;h2&gt;
  
  
  Recap
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;The Miner filters a very large number of random rules into a short list, which can be empty.&lt;/li&gt;
&lt;li&gt;The Builder lets you read a candidate as blocks before you trust it.&lt;/li&gt;
&lt;li&gt;A clean compile is not a verdict on the strategy.&lt;/li&gt;
&lt;li&gt;A real-tick test is a replay, and overlapping data makes it optimistic.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Watch the video above to see each step on the real screens, and try everything on a demo account first. The Miner and the Builder are at &lt;a href="https://aistrategyminer.com/strategy-miner" rel="noopener noreferrer"&gt;aistrategyminer.com&lt;/a&gt;. Trading involves risk, and past results say nothing certain about the future.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;This article was drafted with AI assistance and reviewed by the AIStrategyMiner team.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>trading</category>
      <category>algorithms</category>
      <category>mql5</category>
      <category>metatrader</category>
    </item>
    <item>
      <title>Search for trading-strategy rules in your browser: how the AIStrategyMiner Strategy Miner works</title>
      <dc:creator>AIStrategyMiner</dc:creator>
      <pubDate>Fri, 06 Nov 2026 16:35:34 +0000</pubDate>
      <link>https://dev.to/aistrategyminer/search-for-trading-strategy-rules-in-your-browser-how-the-aistrategyminer-strategy-miner-works-49m</link>
      <guid>https://dev.to/aistrategyminer/search-for-trading-strategy-rules-in-your-browser-how-the-aistrategyminer-strategy-miner-works-49m</guid>
      <description>&lt;p&gt;The AIStrategyMiner &lt;strong&gt;Strategy Miner&lt;/strong&gt; searches price history for entry rules and tests each candidate against a series of checks. It runs entirely in the browser. There is nothing to install.&lt;/p&gt;

&lt;p&gt;This post walks through a run, and shows one number we measured that changes how we read the results.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;You pick a market, a timeframe, a period and a trading direction.&lt;/li&gt;
&lt;li&gt;The Miner tries thousands of random combinations of entry rules.&lt;/li&gt;
&lt;li&gt;Candidates that pass the training period go through further checks.&lt;/li&gt;
&lt;li&gt;The survivors are listed with their stats. In Pro, each one opens in the visual Builder and exports to MetaTrader 5 (MQL5) source, with more targets available.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  A run in five steps
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Choose a market.&lt;/strong&gt; A currency pair (or gold, silver, indices and oil as add-ons), a timeframe such as H1, and 2 to 5 years of history.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Choose a style.&lt;/strong&gt; Trend following (moving average, MACD, Donchian), counter-trend (RSI, Stochastic, Bollinger Bands), breakout (Bollinger Bands, Donchian), or all six.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Choose how deep to dig.&lt;/strong&gt; Light, Standard and Thorough try 10,000, 50,000 and 200,000 combinations. Standard takes about a minute on an ordinary PC.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Start mining.&lt;/strong&gt; Counters show trials tried and raw finds as the search runs. You can cancel at any time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Read the results.&lt;/strong&gt; The trial run lists each survivor with a star rating, its PF (gross gains divided by gross losses) and its trade count. Pro adds the equity curve, the largest peak-to-trough fall, and a pass or fail for every check.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgxtib6yidri1qv2761or.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgxtib6yidri1qv2761or.png" alt="Strategy Miner results after a trial run: five candidates kept out of 8,000 trials, each with a star rating, PF and trade count" width="684" height="888"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The checks
&lt;/h2&gt;

&lt;p&gt;The first 70% of the history is used for the search. The last 30% is used only for checking. A candidate must also survive:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;a &lt;strong&gt;neighbour test&lt;/strong&gt;: 10 variants with parameters shifted by 10–20%, at least 70% still ending in the black;&lt;/li&gt;
&lt;li&gt;a &lt;strong&gt;Monte Carlo test&lt;/strong&gt;: 200 runs with 10% of trades dropped, and the worst 5% must keep the peak-to-trough fall within 20%;&lt;/li&gt;
&lt;li&gt;a &lt;strong&gt;cost test&lt;/strong&gt;: still ending in the black with double the spread;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;year-by-year checks&lt;/strong&gt;: most calendar years must end in the black, and no single year may carry the result.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Duplicates are removed by shape, entry-bar overlap and month-by-month result correlation.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we measured on gold
&lt;/h2&gt;

&lt;p&gt;We ran the default settings on XAUUSD H1 with four years of data, 2,000 trials per run, ten seeds, and counted every survivor.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Price series&lt;/th&gt;
&lt;th&gt;Passed the search period&lt;/th&gt;
&lt;th&gt;Passed all checks&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Real gold&lt;/td&gt;
&lt;td&gt;7,845&lt;/td&gt;
&lt;td&gt;55&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Bars shuffled (same candle shapes, random order)&lt;/td&gt;
&lt;td&gt;6,666&lt;/td&gt;
&lt;td&gt;40&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Shuffled, with the average drift removed&lt;/td&gt;
&lt;td&gt;4,410&lt;/td&gt;
&lt;td&gt;35&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Totals over ten runs. On shuffled prices, where the order of moves carries no structure, 6 to 7 out of 10 of the real count still passed every check. The per-run counts overlap (real: 3–9, shuffled: 2–5), and the gap is not statistically clear with ten runs.&lt;/p&gt;

&lt;p&gt;How we use this: &lt;strong&gt;the number of survivors alone does not tell you whether a rule captured something real.&lt;/strong&gt; We treat the checks as a filter, not as proof, and we confirm any strategy on data the search never saw. In Pro, &lt;strong&gt;Leave out the last 12 months&lt;/strong&gt; keeps the most recent year unseen by the search for exactly that purpose.&lt;/p&gt;

&lt;h2&gt;
  
  
  Free and Pro
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Free:&lt;/strong&gt; a trial search at a smaller fixed size, with stats and pass/fail for each candidate.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pro:&lt;/strong&gt; full search settings, the rule behind each candidate, the vault, and export to MetaTrader 5 and other targets.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Results describe past data only and say nothing certain about the future.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://aistrategyminer.com/strategy-miner" rel="noopener noreferrer"&gt;https://aistrategyminer.com/strategy-miner&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;This article was drafted with AI assistance and reviewed by the AIStrategyMiner team.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>trading</category>
      <category>javascript</category>
      <category>algorithms</category>
      <category>mql5</category>
    </item>
  </channel>
</rss>
