Create and Test Forex Strategies
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; 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 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)
You can also use data from your MetaTrader account. We highly recommend exporting data from MT5 because it includes real spread information.
C:\express-generator\data\MyDatanode .\bin\gen.js --server MyData --symbol EURUSD --period M15 --max-data-bars 100000