Docs menu

Run a search

The settings of a Strategy Miner run, what each one does, and how to leave out the last 12 months.

This page covers the four steps of the Setup section, including step 4 (Fine-tune), and how to start and stop a run. The checks that follow the search are on How candidates are filtered.

The export target is chosen later, in the Builder

The Miner has no export-target field. A candidate is saved as a design made of Builder blocks, and you choose the target (MetaTrader 5, MetaTrader 4, TradingView Pine, cTrader or Python) later, in the Builder. There are 5 targets.

Decide the target before you start a long run, because not every part can be written for every target. When you export a design with a part the target cannot express, the Builder says so and gives a reason. It does not leave the part out. The six default entry parts (moving average, RSI, Bollinger Bands, MACD, Stochastic, Donchian) are the safest choice if you want to move between targets. The extra parts under Advanced search are off by default.

Exports are a Pro feature. For MetaTrader 5, the Builder saves a .mq5 source file. You open it in MetaEditor and press F7 to compile it.

The one-screen layout

On a wide screen the Miner page fits one screen, like the Builder. The left section holds the setup (steps 1 to 4), the middle section is the mining field with the Start mining button, the counters and the GET! pop, drawn over a mining scene whose layers move with the real share of trials done, and the right section is the Treasure shelf where the strategies you found are listed as tiles. The page does not scroll inside this frame; a section with a lot in it, such as the setup or the shelf, scrolls on its own. The explanations, the questions and the plan table are below the frame. On a phone, the same three sections are tabs at the bottom (Setup, Mining, Treasure). Starting a run opens the Mining tab, and a finished run first shows the Results screen, then opens Treasure. While a Pro run is mining, each real rise in the Raw finds count sends a raw gem to a pile of raw gems under the Treasure shelf heading (to the Treasure tab on a phone). Raw finds are the candidates the search has found so far, before the robustness checks; most of them are dropped later. When the checks start, the status line reads “Polishing the raw finds…” with the real passed and dropped counts, and the Results screen shows what is left, for example “From 4,564 raw finds, 5 treasures passed the checks”. Only those strategies go onto the shelf. After a run the Start button reads Dig again.

  1. Open the Strategy Miner. The page opens with example buttons such as EURUSD H1 or USDJPY M15 scalping. A button only fills in the symbol, timeframe and direction. It does not start a search. Below the frame, short sections explain how the Miner works and what Pro adds; they fold away once a run has results.

  2. Go through the steps (see the next section). The cards you click set the same values as the fields behind them, so a link or an example button moves the cards too.

  3. Open step 4 (Fine-tune) if you want to change the number of candidates, the minimum trades, the ranking, the entry node families or the seed. They are on the Search options tab of step 4. The three switches (Keep going until I stop it, Grow from my best, Leave out the last 12 months) are small checkboxes at the bottom of step 3; the ? beside each one explains it.

    The Setup section of the Miner with step 4, Fine-tune, open, showing Candidates to keep, Minimum trades, Random seed and the entry node families.
    The Setup section and step 4, Fine-tune.
  4. Click Start mining.

  5. Watch the Mining section in the middle. Three numbers appear: Trials tried, Raw finds and Elapsed. Under them is the progress line, which shows the trials done and the raw finds so far, and then the robustness checks. The numbers come from the search itself, not from an estimate. In every run, with or without Pro, a large GET! with the added number (for example +2 raw finds) shows in the middle of the section each time Raw finds goes up. If it goes up again within a few seconds, a x2, x3 combo count is added. It never shows when the number has not gone up.

    The Mining section of the Miner, with the counters Trials tried, Raw finds and Elapsed, a progress line under them and the Cancel button.
    A run in progress. The Mining section shows the counters and Cancel.
  6. Click Cancel to stop. The run ends, the screen says “Cancelled.” and nothing from that run is saved to your vault.

If you clear every entry node family and have not chosen any extra part under Advanced search (Pro), the Miner stops with “Select at least one entry node family.”

The three steps

1. Choose a market. Click a currency card, pick a Timeframe and a Period. More markets shows the add-on symbols and your own CSV data when they are available (Pro).

2. Choose a style. Pick one or more cards: Ride the trend (moving average, MACD, Donchian), Counter-trend (RSI, Stochastic, Bollinger Bands), Breakout (Bollinger Bands, Donchian) or Let it choose (all six). The cards tick the same six entry node families as the checkboxes in step 4 (Fine-tune). If you tick other families there, the summary says Custom. Direction is below the cards.

3. How deep to dig. Light, Standard and Thorough set the trial limit to 10,000, 50,000 and 200,000. Standard takes about a minute and Thorough about three on an ordinary PC; the card shows the estimate. A link or saved value such as 2,000, 5,000 or 100,000 is kept, and the nearest card is shown as selected.

The table below lists the values behind the cards.

Symbol, timeframe, period, direction and trials

