<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forex Software — Express generator running on Zorin (Linux)]]></title>
	<link rel="self" href="https://forexsb.com/forum/feed/atom/topic/9701/" />
	<updated>2024-03-23T10:40:23Z</updated>
	<generator>PunBB</generator>
	<id>https://forexsb.com/forum/topic/9701/express-generator-running-on-zorin-linux/</id>
		<entry>
			<title type="html"><![CDATA[Re: Express generator running on Zorin (Linux)]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/79198/#p79198" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>ParserError: /home/andrew/express-generator/updatedata.ps1:2<br />Line |<br />&nbsp; &nbsp; 2 |&nbsp; &nbsp; -- fx-rates&nbsp; true ^</p></blockquote></div><br /><p>In <strong>PowerShell</strong>, you can use the backtick character (<strong>`</strong>) to create a multiline command. The backtick acts as a line continuation character, allowing you to split a single command across multiple lines for better readability. Here’s how you can use it:</p><div class="codebox"><pre><code>node .\bin\fetch.js `
  --fx-rates true   `
  --symbols  EURUSD USDJPY GBPUSD `
  --periods  M1 M5 M15 M30 H1 H4 D1 `
  --max-bars 200000 `
  --time-zone  0</code></pre></div><p>You see the error because the caret character (^) does not work for joining a multiline command. What happens is that PowerShell sees the first line as one command and the second line as a new command.</p><p>Carret character (^) works in the Windows command scripts (with .cmd extension).</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2024-03-23T10:40:23Z</updated>
			<id>https://forexsb.com/forum/post/79198/#p79198</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Express generator running on Zorin (Linux)]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/79196/#p79196" />
			<content type="html"><![CDATA[<p>Thanks for the response. I take it you are running this on a Windows based system because you are using a &#039;cmd&#039; command?<br />I am running in a Zorin terminal window where I have loaded powershell and then calleing node js.<br />Thanks, Andrew.</p>]]></content>
			<author>
				<name><![CDATA[andrew_1089]]></name>
				<uri>https://forexsb.com/forum/user/10441/</uri>
			</author>
			<updated>2024-03-22T21:36:17Z</updated>
			<id>https://forexsb.com/forum/post/79196/#p79196</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Express generator running on Zorin (Linux)]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/79174/#p79174" />
			<content type="html"><![CDATA[<p>Hello my friend, how are you? I&#039;m sending you exactly in this post the working file, just place it in the same folder as the Generator and give it 2 clicks. Something else, I also advise you, as a user who uses this tool a lot, that you use the import script. of data from the MP 5 itself so that you can then download your data from your own broker, this will enable you to use indicators so that this volume strategy creation</p><br /><p>Don&#039;t forget to change the folder where the imported jazon files are located. Using the MP 5 script, you can change this folder within the Express generator configuration files</p>]]></content>
			<author>
				<name><![CDATA[gabdecsters]]></name>
				<uri>https://forexsb.com/forum/user/14801/</uri>
			</author>
			<updated>2024-03-21T23:53:58Z</updated>
			<id>https://forexsb.com/forum/post/79174/#p79174</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Express generator running on Zorin (Linux)]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/79169/#p79169" />
			<content type="html"><![CDATA[<p>Hi,<br />Got a small issue, managed eventually to get powershell running, with Node js and express generator installed. For some reason if I call a script such as get data in the format of: -<br />ITLE Data Downloader</p><div class="codebox"><pre><code>node .\bin\fetch.js ^
  --fx-rates true   ^
  --symbols  EURUSD USDJPY GBPUSD ^
  --periods  M1 M5 M15 M30 H1 H4 D1 ^
  --max-bars 200000 ^
  --time-zone  0</code></pre></div><p>pause<br />I get an error of PS /home/andrew/express-generator&gt; ./updatedata.ps1&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ParserError: /home/andrew/express-generator/updatedata.ps1:2<br />Line |<br />&nbsp; &nbsp;2 |&nbsp; &nbsp; -- fx-rates&nbsp; true ^<br />&nbsp; &nbsp; &nbsp;|&nbsp; &nbsp; &nbsp; ~<br />&nbsp; &nbsp; &nbsp;| Missing expression after unary operator &#039;--&#039;.</p><p>However if I run like this&nbsp; from another ps script it works &quot;# Fetch Data BlackBull</p><p>node ./bin/fetch.js --fx-rates true --symbols&nbsp; EURUSD USDJPY GBPUSD --periods&nbsp; M1 M5 M15 M30 H1 H4 D1 --max-bars 200000&nbsp; --time-zone +2 --server BlackBull</p><p>pause</p><p>So I am thinking its an issue with new lines or carriage returns, I&#039;ve tried various delimeters however if all the command string is not on a single line it will error.<br />Any ideas to help?<br />Best wishes,<br />Andrew.</p>]]></content>
			<author>
				<name><![CDATA[andrew_1089]]></name>
				<uri>https://forexsb.com/forum/user/10441/</uri>
			</author>
			<updated>2024-03-21T16:24:39Z</updated>
			<id>https://forexsb.com/forum/post/79169/#p79169</id>
		</entry>
</feed>
