<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forex Software — All trades in MT4 close after 1 bar if using multiple exit indicators]]></title>
	<link rel="self" href="https://forexsb.com/forum/feed/atom/topic/8720/" />
	<updated>2021-04-02T15:49:08Z</updated>
	<generator>PunBB</generator>
	<id>https://forexsb.com/forum/topic/8720/all-trades-in-mt4-close-after-1-bar-if-using-multiple-exit-indicators/</id>
		<entry>
			<title type="html"><![CDATA[Re: All trades in MT4 close after 1 bar if using multiple exit indicators]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/64536/#p64536" />
			<content type="html"><![CDATA[<p>The &quot;more than 2 exit slots&quot; feature was announced in July 2020. If you have used more than 2 exit indicators feature before&nbsp; &nbsp;March 10th, the experts or portfolios may have the bug.</p><p>Fortunately, there is an easy way to check the already exported experts.</p><p>Open your Portfolio in the MetaTrader Editor or in any other text editor and search for the &quot;<strong>true, true</strong>&quot; text. If the text is not found, everything is fine.</p><p><a href="https://image-holder.forexsb.com/store/metatrader-editor-search-true-true-not-found.png"><span class="postimg"><img src="https://image-holder.forexsb.com/store/metatrader-editor-search-true-true-not-found-thumb.png" alt="https://image-holder.forexsb.com/store/metatrader-editor-search-true-true-not-found-thumb.png" /></span></a></p><p>If the text <strong>true, true</strong> is found in a &#039;GetExitSignal_0##&#039; function and it contains indicators, you have to re-export your portfolio.</p><p>Here is an example. We see indicators, in the function, but it contains the &quot;<strong>true, true</strong>&quot; text.</p><p><a href="https://image-holder.forexsb.com/store/portfolio-startegy-with-three-exit-indicators-bug.png"><span class="postimg"><img src="https://image-holder.forexsb.com/store/portfolio-startegy-with-three-exit-indicators-bug-thumb.png" alt="https://image-holder.forexsb.com/store/portfolio-startegy-with-three-exit-indicators-bug-thumb.png" /></span></a></p><p>The correct function with three indicators must look like that:</p><p><a href="https://image-holder.forexsb.com/store/portfolio-startegy-with-three-exit-indicators.png"><span class="postimg"><img src="https://image-holder.forexsb.com/store/portfolio-startegy-with-three-exit-indicators-thumb.png" alt="https://image-holder.forexsb.com/store/portfolio-startegy-with-three-exit-indicators-thumb.png" /></span></a></p><br /><br /><p>The bug was reported on March 9th and fixed on March 10th. All portfolios and experts exported after that date should be correct.</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2021-04-02T15:49:08Z</updated>
			<id>https://forexsb.com/forum/post/64536/#p64536</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: All trades in MT4 close after 1 bar if using multiple exit indicators]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/64534/#p64534" />
			<content type="html"><![CDATA[<p>Popov,</p><p>Can you recall when you announced the more than 2 exit indicator?&nbsp; So that I have zoom in closer to those Portfolio Experts (PE) that were affected.&nbsp; And re-import those PE after the date of announcement to get them fixed.&nbsp; I&#039;m surprise about this issue, I noticed I still have open positions after 1 bar (and I&#039;m using 1min EA), that&#039;s odd not to noticed such bug if it really exist.</p><p>I don&#039;t seem to have such problem, strategies with more than 2 exit indicators didn&#039;t close after 1 bar (for my 1min ea).&nbsp; So I&#039;m not sure when this problem really started, ie. Portfolio Experts exported since when started to have such problem.&nbsp; The PE I observed started testing since Dec till now and I didn&#039;t noticed the EA closing after 1min bar.</p><p>Can I assume that any Portfolio Expert export after 9 March has no issue and hence I only need to focus on those strategies generated from, date of announcement (when can&nbsp; you recall?) till 8 Mar?</p>]]></content>
			<author>
				<name><![CDATA[hannahis]]></name>
				<uri>https://forexsb.com/forum/user/2809/</uri>
			</author>
			<updated>2021-04-02T12:20:41Z</updated>
			<id>https://forexsb.com/forum/post/64534/#p64534</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: All trades in MT4 close after 1 bar if using multiple exit indicators]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/64533/#p64533" />
			<content type="html"><![CDATA[<p>&quot;The fix is in the particular strategy from the portfolio, which has more than 2 indicators.</p><p>You can import and re-export your portfolio and run it with the same base magic number. If you do it on Saturday, it will be without side effects.</p><p>The bug originates from announcing the possibilities of more than 2 exit indicators.&quot;</p><br /><p>Q: if the bug started since the announcing the possibilities of more than 2 exit indicators, which is a couple of mths ago, how can it has no side effects, on those past few weeks/mths demo testing?</p><p>&quot;It is also possible to have older MQL re-uploaded at a later stage.&quot;</p><p>What do you mean by older MQL re-uploaded? You are referring to re-upload the Portfolio Expert? </p><p>How to re-upload older Portfolio Experts other than using the Validator?</p><p>If I re-upload the collection and re-export it out, will that also fix the issue?</p>]]></content>
			<author>
				<name><![CDATA[hannahis]]></name>
				<uri>https://forexsb.com/forum/user/2809/</uri>
			</author>
			<updated>2021-04-02T12:14:38Z</updated>
			<id>https://forexsb.com/forum/post/64533/#p64533</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: All trades in MT4 close after 1 bar if using multiple exit indicators]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/64532/#p64532" />
			<content type="html"><![CDATA[<p>The fix is in the particular strategy from the portfolio, which has more than 2 indicators.</p><p>You can import and re-export your portfolio and run it with the same base magic number. If you do it on Saturday, it will be without side effects.</p><p>The bug originates from announcing the possibilities of more than 2 exit indicators. I have missed properly update the MQL for such cases (or missed uploading the update). I cannot believe it was not tested. It is also possible to have older MQL re-uploaded at a later stage.</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2021-04-02T11:01:45Z</updated>
			<id>https://forexsb.com/forum/post/64532/#p64532</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: All trades in MT4 close after 1 bar if using multiple exit indicators]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/64531/#p64531" />
			<content type="html"><![CDATA[<p>can you send the code how to fix it or mark the changes in code</p><p>i have compare a portfolio from 2019 and from now.. there is no different in code also this require bars. so maybe thats not in the hole code maybe in the indicators code.</p>]]></content>
			<author>
				<name><![CDATA[Roughey]]></name>
				<uri>https://forexsb.com/forum/user/10939/</uri>
			</author>
			<updated>2021-04-02T10:27:29Z</updated>
			<id>https://forexsb.com/forum/post/64531/#p64531</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: All trades in MT4 close after 1 bar if using multiple exit indicators]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/64529/#p64529" />
			<content type="html"><![CDATA[<p>Since when this problem arise? From the very beginning when EA Studio has more than 2 exit option or just recently due to the new update? </p><p>I want to verify when the issue arise so that I may know which old Portfolio Experts I need to check and have them fixed.&nbsp; </p><p>How to fix those old Portfolio Experts that have these issues? Re-import them back?</p><p>Does it mean all my past exported Portfolio Experts needs to be re-imported back to correct the fix?</p>]]></content>
			<author>
				<name><![CDATA[hannahis]]></name>
				<uri>https://forexsb.com/forum/user/2809/</uri>
			</author>
			<updated>2021-04-02T09:16:36Z</updated>
			<id>https://forexsb.com/forum/post/64529/#p64529</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: All trades in MT4 close after 1 bar if using multiple exit indicators]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/64240/#p64240" />
			<content type="html"><![CDATA[<p>Superb, Mr. Popov! I also had it happening if using 2 exit indicators, not just 3, but I guess your fix will still fix it. I will check tomorrow morning. Also excited to hear that new features are coming. You´ve really made this an outstanding piece of software.</p>]]></content>
			<author>
				<name><![CDATA[geektrader]]></name>
				<uri>https://forexsb.com/forum/user/1841/</uri>
			</author>
			<updated>2021-03-09T15:57:06Z</updated>
			<id>https://forexsb.com/forum/post/64240/#p64240</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: All trades in MT4 close after 1 bar if using multiple exit indicators]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/64237/#p64237" />
			<content type="html"><![CDATA[<p>The bug is fixed.</p><p>We will upload a new version of EA Studio with the fix and with some new features tomorrow morning.</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2021-03-09T12:14:31Z</updated>
			<id>https://forexsb.com/forum/post/64237/#p64237</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: All trades in MT4 close after 1 bar if using multiple exit indicators]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/64236/#p64236" />
			<content type="html"><![CDATA[<p>Thank you for reporting this issue. It appears when we use more than 2 exit indicators.</p><p>We will upload a fix as soon as possible.</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2021-03-09T11:57:36Z</updated>
			<id>https://forexsb.com/forum/post/64236/#p64236</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[All trades in MT4 close after 1 bar if using multiple exit indicators]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/64228/#p64228" />
			<content type="html"><![CDATA[<p>Hey,</p><p>I am wondering that no one has noticed this very serious bug in EA Studio´s exported MQ4 code. If a strategy uses more than 1 exit indicator, every(!) trade will close after just 1 bar in the MT4 backtest and hence in live trading with MT4 too. I´ve tried this on several pairs, several timeframes, it´s always the same: if using 1 exit indicator only, the backtests between EA Studio and MT4 match just perfectly, but if using more than 1 exit indicator, each trade in the MT4 backtest will close after just 1 bar, everytime. It´s also independent from the type of exit indicator. As long as it´s just 1, the backtests always match. The number of entry indicators is unaffected from this, I´ve tried up to 6 with no issues. This is exclusively related to the amount of exit indicators. I´ve attached a screenshot and a strategy where this happens to demonstrate the issue in the ZIP file. I hope this heavy bug can be fixed quickly.</p><p>Thank you.</p>]]></content>
			<author>
				<name><![CDATA[geektrader]]></name>
				<uri>https://forexsb.com/forum/user/1841/</uri>
			</author>
			<updated>2021-03-09T07:12:47Z</updated>
			<id>https://forexsb.com/forum/post/64228/#p64228</id>
		</entry>
</feed>
