Table of Contents

Quick Start

This quick guide is designed for new users. It covers the most common workflow with Fetcher and Generator. For a full script index, see User Guide.

Before you start

Step 1: Refresh metadata

Download Forex rates and symbol information:

  express-generator> node ./bin/fetch.js --server Premium --fx-rates true --symbol-info true

Why this step matters:

Step 2: Fetch historical data

Fetch one market:

  express-generator> node ./bin/fetch.js --server Premium --symbol EURUSD --period M30

Fetch multiple markets and periods:

  express-generator> node ./bin/fetch.js --server Premium --symbols EURUSD GBPUSD --periods M15 M30 H1

Tip:

Step 3: Generate a new collection

Generate strategies from your downloaded data:

  express-generator> node ./bin/gen.js --server Premium --symbol EURUSD --period M30

Typical result:

Tip for long runs:

Step 4: Validate an existing collection

Revalidate a collection on current data:

  express-generator> node ./bin/gen.js --server Premium --symbol EURUSD --period M30 --input ./collections/Coll_Premium_EURUSD_M30.json

Validate and continue generating:

  express-generator> node ./bin/gen.js --server Premium --symbol EURUSD --period M30 --input ./collections/Coll_Premium_EURUSD_M30.json --validate-then-generate true

Step 5: Use a settings file

Run Fetcher with a custom settings file:

  express-generator> node ./bin/fetch.js --settings my-fetch.ini

Run Generator with a custom settings file and one CLI override:

  express-generator> node ./bin/gen.js --settings my-gen.ini --symbol GBPUSD

Run Generator with several settings files (layered overrides):

  express-generator> node ./bin/gen.js --settings gen.ini EURUSD.ini --symbol EURUSD

Settings priority:

When using several files, each next file overrides values from the previous one. The order of options in the CLI command is not important. The order of parameters inside each INI file is not important.

Next steps