<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Forex Software — Questions about magicnumber]]></title>
		<link>https://forexsb.com/forum/topic/7362/questions-about-magicnumber/</link>
		<atom:link href="https://forexsb.com/forum/feed/rss/topic/7362/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Questions about magicnumber.]]></description>
		<lastBuildDate>Sun, 03 Jun 2018 12:41:19 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Questions about magicnumber]]></title>
			<link>https://forexsb.com/forum/post/50718/#p50718</link>
			<description><![CDATA[<p>Thank you very much, popov</p>]]></description>
			<author><![CDATA[null@example.com (moonsky)]]></author>
			<pubDate>Sun, 03 Jun 2018 12:41:19 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/50718/#p50718</guid>
		</item>
		<item>
			<title><![CDATA[Re: Questions about magicnumber]]></title>
			<link>https://forexsb.com/forum/post/50717/#p50717</link>
			<description><![CDATA[<div class="quotebox"><blockquote><p>1. Does the magic number relate to strategy&#039;s ID I sort in the collection before exporting to Portfolio ea?</p></blockquote></div><p>There is no connection.</p><p>When you export a single expert, the Magic Number is the current time stamp.<br />When you export a Portfolio Expert, the Magic Number is the 1000 * Base Magic Number of the portfolio + the strategy index.</p><div class="quotebox"><blockquote><p>How to code it? For keeping the rest of strategies don&#039;t change its magic number from an original.</p></blockquote></div><p>Comment out or delete the strategy Entry and/or Exit signal function call. For an example see the second strategy (with index 001 because the indexes start from 0).</p><div class="codebox"><pre><code>void SetSignals(Signal &amp;signalList[])
  {
   int i=0;
   ArrayResize(signalList,2*strategiesCount);
   HideTestIndicators(true);

   /*STRATEGY CODE {&quot;properties&quot;:{&quot;entryLots&quot;:0.1,&quot;stopLoss&quot;:0,&quot;takeProfit&quot;:36,... */
   signalList[i++] = GetExitSignal_00();
   signalList[i++] = GetEntrySignal_00();

   /*STRATEGY CODE {&quot;properties&quot;:{&quot;entryLots&quot;:0.1,&quot;stopLoss&quot;:0,&quot;takeProfit&quot;:74,&quot;useStopLoss&quot;:false, ...*/
   // signalList[i++] = GetExitSignal_01();
   // signalList[i++] = GetEntrySignal_01();

   /*STRATEGY CODE {&quot;properties&quot;:{&quot;entryLots&quot;:0.1,&quot;stopLoss&quot;:0,&quot;takeProfit&quot;:29,&quot;useStopLoss&quot;:false,...*/
   signalList[i++] = GetExitSignal_02();
   signalList[i++] = GetEntrySignal_02();</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Popov)]]></author>
			<pubDate>Sun, 03 Jun 2018 04:05:24 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/50717/#p50717</guid>
		</item>
		<item>
			<title><![CDATA[Questions about magicnumber]]></title>
			<link>https://forexsb.com/forum/post/50714/#p50714</link>
			<description><![CDATA[<p>Hi experts,<br />I have some question about Ea Studio.</p><p>1. Does the magic number relate to strategy&#039;s ID I sort in the collection before exporting to Portfolio ea?</p><p>2. If the first question is true, If I remove some strategy and stay keeping the others.<br />How to code it? For keeping the rest of strategies don&#039;t change its magic number from an original.<br />(For example, I will remove the 2nd magic number.<br />First,3rd,4th number is the same strategies and keep working, But 2nd will not trade)</p><p>Sorry for my bad English,Hope you understand it.<br />Best regards</p>]]></description>
			<author><![CDATA[null@example.com (moonsky)]]></author>
			<pubDate>Sat, 02 Jun 2018 08:28:09 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/50714/#p50714</guid>
		</item>
	</channel>
</rss>
