====== Data source ====== ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Data source ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Express Generator loads data either from "server" + "symbol" + "period", or from "data_file". ; Server is actually the data files folder under the "data" folder. ; Provided servers: Premium, Dukascopy, MetaQuotes, Darwinex, Eightcap, BlackBull server = Premium symbol = EURUSD ; Available values: M1, M5, M15, M30, H1, H4, D1 period = M30 ; Data file from Premium data, or exported from MetaTrader. ; Example: data_file = ./data/Premium/EURUSD_M30.json ; Using "data_file" overrides the "symbol" and "period" parameters. data_file = ===== Fetch and use provided data ===== Fetch data: node .\bin\fetch.js --server Darwinex --symbol USDJPY --period M15 --max-data-bars 100000 Generate new strategies: node .\bin\gen.js --server Darwinex --symbol USDJPY --period M15 --max-data-bars 100000 As you see, the format for fetching and using data is the same. (You may also use Data Horizon or OOS parameters for ''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. node .\bin\gen.js --server MyData --symbol EURUSD --period M15 --max-data-bars 100000