<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forex Software — Is it bug with Williams %R when running EA in MT4?]]></title>
	<link rel="self" href="https://forexsb.com/forum/feed/atom/topic/7233/" />
	<updated>2018-06-09T09:20:56Z</updated>
	<generator>PunBB</generator>
	<id>https://forexsb.com/forum/topic/7233/is-it-bug-with-williams-r-when-running-ea-in-mt4/</id>
		<entry>
			<title type="html"><![CDATA[Re: Is it bug with Williams %R when running EA in MT4?]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/50827/#p50827" />
			<content type="html"><![CDATA[<p>I&#039;m fixing this error in both FSB Pro and the exported code. </p><p>The William&#039;s Percent Range value will be set to -50 when min = max for the particular range.</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2018-06-09T09:20:56Z</updated>
			<id>https://forexsb.com/forum/post/50827/#p50827</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Is it bug with Williams %R when running EA in MT4?]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/49420/#p49420" />
			<content type="html"><![CDATA[<p>Thanks for the good word -- though genius would probably be stretching it a bit.&nbsp; I&#039;m glad to hear the fix worked.</p>]]></content>
			<author>
				<name><![CDATA[sleytus]]></name>
				<uri>https://forexsb.com/forum/user/9721/</uri>
			</author>
			<updated>2018-02-28T23:11:54Z</updated>
			<id>https://forexsb.com/forum/post/49420/#p49420</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Is it bug with Williams %R when running EA in MT4?]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/49419/#p49419" />
			<content type="html"><![CDATA[<p>Sleytus you are an absolute genius and an extremely good-hearted person which is a fantastic combination to have. Thanks a lot. Your code change worked in first go and it allowed EA to progress in MT4 strategy tester. The EA does open positions fine but will need some tweaking as although it showed profit in FSB,&nbsp; in MT4 the graph went down. I will work on it further. If it proves any profitable I will share it in this thread. <br />Your solution will also help anyone who tries to use the WPR indicator and generates a MT4 EA.<br />Thanks again.<br />RK</p>]]></content>
			<author>
				<name><![CDATA[srkonlinenow]]></name>
				<uri>https://forexsb.com/forum/user/10303/</uri>
			</author>
			<updated>2018-02-28T22:28:49Z</updated>
			<id>https://forexsb.com/forum/post/49419/#p49419</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Is it bug with Williams %R when running EA in MT4?]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/49418/#p49418" />
			<content type="html"><![CDATA[<p>Hello,</p><p>On line 2584 you might try changing the code from:</p><p>adR[bar]=-100*(max-Data.Close[bar])/(max-min);</p><p>to</p><p>adR[bar] = 0;<br />if ((max-min) &gt; 0)<br />&nbsp; &nbsp; adR[bar]=-100*(max-Data.Close[bar])/(max-min);</p><p>I couldn&#039;t really test it because the strategy you uploaded isn&#039;t realistic and never trades.&nbsp; I&#039;m not sure what a good default value for adR[bar] would be in the case where (max-min) is zero.</p>]]></content>
			<author>
				<name><![CDATA[sleytus]]></name>
				<uri>https://forexsb.com/forum/user/9721/</uri>
			</author>
			<updated>2018-02-28T18:20:52Z</updated>
			<id>https://forexsb.com/forum/post/49418/#p49418</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Is it bug with Williams %R when running EA in MT4?]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/49415/#p49415" />
			<content type="html"><![CDATA[<p>Any thoughts? Any ideas to overcome this issue?</p>]]></content>
			<author>
				<name><![CDATA[srkonlinenow]]></name>
				<uri>https://forexsb.com/forum/user/10303/</uri>
			</author>
			<updated>2018-02-28T15:55:38Z</updated>
			<id>https://forexsb.com/forum/post/49415/#p49415</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Is it bug with Williams %R when running EA in MT4?]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/49340/#p49340" />
			<content type="html"><![CDATA[<p>Hello guys,<br />I really appreciate the great work that Popov and everyone here does to make Forex Strategy builder better everyday.<br />I have been watching this forum for some time but recently started trying out the strategies creation myself from the software. Yesterday I created a strategy that showed a great potential and mainly utilises Williams %R indicator. I have attached the MQL herewith for you to have a look and confirm if this is a bug. <br />The MQL4 for expert adviser gets compiled without issues in MT4 but when this expert is ran for back testing Zero divide error is shown and it does not run. <br />I tried attaching this EA to live chart and although it runs and shows smiley after some time it reports the same error. </p><p>I also tried using alternative indicator in FSB called&nbsp; Amplified Williams %R but get the same error. I don&#039;t get this kind of error when using any other indicators so I guess I am not making any fundamental mistakes.</p><p>Can you have a look please?<br />Thanks<br />RK</p>]]></content>
			<author>
				<name><![CDATA[srkonlinenow]]></name>
				<uri>https://forexsb.com/forum/user/10303/</uri>
			</author>
			<updated>2018-02-21T12:03:41Z</updated>
			<id>https://forexsb.com/forum/post/49340/#p49340</id>
		</entry>
</feed>
