forex software

Create and Test Forex Strategies

forex software

Skip to forum content

Forex Software

Create and Test Forex Strategies

You are not logged in. Please login or register.


Forex Software → Express Generator → Express Generator not Working after Installation

Pages 1

You must login or register to post a reply

RSS topic feed

Posts: 7

Topic: Express Generator not Working after Installation

Hi,

I've installed the software recently but it's not working. I get these errors after running the script

Node.js was also installed and restarted computer after installation.

C:\Windows\System32>TITLE Data Downloader

C:\Windows\System32>node  .\bin\fetch.js
node:internal/modules/cjs/loader:1051
  throw err;
  ^

Error: Cannot find module 'C:\Windows\System32\bin\fetch.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1048:15)
    at Module._load (node:internal/modules/cjs/loader:901:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
    at node:internal/main/run_main_module:23:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v20.5.1

C:\Windows\System32>--fx-rates true
'--fx-rates' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\System32>--symbols EURUSD USDJPY GBPUSD BRENTCMDUSD AUDUSD USA500IDXUSD XAUUSD
'--symbols' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\System32>--periods M1 M5 M15 M30 H1 H4 D1
'--periods' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\System32>--max-bars 200000
'--max-bars' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\System32>--time-zone 0
'--time-zone' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\System32>pause
Press any key to continue . . .

I created a \bin under c:\windows\system32\ and copied all files there and tried again and I get this error

C:\Windows\System32>TITLE Data Downloader

C:\Windows\System32>node  .\bin\fetch.js
         ..:: Express Generator Fetch v2.45 ::..

C:\Windows\System32>--fx-rates true
'--fx-rates' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\System32>--symbols EURUSD USDJPY GBPUSD BRENTCMDUSD AUDUSD USA500IDXUSD XAUUSD
'--symbols' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\System32>--periods M1 M5 M15 M30 H1 H4 D1
'--periods' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\System32>--max-bars 200000
'--max-bars' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\System32>--time-zone 0
'--time-zone' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\System32>pause
Press any key to continue . . .

Please advise what I may be doing wrong.

Thank You

Re: Express Generator not Working after Installation

Edit:

You must run the "node ./bin/fetch.js" from the Express Generator folder.

Re: Express Generator not Working after Installation

Popov wrote:

Edit:

You must run the "node ./bin/fetch.js" from the Express Generator folder.

I did the install at C:\express-generator\

Am also using a script from the help videos 'lisaforex'. Script

TITLE Data Downloader

node  .\bin\fetch.js
  --fx-rates true
  --symbols EURUSD USDJPY GBPUSD BRENTCMDUSD AUDUSD USA500IDXUSD XAUUSD
  --periods M1 M5 M15 M30 H1 H4 D1
  --max-bars 200000
  --time-zone 0
 
  pause

Am running this script by double clicking it from C:\express-generator\step_1_download_data.cmd and it gives this error to C:\Windows\System32>

Not sure why the PATH goes to C:\Windows\System32>. That's why I thought I copied the \bin\fetch.js under C:\Windows\System32> file there. But I keep getting the same error.

Re: Express Generator not Working after Installation

Popov wrote:

Edit:

You must run the "node ./bin/fetch.js" from the Express Generator folder.

I also attach an image of the error and where am running it from.

Post's attachments

ErrorRunning-0.jpg 66.93 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

5 (edited by tobeawinner 2023-08-19 22:43:55)

Re: Express Generator not Working after Installation

I updated the script to the one attached by following the file README.md and now it downloads.

Not sure if the issue is coming from the instructions of lisaforex scripts as I can't get it to work using her way of explaining it.

I've attached what I did previously. Am also using Windows 11. Her instructions is using Windows 10.

Updated node .\bin\gen.js to node ./bin/gen.js.

I also had to put everything on one line too make this run as otherwise all the parameters gives an error not recognized on a separate line

Does all the parameters need to be on one line to run ?

Post's attachments

step_1_download_data.cmd_2.cmd 92 b, 1 downloads since 2023-08-19 

You don't have the permssions to download the attachments of this post.

Re: Express Generator not Working after Installation

This is the original version that won't work and gives error persistently.

Perhaps you can share some thoughts on this.

Post's attachments

step_1_download_data.cmd 228 b, 1 downloads since 2023-08-19 

You don't have the permssions to download the attachments of this post.

Re: Express Generator not Working after Installation

You need a caret character at the end of each line when the command continues to the next line.

Here is a corrected multiline version:

TITLE Data Downloader

node  .\bin\fetch.js ^
  --fx-rates true    ^
  --symbols EURUSD USDJPY GBPUSD BRENTCMDUSD AUDUSD USA500IDXUSD XAUUSD ^
  --periods M1 M5 M15 M30 H1 H4 D1 ^
  --max-bars 200000 ^
  --time-zone 0

  pause
 

Posts: 7

Pages 1

You must login or register to post a reply

Forex Software → Express Generator → Express Generator not Working after Installation

Similar topics in this forum