<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forex Software — Questions about magicnumber]]></title>
	<link rel="self" href="https://forexsb.com/forum/feed/atom/topic/7362/" />
	<updated>2018-06-03T12:41:19Z</updated>
	<generator>PunBB</generator>
	<id>https://forexsb.com/forum/topic/7362/questions-about-magicnumber/</id>
		<entry>
			<title type="html"><![CDATA[Re: Questions about magicnumber]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/50718/#p50718" />
			<content type="html"><![CDATA[<p>Thank you very much, popov</p>]]></content>
			<author>
				<name><![CDATA[moonsky]]></name>
				<uri>https://forexsb.com/forum/user/10506/</uri>
			</author>
			<updated>2018-06-03T12:41:19Z</updated>
			<id>https://forexsb.com/forum/post/50718/#p50718</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Questions about magicnumber]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/50717/#p50717" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2018-06-03T04:05:24Z</updated>
			<id>https://forexsb.com/forum/post/50717/#p50717</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Questions about magicnumber]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/50714/#p50714" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[moonsky]]></name>
				<uri>https://forexsb.com/forum/user/10506/</uri>
			</author>
			<updated>2018-06-02T08:28:09Z</updated>
			<id>https://forexsb.com/forum/post/50714/#p50714</id>
		</entry>
</feed>
