Create and Test Forex Strategies
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| express-generator:fetch-js [2026/02/22 08:10] – Miroslav Popov | express-generator:fetch-js [2026/05/29 10:23] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Fetcher (fetch.js) ====== | ====== Fetcher (fetch.js) ====== | ||
| - | **fecth.js** - downloads historical data from the provided sources, Forex rates, | + | **fetch.js** downloads historical |
| + | If you are new to ExGen, begin with [[quick-start|Quick Start]] and return here for full option coverage. | ||
| + | |||
| + | ===== What Fetcher Does ===== | ||
| + | |||
| + | Fetcher can run one or more of these jobs in a single command: | ||
| + | |||
| + | * Download Forex rates (**fx_rates**) | ||
| + | * Download symbol information (**symbol_info**) | ||
| + | * Download historical market data (**symbol**, | ||
| + | * Check and optionally install Express Generator updates (**check_for_update**) | ||
| + | |||
| + | If all jobs are disabled, Fetcher exits with " | ||
| + | |||
| + | You can fetch data only from servers provided by the developers (Forex Software Ltd). | ||
| + | |||
| + | Currently available servers are: // | ||
| + | |||
| + | Note: Premium data is composed from Dukascopy tick data sources. | ||
| ===== Quick Start ===== | ===== Quick Start ===== | ||
| + | Recommended first run order for new users: | ||
| + | |||
| + | * Update metadata first (FX rates and symbol info) | ||
| + | * Fetch historical data | ||
| + | * Continue with strategy generation in [[gen-js|Generator (gen.js)]] | ||
| ==== Fetch historical data ==== | ==== Fetch historical data ==== | ||
| + | <code bash> | ||
| + | node ./ | ||
| + | </ | ||
| + | |||
| + | Example output: | ||
| + | |||
| + | < | ||
| + | ..:: Express Generator Fetch v2.xx ::.. | ||
| + | Fetched: MetaQuotes EURUSD M15, From: 2018-02-02 09:45, To: 2026-02-20 21:30, Bars: 200000 | ||
| + | Data fetch ready! | ||
| + | </ | ||
| + | |||
| + | ==== Update local metadata (FX rates + symbol info) ==== | ||
| + | |||
| + | <code bash> | ||
| + | node ./ | ||
| + | </ | ||
| + | |||
| + | Example output: | ||
| + | |||
| + | < | ||
| + | ..:: Express Generator Fetch v2.xx ::.. | ||
| + | FX rates fetch ready! | ||
| + | Symbol info fetch ready! | ||
| + | </ | ||
| + | |||
| + | ==== Check for updates only ==== | ||
| + | |||
| + | <code bash> | ||
| + | node ./ | ||
| + | </ | ||
| + | |||
| + | ===== Settings and Priority ===== | ||
| + | |||
| + | Fetcher reads options in this order (lowest to highest priority): | ||
| + | |||
| + | * Default file: '' | ||
| + | * User settings file(s): '' | ||
| + | * CLI options: for example '' | ||
| + | |||
| + | Higher priority overrides lower priority. | ||
| + | |||
| + | When using several files with '' | ||
| + | |||
| + | Settings names are flexible in INI and CLI: | ||
| + | |||
| + | * snake_case | ||
| + | * camelCase | ||
| + | * PascalCase | ||
| + | |||
| + | Aliases are supported: | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | ===== Command Reference ===== | ||
| + | |||
| + | ==== Core options ==== | ||
| + | |||
| + | ^ Option ^ Type ^ Default ^ Description ^ | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | |||
| + | Network behavior note: | ||
| + | |||
| + | * If a fetch request fails with a transient network error (for example '' | ||
| + | |||
| + | ==== Metadata options ==== | ||
| - | Command: | + | ^ Option ^ Type ^ Default ^ Description ^ |
| + | | '' | ||
| + | | '' | ||
| - | express-generator> | + | ==== Update options ==== |
| - | Output: | + | ^ Option ^ Type ^ Default ^ Description ^ |
| - | ..:: Express Generator Fetch v2.70 ::.. | + | | '' |
| - | + | | '' | |
| - | Fetched: MetaQuotes EURUSD M15, From: 2018-02-02 09:45, To: 2026-02-20 21:30, Bars: 200000 | + | | '' |
| - | Data fetch ready! | + | |
| + | ==== Settings file options ==== | ||
| - | ==== Update the local meta data ==== | + | ^ Option ^ Type ^ Description ^ |
| + | | '' | ||
| + | | '' | ||
| - | Fetch Forex rates and symbol information | + | ===== Output |
| - | Command: | + | * FX rates are saved in '' |
| + | * Symbol info is saved in '' | ||
| + | * Historical data is saved in the data directory under '' | ||
| + | * Update check timestamp is stored in '' | ||
| - | express-generator> | + | ===== Related pages ===== |
| - | Output: | + | * [[fetch-forex-rates|Forex rates and symbol info]] |
| - | ..:: Express Generator | + | * [[fetch-data|Fetch historical data]] |
| - | + | * [[fetch-update|Update Express Generator]] | |
| - | FX rates fetch ready! | + | * [[settings-files|Settings files]] |
| - | | + | |