Table of Contents

Settings Files

Express Generator uses settings files in ini format.

You can run ExGen with:

Default settings files

Each script has a default settings file in ./bin:

If you do not pass –settings, the script uses only its default file.

INI format basics

An INI file is plain text with key = value lines.

Example gen.ini:

; Market
symbol = EURUSD
period = H1

; Minimal Profit Factor
min_profit_factor = 1.4

Example with multiple values:

symbols = EURUSD GBPUSD USDJPY
periods = M15 M30 H1

Use one custom settings file

You can provide one user file with –settings.

node ./bin/gen.js --settings my-gen.ini

This loads:

Use several custom settings files

You can pass several files after –settings.

node ./bin/gen.js --settings gen.ini EURUSD.ini

This is useful when you keep:

File names are for your convenience. The important part is the order.

Priority and override order

Settings are merged in this order (lowest to highest priority):

When there are several custom files, each next file overrides keys from the previous one. CLI options always win.

Important order rules:

Practical example

Command:

node ./bin/gen.js --symbol EURUSD --settings gen.ini EURUSD.ini --period M30

How values are resolved:

Tips