What it does
NameSmith renames strategies in a StrategyQuant X databank with a template. You select strategies, press the button, pick or type a template, check a live preview of every old and new name, and rename. A databank full of Strategy 4.12.7 becomes Breakout_SP500_H4_001, and if you do not like it you can undo the batch.

Where it lives
NameSmith is a databank action. In a databank (for example on the Results screen or in a project’s databank), select one or more strategies and press the NameSmith button among the databank actions. Strategies must be selected, or SQX tells you “You have to select at least one strategy to rename”. A project that is loading or running cannot be renamed; stop it first.
You still have the older free Batch Auto Rename plugin installed. Remove its Plugins\AutoRename folder and jar from your SQX install.
A run, step by step
Select strategies
Select them in one databank. (Renaming across several databanks in one run is not supported; select per databank.)
Pick a template
Choose a preset or saved template from the list, or type your own in Template. Click a token chip to insert it.
Type the style, if the template uses it
When the template contains
{style}, a Trading Style field appears (for example “Breakout”).Check the preview
The table shows each Current name and New name with any warning. Rename is disabled while the template has a problem. The preview shows the first rows only on a large batch; all selected strategies are renamed.
Rename
The batch is applied. If you do not like it, reopen the popup and press Undo last rename.
Template tokens
| Token | Becomes | Example |
|---|---|---|
{style} | The text you typed in Trading Style, sanitised. | Breakout |
{ticker} | The first segment of the strategy’s main symbol, upper case. | SP500 |
{symbol} | The full symbol part of the main result key, as stored. | SP500_dukascopy_the5ers |
{tf} | The timeframe, upper case. | H4 |
{db} | The databank name, sanitised. | Candidates |
{old} | The strategy’s current name, sanitised. | Strategy 4.12.7 |
{date} | Today as yyyyMMdd. | 20261107 |
{n} | A collision-safe counter, zero-padded. {n:4} sets the width from 1 to 6 (default 3). | 001, or 0001 with {n:4} |
Names are limited to 120 characters. An unbalanced { } or an unknown token is reported in the popup and disables Rename.
Presets
| Preset | Template |
|---|---|
| Style_Ticker_TF_### | {style}_{ticker}_{tf}_{n} (the default) |
| Ticker_TF_Style_### | {ticker}_{tf}_{style}_{n} |
| Style_Ticker_TF_Date_## | {style}_{ticker}_{tf}_{date}_{n:2} |
| Databank_#### | {db}_{n:4} |
| Style_Symbol_TF_### | {style}_{symbol}_{tf}_{n} |
Type a template name and press Save template to keep your own; Delete saved removes it. Saved templates and the last template used are stored in user\extend\NameSmith\namesmith.json.
How numbering and collisions work
- Counters continue. The
{n}counter continues after the highest existing number in each name group, so a second batch with the same template carries on from the first. - Comparisons are case-insensitive. A strategy is a file, and
AbcandABCcollide on Windows. - Templates without
{n}get_2,_3suffixes where names would otherwise collide. - Re-running is a no-op. Names that already follow the template are left alone and marked in the preview as unchanged.
Fallbacks
The symbol and timeframe come from the strategy’s main result key, else from its name, else UNKNOWN_NA. The preview flags every fallback so you can see which names were built from a guess.
Undo
Undo last rename reverses the most recent batch for that databank; the count of strategies it would restore is shown on the button. A journal of the last 20 batches per databank is kept. Undo skips, and reports, any strategy that has vanished since or whose old name is now taken by another strategy.
Why it is safe
NameSmith uses the same lock, clone, remove and add steps as SQX’s own Rename action, but it checks the result of the add. If a databank filter refuses the renamed record, the original is restored. (SQX’s own Rename action silently loses the strategy in that case.)
Limits
- One databank per run.
- It cannot rename while the project is loading or running.
- Undo covers the last 20 batches per databank.
Troubleshooting
| Symptom | Cause and fix |
|---|---|
| No NameSmith button | Restart SQX after installing. The button is added to the databank actions at start. |
| Two rename buttons | Remove the old free Batch Auto Rename plugin. |
| Rename is greyed out | The template has a problem; the message is shown under the template. Check braces and token names. |
| “Cannot rename strategies when project is in loading/running state” | Stop the project, then rename. |
Names contain UNKNOWN_NA | The symbol or timeframe could not be read from the strategy. The preview marks it; rename with a template that does not need them, or fix the strategy name. |
| Undo skipped some strategies | They no longer exist, or their old name is taken by another strategy. The popup lists them. |