<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forex Software — Updated EA in MT4 traded still like the previous version?]]></title>
	<link rel="self" href="https://forexsb.com/forum/feed/atom/topic/7563/" />
	<updated>2018-11-01T19:57:44Z</updated>
	<generator>PunBB</generator>
	<id>https://forexsb.com/forum/topic/7563/updated-ea-in-mt4-traded-still-like-the-previous-version/</id>
		<entry>
			<title type="html"><![CDATA[Re: Updated EA in MT4 traded still like the previous version?]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/52791/#p52791" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>Somehow the EA used the old settings, nevertheless the EA showed in the inputs tab the correct ones.</p></blockquote></div><p>This is a serious issue of MT. Please report it to MetaQuotes. </p><p>The EAs produced by FSB Pro and EA Studio are 100% native MQL files, which compiles without errors and warning. Please check the EAs output in the MT&#039;s Expert output for any suspicious messages.</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2018-11-01T19:57:44Z</updated>
			<id>https://forexsb.com/forum/post/52791/#p52791</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Updated EA in MT4 traded still like the previous version?]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/52788/#p52788" />
			<content type="html"><![CDATA[<p>And of course I gave the updated EA a different name than the previous version.</p>]]></content>
			<author>
				<name><![CDATA[Lagoons]]></name>
				<uri>https://forexsb.com/forum/user/10614/</uri>
			</author>
			<updated>2018-11-01T16:41:11Z</updated>
			<id>https://forexsb.com/forum/post/52788/#p52788</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Updated EA in MT4 traded still like the previous version?]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/52773/#p52773" />
			<content type="html"><![CDATA[<p>Hello,</p><p>I&#039;ve probably was not clear enough what I did.</p><p>I&#039;ve built a strategy with FSB and attached it on a chart in MT4, after a while I omptimized the strategy with FSB, exported the EA and replaced the old version with it (just different settings) in MT4.<br />Additionally I changed the magic number to the previous one.</p><p>Somehow the EA used the old settings, nevertheless the EA showed in the inputs tab the correct ones.</p><p>And I cannot explain how this could have happened.</p>]]></content>
			<author>
				<name><![CDATA[Lagoons]]></name>
				<uri>https://forexsb.com/forum/user/10614/</uri>
			</author>
			<updated>2018-11-01T09:53:16Z</updated>
			<id>https://forexsb.com/forum/post/52773/#p52773</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Updated EA in MT4 traded still like the previous version?]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/52772/#p52772" />
			<content type="html"><![CDATA[<p>I&#039;m not clear about what you are trying to do...</p><p>If you&#039;ve modified / improved an EA then you should NOT change its magic number -- otherwise, it simply becomes a different EA.</p><p>When you modify an EA you must recompile the *.mq4 to a *.ex4.&nbsp; Sometimes, there may be a compile error that you didn&#039;t notice -- in which case the old *.ex4 will still be present and will be the one that is used.</p><p>MT4 keeps the previous version of the EA in memory and will keep using it -- unless you force it to let go and look for a new version.&nbsp; There are two ways of doing this:<br />a. Exit and relaunch MT4<br />b. In the Navigator window right-click &quot;Expert Advisors&quot; and select &quot;Refresh&quot;.&nbsp; This will force MT4 to unload any EA it currently holds in memory.&nbsp; </p><p>After performing (a) or (b), when you attach your EA to a chart then it should be the new one.</p><p>What I sometimes do is add an additional &quot;Print&quot; statement in the OnInit() function as a sanity check and change the version number string -- e.g. <br />Print(&quot;EA 150063001 -- version 1.0.1&quot;);</p>]]></content>
			<author>
				<name><![CDATA[sleytus]]></name>
				<uri>https://forexsb.com/forum/user/9721/</uri>
			</author>
			<updated>2018-11-01T09:39:18Z</updated>
			<id>https://forexsb.com/forum/post/52772/#p52772</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Updated EA in MT4 traded still like the previous version?]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/52771/#p52771" />
			<content type="html"><![CDATA[<p>Of course, I&#039;ll try this.</p><p>But just to make clear, I&#039;ve talked about live trading not backtesting.</p><p>So if I&#039;ve resetted the input is it safe to change the EA&#039;s magic number to the previous one?</p><p>And if I want to make sure that an EA won&#039;t open more trades but still manage the old ones, could I just change e. g. Amount for new position to 0.0?</p><p>Best regards</p>]]></content>
			<author>
				<name><![CDATA[Lagoons]]></name>
				<uri>https://forexsb.com/forum/user/10614/</uri>
			</author>
			<updated>2018-10-31T23:29:27Z</updated>
			<id>https://forexsb.com/forum/post/52771/#p52771</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Updated EA in MT4 traded still like the previous version?]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/52770/#p52770" />
			<content type="html"><![CDATA[<p>Yes Lagoons you have too, this is &quot;in my opinion&quot; a MT4 and MT5 caveat<br />When the software see a previous tested magic number it will keep the last backtest settings</p><p>But maybe this is not the solution for your problem, do you mind to try it please?</p><br /><p>Best regards</p>]]></content>
			<author>
				<name><![CDATA[ViniQ]]></name>
				<uri>https://forexsb.com/forum/user/9651/</uri>
			</author>
			<updated>2018-10-31T22:39:22Z</updated>
			<id>https://forexsb.com/forum/post/52770/#p52770</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Updated EA in MT4 traded still like the previous version?]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/52769/#p52769" />
			<content type="html"><![CDATA[<p>Did I have to?</p><p>No, I just replaced the MQ4 file and it had the new settings on board or did I get this wrong?</p><p>Best regards</p>]]></content>
			<author>
				<name><![CDATA[Lagoons]]></name>
				<uri>https://forexsb.com/forum/user/10614/</uri>
			</author>
			<updated>2018-10-31T21:52:15Z</updated>
			<id>https://forexsb.com/forum/post/52769/#p52769</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Updated EA in MT4 traded still like the previous version?]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/52768/#p52768" />
			<content type="html"><![CDATA[<p>Did you reset the expert parameters?<br /><span class="postimg"><img src="https://i.imgur.com/mRsTRqW.png" alt="https://i.imgur.com/mRsTRqW.png" /></span></p>]]></content>
			<author>
				<name><![CDATA[ViniQ]]></name>
				<uri>https://forexsb.com/forum/user/9651/</uri>
			</author>
			<updated>2018-10-31T21:38:57Z</updated>
			<id>https://forexsb.com/forum/post/52768/#p52768</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Updated EA in MT4 traded still like the previous version?]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/52767/#p52767" />
			<content type="html"><![CDATA[<p>Hello,</p><p>I expericenced a weird issue I&#039;ve optimized an EA last month and and replaced the older version on MT4.</p><p>It performed mediocre to say at least. So now I&#039;ve analysed the performance and to my suprise the result was that the trades were not the result from the updated EA but from the older version!?</p><p>But the weird thing is, at that time I already attached the updated EA onto the chart, I could easily check it in my MT4 logs.<br />And the trades were current trades no older ones.</p><p>How can this happen? The only thing I did was to make sure that the updated EA had still the same magic number like the older one, to manage older trades.</p><p>Does anyone know what may have happend and how I can prevent this, cause I have no clue?</p>]]></content>
			<author>
				<name><![CDATA[Lagoons]]></name>
				<uri>https://forexsb.com/forum/user/10614/</uri>
			</author>
			<updated>2018-10-31T21:30:22Z</updated>
			<id>https://forexsb.com/forum/post/52767/#p52767</id>
		</entry>
</feed>
