TR-GAB DocsBack to TR-GAB
Rule Mining

Discover rule candidates without writing code.

Rule Mining scans price and indicator relationships over your selected market data. It turns the strongest single-condition candidates into strategies that you can inspect, filter, save and move through the rest of TR-GAB.

Define the search once Choose the market, execution assumptions, rule families and risk settings in one screen.

Filter while mining Apply reusable KPI clauses before weak candidates reach your results.

Continue in the platform Inspect, save, export or send selected rules to a Lab or Workflow for deeper validation.

TR-GAB Rule Mining configuration with data, execution and money management controls

The current Rule Mining surface captured automatically in a safe, empty-result state.

Start with the market definition

Select the data source, symbol and timeframe that define the search. The date mode controls the historical window; spread, slippage and execution precision describe how that data should be tested. The same configuration also carries the settings that make a candidate executable rather than a pure signal:

  • Money-management method, initial capital, leverage and lot limits.
  • Account and trade limits.
  • Trading windows and day or session exits.
  • Stop-loss, take-profit, breakeven and trailing behavior.
  • Commissions and swap when they are enabled for the selected broker data.

Use Save and Load in the Library to reuse a complete mining setup. Auto can generate a name from the current configuration.

Define what the miner may discover

Rule Mining searches one entry condition at a time. The scan can compare:

  • An indicator against a numeric threshold.
  • Price against an indicator.
  • One indicator against another indicator.

Configure the allowed operators, indicator periods, thresholds and shifts to control the search space. Wider ranges explore more combinations; narrower ranges make a hypothesis faster to test and easier to explain.

Optional market-regime constraints can focus the scan on contexts such as trend, momentum, overheated markets, choppiness, Hurst behavior or entropy. Use them only when they express part of the trading idea: every extra regime reduces the data available to each candidate.

If Mine from Bank is enabled, the miner uses the selected reusable condition bank instead of starting only from the screen’s rule ranges.

Configure exits and minimum evidence

SL and TP ranges determine which ATR-based exit combinations are evaluated. The ATR period, signal shift and minimum-trade requirement are part of the mining contract. A candidate that does not meet the minimum evidence is not promoted simply because its small sample looks attractive.

Start with a constrained rule family and a meaningful minimum number of trades. Expand the search only after you can explain why the first candidates enter and exit.

Filter the output

Output filters evaluate candidate KPIs during the scan. Add individual clauses or load a saved KPI filter or group. This is the fastest way to keep only candidates that meet your baseline requirements for profit factor, drawdown, trade count, net profit or the other available metrics.

Mining filters are a first gate, not proof of robustness. A passing rule should still be tested on unseen periods, realistic costs and the target broker.

Run and review

Press Discover to create a Rule Mining job. The active job reports progress while it evaluates the configured search space. Past Jobs lets you reopen previous runs instead of repeating the same work.

The results table brings the candidate, its KPIs and its equity curve into one place. From there you can select candidates, inspect their configuration and continue with the actions exposed by the current platform: save them to the Strategy Library, group them, open them in the appropriate Lab, send them to a Board or export them for the configured broker.

MineInspectRetestRobustnessBroker test
  1. Mine a focused family of rules over the research window.
  2. Inspect the condition, trade distribution and equity curve of each survivor.
  3. Retest on another period, symbol or precision without changing the rule.
  4. Apply robustness and walk-forward checks in a Workflow.
  5. Export and compare against the target broker before treating the candidate as deployable.

Rule Mining accelerates discovery. It does not turn an attractive historical curve into a promise of future performance.