<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Forex Software — Custom order comment]]></title>
		<link>https://forexsb.com/forum/topic/6584/custom-order-comment/</link>
		<atom:link href="https://forexsb.com/forum/feed/rss/topic/6584/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Custom order comment.]]></description>
		<lastBuildDate>Thu, 06 Apr 2017 17:44:38 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Custom order comment]]></title>
			<link>https://forexsb.com/forum/post/42723/#p42723</link>
			<description><![CDATA[<p>I have tried both variations and they work fine.<br />And if I do not change anything now in the updated version the Magic Number is shown.<br />Thank you very much.<br /><span class="postimg"><img src="http://up.picr.de/28820377uf.jpg" alt="http://up.picr.de/28820377uf.jpg" /></span></p>]]></description>
			<author><![CDATA[null@example.com (bru1)]]></author>
			<pubDate>Thu, 06 Apr 2017 17:44:38 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/42723/#p42723</guid>
		</item>
		<item>
			<title><![CDATA[Re: Custom order comment]]></title>
			<link>https://forexsb.com/forum/post/42714/#p42714</link>
			<description><![CDATA[<p>You have to expert your EA again because I updated the code just before writing my previous posts.<br />Then you have to apply the shown changes.</p>]]></description>
			<author><![CDATA[null@example.com (Popov)]]></author>
			<pubDate>Thu, 06 Apr 2017 10:04:24 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/42714/#p42714</guid>
		</item>
		<item>
			<title><![CDATA[Re: Custom order comment]]></title>
			<link>https://forexsb.com/forum/post/42711/#p42711</link>
			<description><![CDATA[<p>Hello,<br />1. I managed to create the field in the expert input tab, tha is o.k.<br />But it still does not show in the comment (Kommentar)-field when running in MT4.<br />(Only as long as I put the cursor over the empty field, it shows the order number and the EA-ID)<br /><span class="postimg"><img src="http://up.picr.de/28816229ky.jpg" alt="http://up.picr.de/28816229ky.jpg" /></span><br />2. I do not know how to modify (Variant 1 or 2) the &quot;OpenPosition&quot; because in my EA-Studio created EA it looks completely different to the example in your suggestion.<br /><span class="postimg"><img src="http://up.picr.de/28816230ng.jpg" alt="http://up.picr.de/28816230ng.jpg" /></span><br />3. In the EA&#039;s created with FSB I found only one &quot;Order_Comment&quot; line, but there it works and is shown in the Kommentar-line.<br /><span class="postimg"><img src="http://up.picr.de/28816232ae.jpg" alt="http://up.picr.de/28816232ae.jpg" /></span><br />Do you have an idea what I am miss, maybe it is not as easy as I thought</p>]]></description>
			<author><![CDATA[null@example.com (bru1)]]></author>
			<pubDate>Thu, 06 Apr 2017 09:14:32 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/42711/#p42711</guid>
		</item>
		<item>
			<title><![CDATA[Re: Custom order comment]]></title>
			<link>https://forexsb.com/forum/post/42686/#p42686</link>
			<description><![CDATA[<p>Thank you very much, I will try and report</p>]]></description>
			<author><![CDATA[null@example.com (bru1)]]></author>
			<pubDate>Wed, 05 Apr 2017 10:33:18 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/42686/#p42686</guid>
		</item>
		<item>
			<title><![CDATA[Re: Custom order comment]]></title>
			<link>https://forexsb.com/forum/post/42678/#p42678</link>
			<description><![CDATA[<p>Add the following line at the beginning of the expert. This will allow you to enter a comment on the expert&#039;s Input tab.</p><div class="codebox"><pre><code>static input string Order_Comment = &quot;&quot;; // Custom order comment</code></pre></div><p><span class="postimg"><img src="http://s10.postimg.org/ktp22ch8p/screenshot_193.png" alt="http://s10.postimg.org/ktp22ch8p/screenshot_193.png" /></span></p><p>Set the EA to attach the comment to a position. You have to modify the <strong>OpenPosition</strong> function. There are two ways:</p><p>Variant 1.&nbsp; replace the default comment (the EA&#039;s magic number)<br /></p><div class="codebox"><pre><code>// Replace

 string comment    = IntegerToString(Magic_Number);

// with

      string comment    = Order_Comment;</code></pre></div><p><span class="postimg"><img src="http://s10.postimg.org/oh9em5etl/screenshot_194.png" alt="http://s10.postimg.org/oh9em5etl/screenshot_194.png" /></span></p><br /><p>Variant 2. Add your custom comment to the EA&#039;s magic number:</p><div class="codebox"><pre><code>string comment    = IntegerToString(Magic_Number) + &#039; &#039; + Order_Comment;</code></pre></div><p><span class="postimg"><img src="http://s10.postimg.org/z5d5kzosp/screenshot_195.png" alt="http://s10.postimg.org/z5d5kzosp/screenshot_195.png" /></span></p>]]></description>
			<author><![CDATA[null@example.com (Popov)]]></author>
			<pubDate>Wed, 05 Apr 2017 07:15:12 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/42678/#p42678</guid>
		</item>
		<item>
			<title><![CDATA[Re: Custom order comment]]></title>
			<link>https://forexsb.com/forum/post/42672/#p42672</link>
			<description><![CDATA[<p>I think you can, try it out. If something comes up, report back and lets work through it.</p>]]></description>
			<author><![CDATA[null@example.com (footon)]]></author>
			<pubDate>Tue, 04 Apr 2017 22:03:33 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/42672/#p42672</guid>
		</item>
		<item>
			<title><![CDATA[Custom order comment]]></title>
			<link>https://forexsb.com/forum/post/42671/#p42671</link>
			<description><![CDATA[<p>Hello,<br />I am wondering if maybe I can add in an EA-Studio expert a &quot;Custom order comment&quot; (as suggested in the wish list) myself, using following line (from FSB experts):<br /></p><div class="codebox"><pre><code>static input string Order_Comment = &quot;&quot;; // Custom order comment</code></pre></div><p>Or do I need more,<br />Thank you for any advise.</p>]]></description>
			<author><![CDATA[null@example.com (bru1)]]></author>
			<pubDate>Tue, 04 Apr 2017 20:39:37 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/42671/#p42671</guid>
		</item>
	</channel>
</rss>
