<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forex Software — Forumlar to get back from magicnumber the strategynumber]]></title>
	<link rel="self" href="https://forexsb.com/forum/feed/atom/topic/8593/" />
	<updated>2021-11-27T10:10:45Z</updated>
	<generator>PunBB</generator>
	<id>https://forexsb.com/forum/topic/8593/forumlar-to-get-back-from-magicnumber-the-strategynumber/</id>
		<entry>
			<title type="html"><![CDATA[Re: Forumlar to get back from magicnumber the strategynumber]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/67025/#p67025" />
			<content type="html"><![CDATA[<p>Ohh I probably misunderstood the questions.</p><p>If you ask how to convert a magic number to a strategy number, it is:</p><div class="codebox"><pre><code>    int strategyIndex = magicNumber - 1000 * Base_Magic_Number;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2021-11-27T10:10:45Z</updated>
			<id>https://forexsb.com/forum/post/67025/#p67025</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Forumlar to get back from magicnumber the strategynumber]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/67024/#p67024" />
			<content type="html"><![CDATA[<p>The strategy number is in the &quot;strategyIndex&quot; variable.<br />Please note that the first strategy has an index 0.</p><p>The easiest way to have Magic Number equal to the strategy number is to change the formula to:<br /></p><div class="codebox"><pre><code>int GetMagicNumber(int strategyIndex)
  {
   return strategyIndex + 1;
  }</code></pre></div><br /><p>It will make the first strategy with magic number 1, the second with magic number 2, and so on.</p><p>Be careful to not override the magic number of one portfolio with another when they run on the same symbol.</p><p>The Portfolio Expert distinguishes the positions by symbols, so you can have the same magic number in different charts.</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2021-11-27T10:05:10Z</updated>
			<id>https://forexsb.com/forum/post/67024/#p67024</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Forumlar to get back from magicnumber the strategynumber]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/67023/#p67023" />
			<content type="html"><![CDATA[<p>I think this will solve my problem as well.<br />Trying to figure out which strategy, portfolio is using, so need the strategy number...</p>]]></content>
			<author>
				<name><![CDATA[VasTrader]]></name>
				<uri>https://forexsb.com/forum/user/12341/</uri>
			</author>
			<updated>2021-11-27T08:11:06Z</updated>
			<id>https://forexsb.com/forum/post/67023/#p67023</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Forumlar to get back from magicnumber the strategynumber]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/62750/#p62750" />
			<content type="html"><![CDATA[<p>Hi,</p><p>Can someone help? Now Magic Numbers formula is</p><div class="codebox"><pre><code>int GetMagicNumber(int strategyIndex)
  {
   return 1000 * Base_Magic_Number + strategyIndex;
  }</code></pre></div><p>I need Formular to get it reverse. So that I only get the strategy number</p>]]></content>
			<author>
				<name><![CDATA[Roughey]]></name>
				<uri>https://forexsb.com/forum/user/10939/</uri>
			</author>
			<updated>2020-10-23T12:46:40Z</updated>
			<id>https://forexsb.com/forum/post/62750/#p62750</id>
		</entry>
</feed>
