Skip to main content

MT5 .set and .ini Converter

InsightEdgeFX MT5 .set and .ini Converter turns a MetaTrader 5 expert preset into a Strategy Tester configuration file, and turns the inputs in a tester .ini back into a .set you can load. Conversion runs in this browser. The file is not uploaded.

.set or tester .ini

Upload a preset or a tester configuration

Drop the file here, or choose it from your computer. Conversion runs in this browser. The file is not uploaded.

Which MetaTrader 5 files this page converts

Drop a .set preset or a Strategy Tester .ini on this page, or choose the file from your computer. A .set file is the preset the expert Inputs tab loads and saves. A tester .ini is the configuration terminal64.exe reads from /config:. Both files carry the same input lines. The .ini also carries the symbol, period, dates, deposit, and expert.

Conversion runs in this browser. The file is not uploaded. The download is UTF-16 LE with a byte-order mark, which is the encoding MetaTrader loads.

What a .set file and a tester .ini each contain
Topic.settester .ini
What it storesExpert inputs, a group comment, and an optimization range on the same line.Those inputs under [TesterInputs], plus the expert, symbol, period, dates, and deposit under [Tester].
Where MetaTrader reads itThe expert Inputs tab, with Load.terminal64.exe /config:file.ini.
Encoding of the downloadUTF-16 LE with a byte-order mark.UTF-16 LE with a byte-order mark.

Turn a .set preset into a tester .ini

A .set file has the input lines and no tester run. After the file loads, enter the expert, symbol, period, dates, deposit, currency, and leverage. Download .ini writes those fields under [Tester] and copies every input line under [TesterInputs], including a group comment and an optimization range.

The expert name is taken from the file name when it is still empty. MyEA.set becomes Expert=MyEA.ex5. A name that already ends in .ex5 or .mq5 is kept. The inputs are inside the .ini, so the terminal does not need a second copy of the .set in MQL5\Profiles\Tester.

Turn tester inputs into a .set file

Download .set writes the [TesterInputs] lines. Group comments and optimization ranges stay on those lines. Symbol, period, dates, and deposit stay in the form on this page, because a .set file has no fields for them.

A [Common] login section is left out. An .ini that only names ExpertParameters, and has no [TesterInputs] section, has no inputs to copy. Open the .set file it names.

Optimization ranges and the file encoding

An optimized input uses one line: name=value||start||step||stop||Y. The last flag is Y when that input is included in optimization and N when it stays fixed. A plain name=value line is copied the same way. This page does not rewrite either line.

MetaTrader reads .set and tester .ini files as UTF-16 LE. A file that was opened in an editor and saved as UTF-8 or ANSI can still be read here. The download is written as UTF-16 LE again, so the terminal can load it.

Questions about MT5 .set and .ini files

How do I convert an MT5 .set file to a Strategy Tester .ini?

Drop the .set file on this page, or choose it from your computer. Enter the expert, symbol, period, dates, deposit, and leverage. Those fields are not stored in a .set file. Download .ini writes them under [Tester] and copies every input line, including an optimization range, under [TesterInputs]. The download is UTF-16 LE, which MetaTrader loads.

How do I convert a Strategy Tester .ini to a .set file?

Drop the .ini on this page. Download .set writes the [TesterInputs] lines, including group comments and optimization ranges. Symbol, period, dates, and deposit stay listed on the page because a .set file has no fields for them. The download is UTF-16 LE so the Inputs tab can load it.

Does this converter keep optimization start, step, and stop values?

Yes. A line such as RiskPercent=1.0||0.5||0.5||5.0||Y is copied unchanged into the other file. The last flag is Y when that input is included in optimization and N when it stays fixed. A plain name=value line is also copied unchanged.

Is my MT5 .set or .ini file uploaded?

No. The file is read in this browser and the download is built on this device. This page has no save action, and the original file stays on your computer.

Where do I use the converted file in MetaTrader 5?

Load a .set from the expert Inputs tab. A tester .ini is the file you pass to terminal64.exe /config:. The inputs sit under [TesterInputs], so that .ini does not need a matching .set in MQL5\Profiles\Tester. Place the .ini where you start the terminal, or pass its full path.

Why does MetaTrader skip a .set I edited in a text editor?

MetaTrader reads .set and tester .ini files as UTF-16 LE with a byte-order mark. Saving that text as UTF-8 or ANSI can make the terminal skip the inputs. This page accepts those encodings on the way in and writes UTF-16 LE on the way out.