<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Forex Software — Array out of range error in exported MQ4 EA]]></title>
		<link>https://forexsb.com/forum/topic/5235/array-out-of-range-error-in-exported-mq4-ea/</link>
		<atom:link href="https://forexsb.com/forum/feed/rss/topic/5235/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Array out of range error in exported MQ4 EA.]]></description>
		<lastBuildDate>Fri, 13 Mar 2015 09:55:05 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Array out of range error in exported MQ4 EA]]></title>
			<link>https://forexsb.com/forum/post/28336/#p28336</link>
			<description><![CDATA[<p>Great, thank you!</p><p>I&#039;ve re-loaded Indicators&#039; index, then HMA itself, and then re-generated MQL4 EA - and now it works (or at least - was placed on the chart) OK.</p>]]></description>
			<author><![CDATA[null@example.com (vlad123)]]></author>
			<pubDate>Fri, 13 Mar 2015 09:55:05 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/28336/#p28336</guid>
		</item>
		<item>
			<title><![CDATA[Re: Array out of range error in exported MQ4 EA]]></title>
			<link>https://forexsb.com/forum/post/28334/#p28334</link>
			<description><![CDATA[<p>I found the problem with the repo.</p><p>When MQL code is updated in the repo, it has different file ID. However, FSB Pro updates the indicator indexes every 24 hours. If your index was updated recently and someone update the mql code of an indicator, the program will try to download the old file ID and actually will download an error html page <img src="https://forexsb.com/forum/img/smilies/sad.png" width="15" height="15" alt="sad" /> . <br />It can be fixed by reloading the indicator&#039;s index.</p><p><a href="http://postimg.org/image/qsd9vwyhl/"><span class="postimg"><img src="http://s28.postimg.org/qsd9vwyhl/screenshot_838.jpg" alt="http://s28.postimg.org/qsd9vwyhl/screenshot_838.jpg" /></span></a></p>]]></description>
			<author><![CDATA[null@example.com (Popov)]]></author>
			<pubDate>Fri, 13 Mar 2015 09:07:10 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/28334/#p28334</guid>
		</item>
		<item>
			<title><![CDATA[Re: Array out of range error in exported MQ4 EA]]></title>
			<link>https://forexsb.com/forum/post/28332/#p28332</link>
			<description><![CDATA[<p>There was a problem in the MQL code of HMA indicator - Component[1] was not initialized.<br />You can download the fixed version from the repository: <a href="http://forexsb.com/repository/repository_indicators/forex_indicator_review/140/hma-hull-moving-average">HMA: Hull Moving Average</a></p><p>Place it in <strong>C:\Program Files\Forex Strategy Builder Pro\User Files\MT4 Files\MQL\Forexsb.com\Custom</strong> folder and export your expert again.</p><p>...</p><p>There is some problem when the indicator is download from the program&#039;s Indicator Repository page. I&#039;ll try to fix it soon. Use the web Repository for now.</p><p>Thank you for the report.</p>]]></description>
			<author><![CDATA[null@example.com (Popov)]]></author>
			<pubDate>Fri, 13 Mar 2015 08:58:23 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/28332/#p28332</guid>
		</item>
		<item>
			<title><![CDATA[Re: Array out of range error in exported MQ4 EA]]></title>
			<link>https://forexsb.com/forum/post/28330/#p28330</link>
			<description><![CDATA[<p>Sure.<br />I&#039;ve just prepared a simple strategy with HMA and generated MQ4.<br />FSB strategy, generated MQ4 and HMA.cs are in attached archive.</p>]]></description>
			<author><![CDATA[null@example.com (vlad123)]]></author>
			<pubDate>Fri, 13 Mar 2015 07:29:09 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/28330/#p28330</guid>
		</item>
		<item>
			<title><![CDATA[Re: Array out of range error in exported MQ4 EA]]></title>
			<link>https://forexsb.com/forum/post/28329/#p28329</link>
			<description><![CDATA[<p>Can you attach the strategy and/or expert?</p><p>You have to not change the expert. The issue can be in an indicator code or something other.<br />We cannot do anything to fix it without the strategy.</p>]]></description>
			<author><![CDATA[null@example.com (Popov)]]></author>
			<pubDate>Fri, 13 Mar 2015 07:17:30 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/28329/#p28329</guid>
		</item>
		<item>
			<title><![CDATA[Array out of range error in exported MQ4 EA]]></title>
			<link>https://forexsb.com/forum/post/28328/#p28328</link>
			<description><![CDATA[<p>Hello!</p><br /><p>At first - great progress with FSB! Its functionality, even in free mode - very impressive!</p><br /><p>But I faced with an issue - I exported FSB strategy to MQ4, but when I&#039;m trying to attach it to the MetaTrader chart - it writes &quot;Array out of range&quot; in expert&#039;s log and disappears from chart.</p><p>Line and position numbers points to the method &quot;void HMA::Calculate(DataSet &amp;dataSet)&quot;, line &quot;Component[1].Value[bar]=tempVal;&quot;. Error occurs accessing &quot;Value[bar]&quot;.</p><p>I&#039;ve inserted some debug lines before this line, and here are some details:<br />- Accessing Component[1], ArraySize(Component)=10<br />- Assigning Component[1].Value[4], ArraySize(Component[1].Value)=0</p><p>I found that there are two lines in the original HMA.cs:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Component = new IndicatorComp[2];<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Component[1] = new IndicatorComp {Value = new double[Bars]};<br />but there is nothing similar/corresponding in generated MQ4.</p><br /><p>Any idea - how to fix this?<br />In general - generated MQ4 doesn&#039;t look as one-to-one replica of initial CS, so I&#039;m afraid to make manual changes to MQ4.</p>]]></description>
			<author><![CDATA[null@example.com (vlad123)]]></author>
			<pubDate>Fri, 13 Mar 2015 07:15:46 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/28328/#p28328</guid>
		</item>
	</channel>
</rss>
