Topic: Data-file parameter ignored
I have the problem, that the data-file parameter is ignored when I use it as a parameter in my PowerShell script:
$timeframe = 5
$datafile = "c:\express-generator\mydata\$timeframe.json"
start powershell {node .\bin\gen.js `
--settings .\forex.ini `
--period = $timeframe `
--data-file = $datafile `
--max_data_bars = 200000 `
;Read-Host}
This is giving me this error message:
..:: Express Generator v2.26 ::..
Cannot read data file: C:\express-generator\data\1.json
The seems to be a default file which is used.