forex software

Create and Test Forex Strategies

forex software

express-generator:data-source

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
express-generator:data-source [2023/07/04 17:24] – created Miroslav Popovexpress-generator:data-source [2026/05/29 10:23] (current) – external edit 127.0.0.1
Line 6: Line 6:
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  
-; Express Generator loads data by either "server""symbol", and "period" or by "data_file"+; Express Generator loads data either from "server" "symbol" "period"or from "data_file".
  
-; Server is the data files folder under the "data" folder.+; Server is actually the data files folder under the "data" folder. 
 +; Provided servers: Premium, Dukascopy, MetaQuotes, Darwinex, Eightcap, BlackBull
 server = Premium server = Premium
 symbol = EURUSD symbol = EURUSD
-Period can be in text format: M15, H1, D1 or in number of minutes: 560, 1440+Available valuesM1, M5, M15, M30, H1, H4D1
 period = M30 period = M30
  
-; Data file from Premium data or exported from Meta Trader+; Data file from Premium dataor exported from MetaTrader.
 ; Example: data_file = ./data/Premium/EURUSD_M30.json ; Example: data_file = ./data/Premium/EURUSD_M30.json
-The usage of "data_file" overrides the "symbol" and the "period" parameters.+Using "data_file" overrides the automatic file lookup by "server""symbol" "period".
 data_file = data_file =
 </code> </code>
 +
 +===== Fetch and use provided data =====
 +
 +Fetch data:
 +
 +<code>
 +node .\bin\fetch.js --server Darwinex --symbol USDJPY --period M15 --max-data-bars 100000
 +</code>
 +
 +
 +Generate new strategies:
 +<code>
 +node .\bin\gen.js --server Darwinex --symbol USDJPY --period M15 --max-data-bars 100000
 +</code>
 +
 +The workflow is consistent: fetch with ''fetch.js'', then run ''gen.js'' on the same market and period.
 +You may also combine this with Data Horizon and Out of Sample settings in ''gen.js''.
 +
 +
 +===== Use data from MetaTrader =====
 +
 +You can also use data from your MetaTrader account. We highly recommend exporting data from MT5 because it includes real spread information.
 +
 +  * Export data from MT with the "Data Export.mq5". (You can download the script from EA Studios, Data Import page.) Set the proper count of bars and commission values in the script's Input.
 +  * Place the files in a subdirectory of ExGen's data directory. For example: ''C:\express-generator\data\MyData''
 +  * Use the directory's name as a server name when running the generator.
 +
 +<code>
 +node .\bin\gen.js --server MyData --symbol EURUSD --period M15 --max-data-bars 100000
 +</code>
 +
 +
 +
 +
 +