<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forex Software — Lining up Strategy ID with MQL file / Magic Number]]></title>
	<link rel="self" href="https://forexsb.com/forum/feed/atom/topic/9500/" />
	<updated>2023-07-06T05:29:50Z</updated>
	<generator>PunBB</generator>
	<id>https://forexsb.com/forum/topic/9500/lining-up-strategy-id-with-mql-file-magic-number/</id>
		<entry>
			<title type="html"><![CDATA[Re: Lining up Strategy ID with MQL file / Magic Number]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/75611/#p75611" />
			<content type="html"><![CDATA[<p>I&#039;m testing a new parameter in Express Generator - &quot;start-trade&quot;.<br />It allows us to set the program to trade from a specified date or a number of days.<br />For example, we can filter the strategies by their performance for the last two weeks by setting &quot;--start-trade -7&quot;.</p><p>This helps a lot. <br />I&#039;ll also add a similar option in EA Studio. However, I have to figure out small details first.</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2023-07-06T05:29:50Z</updated>
			<id>https://forexsb.com/forum/post/75611/#p75611</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Lining up Strategy ID with MQL file / Magic Number]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/75590/#p75590" />
			<content type="html"><![CDATA[<p>Nevermind, I think I found a solution.&nbsp; I can import the strategies back one-by-one and recreate my Portfolio from there.</p>]]></content>
			<author>
				<name><![CDATA[JRod78]]></name>
				<uri>https://forexsb.com/forum/user/12722/</uri>
			</author>
			<updated>2023-07-05T10:11:41Z</updated>
			<id>https://forexsb.com/forum/post/75590/#p75590</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Lining up Strategy ID with MQL file / Magic Number]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/75589/#p75589" />
			<content type="html"><![CDATA[<p>Thanks, however how I&#039;m not sure that this helps me.&nbsp; If I backtest a Portfolio EA, I don&#039;t know which of the EAs are performing well and which are not performing as expected.&nbsp; So I have been individually testing each EA, and only keeping the ones that backtest well.&nbsp; However I&#039;m not sure how I can then go back into Expert Advisor Studio and easily identify which strategies I need to delete in order to finalise and export my Portfolio EA.</p>]]></content>
			<author>
				<name><![CDATA[JRod78]]></name>
				<uri>https://forexsb.com/forum/user/12722/</uri>
			</author>
			<updated>2023-07-05T10:04:52Z</updated>
			<id>https://forexsb.com/forum/post/75589/#p75589</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Lining up Strategy ID with MQL file / Magic Number]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/75581/#p75581" />
			<content type="html"><![CDATA[<p>1. You can load your Portfolio Expert in EA Studio and recalculate it with the newer data.<br />Then remove the strategies you don&#039;t like and export the Portfolio again.</p><p>2. You can remove the strategies from the code.<br />The strategies are set in the &quot;SetSignals&quot; function and look like that:</p><div class="codebox"><pre><code>   /*STRATEGY CODE {&quot;properties&quot;:{&quot;entryLots&quot;:0.1,&quot;tradeDirectionMode&quot;:0,&quot;oppositeEntrySignal&quot;:0, ... */
   signalList[i++] = GetExitSignal_039();
   signalList[i++] = GetEntrySignal_039();

   /*STRATEGY CODE {&quot;properties&quot;:{&quot;entryLots&quot;:0.1,&quot;tradeDirectionMode&quot;:0,&quot;oppositeEntrySignal&quot;:0, ... */
   signalList[i++] = GetExitSignal_040();
   signalList[i++] = GetEntrySignal_040();

   /*STRATEGY CODE {&quot;properties&quot;:{&quot;entryLots&quot;:0.1,&quot;tradeDirectionMode&quot;:0,&quot;oppositeEntrySignal&quot;:0, .. */
   signalList[i++] = GetExitSignal_041();
   signalList[i++] = GetEntrySignal_041();</code></pre></div><p><strong>Important: </strong> The index in the code is equal to the magic number index - 1.<br />If you want to delete the strategy with a magic number 100000040, delete the /*STRATEGY CODE line and the functions with index 39:</p><div class="codebox"><pre><code>   /*STRATEGY CODE {&quot;properties&quot;:{&quot;entryLots&quot;:0.1,&quot;tradeDirectionMode&quot;:0,&quot;oppositeEntrySignal&quot;:0, ... */
   signalList[i++] = GetExitSignal_039();
   signalList[i++] = GetEntrySignal_039();</code></pre></div><p>EA Studio imports a strategy by its &quot;/* STRATEGY CODE&quot;. If you delete this line from the MQL file, the strategy will not be imported.</p><p>I&#039;m thinking of a simple editor that will do it easier.</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2023-07-05T01:41:27Z</updated>
			<id>https://forexsb.com/forum/post/75581/#p75581</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Lining up Strategy ID with MQL file / Magic Number]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/75580/#p75580" />
			<content type="html"><![CDATA[<p>Hello</p><p>I like to confirm my strategies with a backtest in MT4 and want to then remove any that don&#039;t perform from my Portfolio EA.&nbsp; If I find a strategy in MT4 based on a magic number that I want to remove, how do I easily identify that strategy in the json file within EA Studio?</p>]]></content>
			<author>
				<name><![CDATA[JRod78]]></name>
				<uri>https://forexsb.com/forum/user/12722/</uri>
			</author>
			<updated>2023-07-05T01:23:18Z</updated>
			<id>https://forexsb.com/forum/post/75580/#p75580</id>
		</entry>
</feed>
