<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forex Software — How to get ExpressGenerator to run with Test.cmd file]]></title>
	<link rel="self" href="https://forexsb.com/forum/feed/atom/topic/9563/" />
	<updated>2023-10-13T23:10:47Z</updated>
	<generator>PunBB</generator>
	<id>https://forexsb.com/forum/topic/9563/how-to-get-expressgenerator-to-run-with-testcmd-file/</id>
		<entry>
			<title type="html"><![CDATA[Re: How to get ExpressGenerator to run with Test.cmd file]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/77095/#p77095" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Popov wrote:</cite><blockquote><p>&gt; but how do you handle settings that are unique to a pair like swap long and swap short?</p><p>&gt; That&#039;s where you create new variables, %4, %5, %6, etc.</p><p>I solve this problem by having separate &quot;ini&quot; files for each symbol in a subfolder. </p><p>For example:<br />.\ini\EURUSD.ini</p><br /><div class="codebox"><pre><code>swap_long  = -6.88
swap_short = 2.02
stop_loss_range_min = 20
stop_loss_range_max = 220</code></pre></div><br /><p>Then, we can call gen.js with two &quot;ini&quot; files:</p><div class="codebox"><pre><code>node .\bin\gen.js --settings generate.ini .\ini\%symbol%.ini ...</code></pre></div></blockquote></div><p>Hi Popov, my previous question probably got lost in the conversation... I noticed the .json files created by the Data Export EA already include swaplong and swapshort for each symbol. Does Express Generator use these custom swaps when using --server or do we have to specify them with swap_long and swap_short in an .ini file? I&#039;m hoping it already includes them as it makes scripts simpler... ;-)</p>]]></content>
			<author>
				<name><![CDATA[aaronpriest]]></name>
				<uri>https://forexsb.com/forum/user/12293/</uri>
			</author>
			<updated>2023-10-13T23:10:47Z</updated>
			<id>https://forexsb.com/forum/post/77095/#p77095</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to get ExpressGenerator to run with Test.cmd file]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/77081/#p77081" />
			<content type="html"><![CDATA[<p>&quot;--show-top 10&quot; shows the top 10 strategies in the console when the Generator finishes.</p><p><a href="https://image-holder.forexsb.com/store/show-top-10.png"><span class="postimg"><img src="https://image-holder.forexsb.com/store/show-top-10-thumb.png" alt="https://image-holder.forexsb.com/store/show-top-10-thumb.png" /></span></a></p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2023-10-13T11:39:03Z</updated>
			<id>https://forexsb.com/forum/post/77081/#p77081</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to get ExpressGenerator to run with Test.cmd file]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/77080/#p77080" />
			<content type="html"><![CDATA[<p>Sorry ... What do you mean by print? The collection json file contains the number of strategies based on the <br />--collection_capacity setting. Is there a file file associated with the results of the --show_top setting?</p>]]></content>
			<author>
				<name><![CDATA[dlouisbriggs]]></name>
				<uri>https://forexsb.com/forum/user/14675/</uri>
			</author>
			<updated>2023-10-13T11:31:37Z</updated>
			<id>https://forexsb.com/forum/post/77080/#p77080</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to get ExpressGenerator to run with Test.cmd file]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/77074/#p77074" />
			<content type="html"><![CDATA[<p>It is for visualization purposes. Setting of 30 prints you the 30 best strats, top 30 of the collected collection.</p>]]></content>
			<author>
				<name><![CDATA[footon]]></name>
				<uri>https://forexsb.com/forum/user/1242/</uri>
			</author>
			<updated>2023-10-13T09:33:19Z</updated>
			<id>https://forexsb.com/forum/post/77074/#p77074</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to get ExpressGenerator to run with Test.cmd file]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/77068/#p77068" />
			<content type="html"><![CDATA[<p>Thank you for your reply ... if the collection capacity controls the final quantity of strategies displayed then what is the show_top = 30 setting for?</p>]]></content>
			<author>
				<name><![CDATA[dlouisbriggs]]></name>
				<uri>https://forexsb.com/forum/user/14675/</uri>
			</author>
			<updated>2023-10-13T05:13:14Z</updated>
			<id>https://forexsb.com/forum/post/77068/#p77068</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to get ExpressGenerator to run with Test.cmd file]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/77064/#p77064" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>dlouisbriggs wrote:</cite><blockquote><p>Why is it when the below settings are in place that I still get 100 strategies in the collection.json file?</p><p>generate.ini collection_capacity = 100 and show_top = 30<br />generate.cmd show_top = 30</p></blockquote></div><p>Because your collection capacity is 100? If you want less strats collected then update the capacity setting with appropriate size.</p>]]></content>
			<author>
				<name><![CDATA[footon]]></name>
				<uri>https://forexsb.com/forum/user/1242/</uri>
			</author>
			<updated>2023-10-12T21:46:43Z</updated>
			<id>https://forexsb.com/forum/post/77064/#p77064</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to get ExpressGenerator to run with Test.cmd file]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/77063/#p77063" />
			<content type="html"><![CDATA[<p>Why is it when the below settings are in place that I still get 100 strategies in the collection.json file?</p><p>generate.ini collection_capacity = 100 and show_top = 30<br />generate.cmd show_top = 30</p>]]></content>
			<author>
				<name><![CDATA[dlouisbriggs]]></name>
				<uri>https://forexsb.com/forum/user/14675/</uri>
			</author>
			<updated>2023-10-12T21:21:54Z</updated>
			<id>https://forexsb.com/forum/post/77063/#p77063</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to get ExpressGenerator to run with Test.cmd file]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/77047/#p77047" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Popov wrote:</cite><blockquote><p>&gt; but how do you handle settings that are unique to a pair like swap long and swap short?</p><p>&gt; That&#039;s where you create new variables, %4, %5, %6, etc.</p><p>I solve this problem by having separate &quot;ini&quot; files for each symbol in a subfolder. </p><p>For example:<br />.\ini\EURUSD.ini</p><br /><div class="codebox"><pre><code>swap_long  = -6.88
swap_short = 2.02
stop_loss_range_min = 20
stop_loss_range_max = 220</code></pre></div><br /><p>Then, we can call gen.js with two &quot;ini&quot; files:</p><div class="codebox"><pre><code>node .\bin\gen.js --settings generate.ini .\ini\%symbol%.ini ...</code></pre></div></blockquote></div><br /><br /><p>Popov, is there any way to get the Data Export.mq5 script to automatically detect and include the swap long and short in the data exported, similar to how it works with spread?</p>]]></content>
			<author>
				<name><![CDATA[aaronpriest]]></name>
				<uri>https://forexsb.com/forum/user/12293/</uri>
			</author>
			<updated>2023-10-12T15:15:49Z</updated>
			<id>https://forexsb.com/forum/post/77047/#p77047</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to get ExpressGenerator to run with Test.cmd file]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/77031/#p77031" />
			<content type="html"><![CDATA[<p>You are correct. The Premium Data and the Data Export script use different filenames.</p><p>(I know I have to unify them, but I still do not know what is the best way)</p><p>Try to load the data file by specifying the &quot;server&quot; instead of the &quot;data-file&quot;.</p><div class="codebox"><pre><code>--server Pepperstone ^
--symbol %symbol%  ^
--period %period% ^</code></pre></div><p>Your Pepperstone symbols have an additional &quot;r&quot;. Therefore, you have to use such a symbol name when you call your script.</p><div class="codebox"><pre><code>START C:\express-generator\generate.cmd EURUSDr H1 60</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2023-10-12T04:35:53Z</updated>
			<id>https://forexsb.com/forum/post/77031/#p77031</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to get ExpressGenerator to run with Test.cmd file]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/77029/#p77029" />
			<content type="html"><![CDATA[<p>I corrected that spelling error and I still have the issue. Could it be that the format of the data file name is not recognized? For example, the generate.cmd line &quot; --data-file ./data/Premium/%symbol%_%period%.json ^&quot; finds AUDCAD_D1.json (Premium data) but can not find AUDCADr1440.json (Pepperstone data) in the format that the Data Export script extracts the data from MT4.</p>]]></content>
			<author>
				<name><![CDATA[dlouisbriggs]]></name>
				<uri>https://forexsb.com/forum/user/14675/</uri>
			</author>
			<updated>2023-10-12T04:09:54Z</updated>
			<id>https://forexsb.com/forum/post/77029/#p77029</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to get ExpressGenerator to run with Test.cmd file]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/77028/#p77028" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>dlouisbriggs wrote:</cite><blockquote><p>for aaronpriest ... I am trying to generate from data extracted from my Pepperstone server through the Data Export script. The first screenshot shows the generate.cmd setting, the second screenshot shows the file name format for Premium data, the third screenshot shows the file name format for Pepprstone data, and the fourth screenshot shows the error message at the command line.</p><p>The Premium data generation works fine but the Pepperstone does not. Can you see my error?</p><p>Thanks in advance</p><p>P.S. I attached the screenshots but I got the error &quot;file has never been downloaded&quot;</p></blockquote></div><p>Check the spelling in one of your screenshots, it might be a mispelling for a filename or folder: &quot;peepperstone&quot;</p>]]></content>
			<author>
				<name><![CDATA[aaronpriest]]></name>
				<uri>https://forexsb.com/forum/user/12293/</uri>
			</author>
			<updated>2023-10-11T17:47:16Z</updated>
			<id>https://forexsb.com/forum/post/77028/#p77028</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to get ExpressGenerator to run with Test.cmd file]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/77027/#p77027" />
			<content type="html"><![CDATA[<p>for aaronpriest ... I am trying to generate from data extracted from my Pepperstone server through the Data Export script. The first screenshot shows the generate.cmd setting, the second screenshot shows the file name format for Premium data, the third screenshot shows the file name format for Pepprstone data, and the fourth screenshot shows the error message at the command line.</p><p>The Premium data generation works fine but the Pepperstone does not. Can you see my error?</p><p>Thanks in advance</p><p>P.S. I attached the screenshots but I got the error &quot;file has never been downloaded&quot;</p>]]></content>
			<author>
				<name><![CDATA[dlouisbriggs]]></name>
				<uri>https://forexsb.com/forum/user/14675/</uri>
			</author>
			<updated>2023-10-11T17:45:11Z</updated>
			<id>https://forexsb.com/forum/post/77027/#p77027</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to get ExpressGenerator to run with Test.cmd file]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/77026/#p77026" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Popov wrote:</cite><blockquote><p>&gt; but how do you handle settings that are unique to a pair like swap long and swap short?</p><p>&gt; That&#039;s where you create new variables, %4, %5, %6, etc.</p><p>I solve this problem by having separate &quot;ini&quot; files for each symbol in a subfolder. </p><p>For example:<br />.\ini\EURUSD.ini</p><br /><div class="codebox"><pre><code>swap_long  = -6.88
swap_short = 2.02
stop_loss_range_min = 20
stop_loss_range_max = 220</code></pre></div><br /><p>Then, we can call gen.js with two &quot;ini&quot; files:</p><div class="codebox"><pre><code>node .\bin\gen.js --settings generate.ini .\ini\%symbol%.ini ...</code></pre></div></blockquote></div><p>I didn&#039;t know you could call two ini files like that I guess, even more slick!</p>]]></content>
			<author>
				<name><![CDATA[aaronpriest]]></name>
				<uri>https://forexsb.com/forum/user/12293/</uri>
			</author>
			<updated>2023-10-11T17:41:26Z</updated>
			<id>https://forexsb.com/forum/post/77026/#p77026</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to get ExpressGenerator to run with Test.cmd file]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/77025/#p77025" />
			<content type="html"><![CDATA[<p>&gt; but how do you handle settings that are unique to a pair like swap long and swap short?</p><p>&gt; That&#039;s where you create new variables, %4, %5, %6, etc.</p><p>I solve this problem by having separate &quot;ini&quot; files for each symbol in a subfolder. </p><p>For example:<br />.\ini\EURUSD.ini</p><br /><div class="codebox"><pre><code>swap_long  = -6.88
swap_short = 2.02
stop_loss_range_min = 20
stop_loss_range_max = 220</code></pre></div><br /><p>Then, we can call gen.js with two &quot;ini&quot; files:</p><div class="codebox"><pre><code>node .\bin\gen.js --settings generate.ini .\ini\%symbol%.ini ...</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2023-10-11T17:12:03Z</updated>
			<id>https://forexsb.com/forum/post/77025/#p77025</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to get ExpressGenerator to run with Test.cmd file]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/77024/#p77024" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>dlouisbriggs wrote:</cite><blockquote><p>for aaronpriest ... I understand that in your setup the generic settings are placed in generate.ini, and the universal settings like symbol, time frame, mins etc. are generated with variables in generate.cmd, but how do you handle settings that are unique to a pair like swap long and swap short?</p></blockquote></div><p>That&#039;s where you create new variables, %4, %5, %6, etc. and reference them in your start command line. Also, symbol, timeframe, and minutes ARE unique to each pair, that&#039;s why they are variables. If they were universal, then they would be generic and I&#039;d just put them in the generate.ini file.</p>]]></content>
			<author>
				<name><![CDATA[aaronpriest]]></name>
				<uri>https://forexsb.com/forum/user/12293/</uri>
			</author>
			<updated>2023-10-11T16:53:53Z</updated>
			<id>https://forexsb.com/forum/post/77024/#p77024</id>
		</entry>
</feed>
