<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forex Software — error message]]></title>
	<link rel="self" href="https://forexsb.com/forum/feed/atom/topic/5885/" />
	<updated>2016-03-21T21:54:06Z</updated>
	<generator>PunBB</generator>
	<id>https://forexsb.com/forum/topic/5885/error-message/</id>
		<entry>
			<title type="html"><![CDATA[Re: error message]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/34768/#p34768" />
			<content type="html"><![CDATA[<p>Uh, finally got that divide by zero under control, the answer was in front of me all the time, but I overlooked it for so long. The code is optimized (thanks to Miroslav and his brilliant solution, why didn&#039;t I come up with it myself <img src="https://forexsb.com/forum/img/smilies/wink.png" width="15" height="15" alt="wink" /> ).</p><p>Report if problems of different sort pop out.</p>]]></content>
			<author>
				<name><![CDATA[footon]]></name>
				<uri>https://forexsb.com/forum/user/1242/</uri>
			</author>
			<updated>2016-03-21T21:54:06Z</updated>
			<id>https://forexsb.com/forum/post/34768/#p34768</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: error message]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/34763/#p34763" />
			<content type="html"><![CDATA[<p>I&#039;m working on solving this problem since yesterday, sorry for the trouble!</p>]]></content>
			<author>
				<name><![CDATA[footon]]></name>
				<uri>https://forexsb.com/forum/user/1242/</uri>
			</author>
			<updated>2016-03-21T15:08:29Z</updated>
			<id>https://forexsb.com/forum/post/34763/#p34763</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: error message]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/34762/#p34762" />
			<content type="html"><![CDATA[<p>I am receiving following errors during strategy search with FSB. </p><br /><p><a href="http://postimg.org/image/bllywzp2p/"><span class="postimg"><img src="http://s24.postimg.org/bllywzp2p/Indicator_Error.jpg" alt="http://s24.postimg.org/bllywzp2p/Indicator_Error.jpg" /></span></a></p><br /><p>I have removed this indicator (Bar Type) from the Active Indicators List to avoid this problem. As I understand it is not an external indicator from Repository, but it is a build in indicator. </p><p>Leon</p>]]></content>
			<author>
				<name><![CDATA[LeonHerd]]></name>
				<uri>https://forexsb.com/forum/user/8116/</uri>
			</author>
			<updated>2016-03-21T14:21:11Z</updated>
			<id>https://forexsb.com/forum/post/34762/#p34762</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: error message]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/34479/#p34479" />
			<content type="html"><![CDATA[<p>Bloody flu, I made an error in the previous fix, you are absolutely correct Pradeep. Now it should be better. Reload from repo.</p>]]></content>
			<author>
				<name><![CDATA[footon]]></name>
				<uri>https://forexsb.com/forum/user/1242/</uri>
			</author>
			<updated>2016-03-05T20:35:36Z</updated>
			<id>https://forexsb.com/forum/post/34479/#p34479</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: error message]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/34478/#p34478" />
			<content type="html"><![CDATA[<p>Thanks for the tip, my brain is a little bit fried at the moment as I caught a cold or something, I&#039;ll review the code in a more clear state of mind later.</p><div class="quotebox"><cite>Popov wrote:</cite><blockquote><p>Footon, you can greatly improve the performance of this indicator.</p><p>Now, if we have 50000 bars and the indicator period is 500, it checks&nbsp; (50000-500)*500 = 24 750 000 times the signal conditions.</p><p>You can easily remove the loop-back cycle.</p><p>///</p><p>In that way you will calculate it with only 49 500 checks.</p><p>...</p><p>The error is division by zero. It looks like there are conditions where it happens. The solution is to check if the divisor is 0 prior to division.</p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[footon]]></name>
				<uri>https://forexsb.com/forum/user/1242/</uri>
			</author>
			<updated>2016-03-05T20:25:42Z</updated>
			<id>https://forexsb.com/forum/post/34478/#p34478</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: error message]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/34477/#p34477" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>pradeepgolfer wrote:</cite><blockquote><p>same indicator same error again</p></blockquote></div><p>What data do you use? Tell me timeframe and source of it.</p>]]></content>
			<author>
				<name><![CDATA[footon]]></name>
				<uri>https://forexsb.com/forum/user/1242/</uri>
			</author>
			<updated>2016-03-05T20:22:14Z</updated>
			<id>https://forexsb.com/forum/post/34477/#p34477</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: error message]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/34476/#p34476" />
			<content type="html"><![CDATA[<p>Footon, you can greatly improve the performance of this indicator.</p><p>Now, if we have 50000 bars and the indicator period is 500, it checks&nbsp; (50000-500)*500 = 24 750 000 times the signal conditions.</p><p>You can easily remove the loop-back cycle.</p><p>Instead of:<br /></p><div class="codebox"><pre><code>for (int iBar = firstBar; iBar &lt; Bars; iBar++)
{
    for (int l = 1; l &lt;= Period; l++)
    {
        if (Close[iBar-l] &gt; Open[iBar-l])
            countup++;
            ...
    ...
}</code></pre></div><p>You can calculate it with one pass with something like that:</p><div class="codebox"><pre><code>for (int iBar = firstBar; iBar &lt; Bars; iBar++)
{
        if (Close[iBar-period] &lt;= Open[iBar-period])
            countup--;
        if (Close[iBar] &gt; Open[iBar])
            countup++;
    ...
}</code></pre></div><p>In that way you will calculate it with only 49 500 checks.</p><p>...</p><p>The error is division by zero. It looks like there are conditions where it happens. The solution is to check if the divisor is 0 prior to division.</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2016-03-05T16:40:59Z</updated>
			<id>https://forexsb.com/forum/post/34476/#p34476</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: error message]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/34475/#p34475" />
			<content type="html"><![CDATA[<p>same indicator same error again</p>]]></content>
			<author>
				<name><![CDATA[pradeepgolfer]]></name>
				<uri>https://forexsb.com/forum/user/8922/</uri>
			</author>
			<updated>2016-03-05T16:24:43Z</updated>
			<id>https://forexsb.com/forum/post/34475/#p34475</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: error message]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/34468/#p34468" />
			<content type="html"><![CDATA[<p>Re-upload it from the repo again and report back if it works now (I couldn&#039;t replicate the error).</p>]]></content>
			<author>
				<name><![CDATA[footon]]></name>
				<uri>https://forexsb.com/forum/user/1242/</uri>
			</author>
			<updated>2016-03-05T11:45:49Z</updated>
			<id>https://forexsb.com/forum/post/34468/#p34468</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: error message]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/34467/#p34467" />
			<content type="html"><![CDATA[<p>Thanks for the report, I&#039;ll look into the indicator.</p>]]></content>
			<author>
				<name><![CDATA[footon]]></name>
				<uri>https://forexsb.com/forum/user/1242/</uri>
			</author>
			<updated>2016-03-05T11:28:55Z</updated>
			<id>https://forexsb.com/forum/post/34467/#p34467</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[error message]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/34466/#p34466" />
			<content type="html"><![CDATA[<p>this keeps coming see attachment</p>]]></content>
			<author>
				<name><![CDATA[pradeepgolfer]]></name>
				<uri>https://forexsb.com/forum/user/8922/</uri>
			</author>
			<updated>2016-03-05T07:37:40Z</updated>
			<id>https://forexsb.com/forum/post/34466/#p34466</id>
		</entry>
</feed>