SettingWhat it doesValues
SymbolThe market to search on. With Pro, the add-on symbols are listed in the group Add-on currencies, each marked “download first”.8 built-in symbols, 35 in total
TimeframeThe bar length.M5, M15, M30, H1, H4, D1
Period (years)How much history to use.2, 3, 4, 5. Pro adds a Long period group: 8 and 10
DirectionWhich side the strategy may trade.Both (auto), Buy only, Sell only
Trial limitHow many random combinations to try. More trials take longer.1,000, 2,000 (default), 5,000, 10,000, 20,000, 50,000, 100,000, 200,000
  • Add-on symbols need a download the first time. The Add currencies panel (Pro) manages them.
  • A long period (8 or 10 years) works with the 8 built-in symbols and with 18 of the 27 add-on symbols. The first run downloads the data, and the search takes about twice as long.
  • M15 and M30 cover up to 5 years. The first run downloads 15-minute data, and the search takes several times longer than on H1.
  • Without Pro, the trial run is a real search at a smaller fixed size. The trial limit (step 3) and the period are fixed. They show a lock mark, and clicking one shows a short “available with Pro” notice. Symbol, timeframe (H1, H4 or D1), style and direction in steps 1 and 2 do apply to a trial run. Step 4 (Fine-tune) is locked and marked PRO; you can still see every setting, so you know what Pro lets you tune. Each surviving candidate is a card with an equity curve, profit factor, trades, win rate, maximum drawdown and a tick or cross per check; its conditions stay with Pro. See the overview for the trial run limits.

Leave out the last 12 months (Pro)

Pro shows a checkbox, Leave out the last 12 months. When it is on, the search ends 12 months before the latest price bar. The Miner never looks at those 12 months. With 5 years of built-in data, the search then uses about 4 years.

Use it when you want the last 12 months to stay unseen by the search, so you can check a strategy on them yourself. A strategy searched on the full period has already seen those months. The vault remembers which strategies were searched this way.

Turning it on does not change the other checks. It also does not make a strategy better. It only keeps the last 12 months unseen.

Grow from my best (Pro)

Pro shows a checkbox, Grow from my best. It is off by default. A normal run starts every search from random combinations. With the box ticked, the run starts from strategies you already have.

  • Starting points. The Miner reads the top strategies in your vault for the same symbol and timeframe, ranked by profit factor and meeting your minimum trades. It takes up to 12 of them. If you also use Keep going until I stop it, the strategies that passed in the previous round are added.
  • Fit. Only strategies that fit the current settings are used (direction, parts, advanced settings and volume data). The others are skipped.
  • New candidates. Part of the first group of trials are variations of those strategies. After that the search goes on as usual.
  • Parts. Parts that appear often in the strategies that passed are picked more often in new trials. Parts that never appeared still keep a lower chance.
  • Same checks. Variations pass the same checks as every other candidate. Ones that repeat what your vault already holds are skipped.

The summary line says what happened, for example “Grew from 12 earlier strategies: 3 of the 5 kept come from them.” If no earlier strategy fits, it says “No earlier strategy fitted these settings, so this run started from scratch.”

The box has no effect on a search with your own CSV data. If the vault cannot be read within 10 seconds, that run starts from scratch.

See Grow from my best for the full explanation. Growing does not guarantee better candidates, and results come from past data. Judge each candidate by the later period and the other checks.

Candidates to keep, minimum trades and seed

These settings are in step 4 (Fine-tune), on the Search options tab.

SettingWhat it doesValues
Candidates to keepThe most candidates one run keeps. A run keeps fewer when fewer pass the checks, and a run set to 20 or 50 takes longer because every kept candidate is re-checked.5, 10 (default), 20, 50
Minimum tradesThe fewest trades a candidate needs. The search period and the later checks each use a share of this number.20 to 1,000. Default 60, or 30 on D1 unless you changed it
Random seedSets the sequence of random trials. The same seed with the same settings gives the same result.1 to 99,999

The seed is picked at random when the page loads. It goes up by 1 after each Start mining. To repeat a run, type the same seed again.

Rank candidates by (Pro)

Also in step 4 (Fine-tune), Rank candidates by sets what the search sorts by while it runs, and which strategies Grow from my best uses as starting points.

ChoiceRanks by
Default (PF, trade count and drawdown combined)The combined score the Miner has always used. Results are the same as before this setting existed.
Profit factor (PF)PF, capped at 3.
Net profit ÷ max drawdownNet profit as a % of the starting balance, divided by max drawdown %.
Net profitNet profit as a % of the starting balance.
Sharpe (per trade), Sortino (per trade)The per-trade ratios in Metrics.
Equity-curve linearity (R²)How straight the cumulative profit line is.
Trade quality scoreThe Trade quality score in Metrics.

The value is measured on the search period only. A candidate still needs the minimum trades, the later-period check and every other check, whatever you choose. A strategy with fewer trades than the minimum always ranks last. For Grow from my best, the Miner reads up to 100 of your best-PF vault rows for the symbol and timeframe, re-sorts them by the chosen value and takes 12. Rows without that value (saved before it was stored) go last; if no row has it, the PF order is kept.

A higher minimum leaves fewer candidates, each based on more trades. If a run ends with no candidate, the Miner suggests more trials, another symbol, or a lower minimum.

Entry node families

The families are the six default entry parts: Moving average, RSI, Bollinger Bands, MACD, Stochastic and Donchian. Tick the ones the search may use. At least one must stay on, unless you have chosen extra parts under Advanced search (Pro). Pro can add more parts under Advanced search.

Results of a run

A Pro run saves its candidates to your vault automatically and shows a line such as “Saved 5 to your vault”. A trial run without Pro shows the Results screen, the tiles on the Treasure shelf, the folded Checks table with real counts and, for each candidate, the performance numbers and a tick or cross per check, but not the conditions and nothing is saved to a vault. A run’s saved strategies are listed on the Vault page, /strategy-miner/vault. These are explained on Reading results. Each press of Start mining runs a new search, because the seed advances. After you click Start mining the Mining section shows the run, and when it ends the Results screen and the shelf show the tiles. A small Found! mark sits on each candidate card.

Results are an approximation of past data. They do not guarantee the future.

Related reference: Symbols and Limits.