<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forex Software — EA MACD Error Message]]></title>
	<link rel="self" href="https://forexsb.com/forum/feed/atom/topic/9443/" />
	<updated>2023-06-27T21:36:04Z</updated>
	<generator>PunBB</generator>
	<id>https://forexsb.com/forum/topic/9443/ea-macd-error-message/</id>
		<entry>
			<title type="html"><![CDATA[Re: EA MACD Error Message]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/75466/#p75466" />
			<content type="html"><![CDATA[<p>&gt;If you now set it to a fixed 2, do the calculations/backtests still match with EA Studio?</p><p>The actual value doesn&#039;t matter because it is not used in the calculations.</p><p>However, I also added this value in the strategy&#039;s &quot;first bar&quot;, but it is not in EA Studio.</p><p>It is fixed in Express Generator v2.37</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2023-06-27T21:36:04Z</updated>
			<id>https://forexsb.com/forum/post/75466/#p75466</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: EA MACD Error Message]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/75465/#p75465" />
			<content type="html"><![CDATA[<p>Thanks for the fix! If you now set it to a fixed 2, do the calculations/backtests still match with EA Studio? Thanks.</p>]]></content>
			<author>
				<name><![CDATA[geektrader]]></name>
				<uri>https://forexsb.com/forum/user/1841/</uri>
			</author>
			<updated>2023-06-27T20:34:37Z</updated>
			<id>https://forexsb.com/forum/post/75465/#p75465</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: EA MACD Error Message]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/75461/#p75461" />
			<content type="html"><![CDATA[<p>Thank you, Popov!</p>]]></content>
			<author>
				<name><![CDATA[aaronpriest]]></name>
				<uri>https://forexsb.com/forum/user/12293/</uri>
			</author>
			<updated>2023-06-27T12:02:39Z</updated>
			<id>https://forexsb.com/forum/post/75461/#p75461</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: EA MACD Error Message]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/75457/#p75457" />
			<content type="html"><![CDATA[<p>I found and fixed the issue in Express Generator v2.36.</p><p>It was in an unexpected place. Because I tried to optimize Express Generator maximally, I skipped the MACD signal line calculations because it was unnecessary. However, it exports the indicators MACD&#039;s SMA period equal to 0.<br />Now I fixed it to 2.</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2023-06-27T10:10:51Z</updated>
			<id>https://forexsb.com/forum/post/75457/#p75457</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: EA MACD Error Message]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/75429/#p75429" />
			<content type="html"><![CDATA[<p>I&#039;ll examine this issue today.</p><p>Thank you for the report!</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2023-06-26T04:28:45Z</updated>
			<id>https://forexsb.com/forum/post/75429/#p75429</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: EA MACD Error Message]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/75426/#p75426" />
			<content type="html"><![CDATA[<p>I changed the 0 to a 1 for the close of every MACD or MACD Signal for every affected strategy in the portfolio EAs and that fixed it. I suspect it won&#039;t change the performance of the strategy.</p>]]></content>
			<author>
				<name><![CDATA[aaronpriest]]></name>
				<uri>https://forexsb.com/forum/user/12293/</uri>
			</author>
			<updated>2023-06-26T03:02:36Z</updated>
			<id>https://forexsb.com/forum/post/75426/#p75426</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: EA MACD Error Message]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/75425/#p75425" />
			<content type="html"><![CDATA[<p>Mr. Popov should take a look at this for sure then.</p>]]></content>
			<author>
				<name><![CDATA[geektrader]]></name>
				<uri>https://forexsb.com/forum/user/1841/</uri>
			</author>
			<updated>2023-06-26T02:50:01Z</updated>
			<id>https://forexsb.com/forum/post/75425/#p75425</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: EA MACD Error Message]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/75424/#p75424" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>geektrader wrote:</cite><blockquote><p>This problem should result from an earlier bug where the min indicator period could become 0 or negative. Popov fixed it already and newly created EAs should not show this problem anymore.</p></blockquote></div><p>I just created new EAs tonight with the latest Express Generator and EAS, and I have this error on several symbols in MT5. It doesn&#039;t appear to be resolved yet, or the bug has returned.</p><p>I discovered the affected portfolio EAs have strategies where MACD SMA = 0. Could the new optimizer feature in Express Generator be causing this? I&#039;m using numeric_values_steps = 20 for the optimizer.</p>]]></content>
			<author>
				<name><![CDATA[aaronpriest]]></name>
				<uri>https://forexsb.com/forum/user/12293/</uri>
			</author>
			<updated>2023-06-26T02:05:42Z</updated>
			<id>https://forexsb.com/forum/post/75424/#p75424</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: EA MACD Error Message]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/74875/#p74875" />
			<content type="html"><![CDATA[<p>This problem should result from an earlier bug where the min indicator period could become 0 or negative. Popov fixed it already and newly created EAs should not show this problem anymore.</p>]]></content>
			<author>
				<name><![CDATA[geektrader]]></name>
				<uri>https://forexsb.com/forum/user/1841/</uri>
			</author>
			<updated>2023-05-18T23:13:46Z</updated>
			<id>https://forexsb.com/forum/post/74875/#p74875</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: EA MACD Error Message]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/74856/#p74856" />
			<content type="html"><![CDATA[<p>Added 15 and 9 to iMACD as shown:&nbsp; iMACD(NULL, 15, 30, 44, 9, PRICE_CLOSE);</p><p>Now EA loads onto MT5 chart with no errors shown in MT5 Experts tab at bottom of price chart.</p><p>So all you need to do is open the MT5 Editor and add the correct &#039;period&#039; and &#039;signal period&#039; by replacing the two zeros and press the Compile button and you should be able to use the EA&#039;s.</p><p>Evidently Express Generator is not adding the &#039;period&#039; and &#039;signal period&#039; to the source code of iMACD when saving strategy as an EA.</p>]]></content>
			<author>
				<name><![CDATA[Alann]]></name>
				<uri>https://forexsb.com/forum/user/14347/</uri>
			</author>
			<updated>2023-05-17T18:06:24Z</updated>
			<id>https://forexsb.com/forum/post/74856/#p74856</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: EA MACD Error Message]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/74834/#p74834" />
			<content type="html"><![CDATA[<p>@viniq<br />Thanks for your reply.</p><p>I&#039;m using Express Generator &amp; afterwards EA Studio to generate the Portfolio EAs. I do not touch any Code.<br />So it must be a problem of the generation process ?</p>]]></content>
			<author>
				<name><![CDATA[felix-brenkel]]></name>
				<uri>https://forexsb.com/forum/user/14530/</uri>
			</author>
			<updated>2023-05-16T13:51:13Z</updated>
			<id>https://forexsb.com/forum/post/74834/#p74834</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: EA MACD Error Message]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/74832/#p74832" />
			<content type="html"><![CDATA[<p>Hi <strong>@felix-brenkel</strong> you&#039;re welcome to the forums! I would like to point out that there appears to be an error in the code or configuration.</p><div class="codebox"><pre><code>   // MACD (Close, 34, 66, 0)
   indHandlers[2][1][0] = iMACD(NULL, 0, 34, 66, 0, PRICE_CLOSE);</code></pre></div><p>Fast EMA: 34<br />Slow EMA: 66<br /><strong>MACD SMA: 0</strong></p><div class="codebox"><pre><code>   // MACD (Close, 30, 44, 0)
   indHandlers[0][1][0] = iMACD(NULL, 0, 30, 44, 0, PRICE_CLOSE);</code></pre></div><p>Fast EMA: 30<br />Slow EMA: 44<br /><strong>MACD SMA: 0</strong></p><br /><p>It seems that when calling the MACD (Moving Average Convergence Divergence) indicator, the MACD SMA (Simple Moving Average) values are set to 0. However, it is important to note that the MACD SMA should be &gt;=2 for the indicator to function correctly.</p><p>I recently exported a portfolio expert using the MACD indicator on the MQL5 platform, and the export process went smoothly with all the values intact. However, I am puzzled as to why your source code has exported the MACD SMA values as 0. It would be beneficial for you, <strong>@Popov</strong>, to review the minimum period for MACD SMA used in the generator. It is possible that the expert advisor was generated with the parameter set to 0 for MACD SMA, leading to this discrepancy.</p>]]></content>
			<author>
				<name><![CDATA[ViniQ]]></name>
				<uri>https://forexsb.com/forum/user/9651/</uri>
			</author>
			<updated>2023-05-16T12:11:38Z</updated>
			<id>https://forexsb.com/forum/post/74832/#p74832</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: EA MACD Error Message]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/74824/#p74824" />
			<content type="html"><![CDATA[<p>See attached file.</p><p>I&#039;m getting this error on 2 different brokers.</p>]]></content>
			<author>
				<name><![CDATA[felix-brenkel]]></name>
				<uri>https://forexsb.com/forum/user/14530/</uri>
			</author>
			<updated>2023-05-16T06:00:37Z</updated>
			<id>https://forexsb.com/forum/post/74824/#p74824</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: EA MACD Error Message]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/74819/#p74819" />
			<content type="html"><![CDATA[<p>Both experts compile, test, and run on an MT chart without errors.</p><p>Please post screenshots of the issues you experience.</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2023-05-15T20:48:32Z</updated>
			<id>https://forexsb.com/forum/post/74819/#p74819</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: EA MACD Error Message]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/74790/#p74790" />
			<content type="html"><![CDATA[<p>I attached some of the EAs where I get the error.</p>]]></content>
			<author>
				<name><![CDATA[felix-brenkel]]></name>
				<uri>https://forexsb.com/forum/user/14530/</uri>
			</author>
			<updated>2023-05-12T05:47:34Z</updated>
			<id>https://forexsb.com/forum/post/74790/#p74790</id>
		</entry>
</feed>
