<?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>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>
