<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forex Software — Calling standard indicator in mqh fails]]></title>
	<link rel="self" href="https://forexsb.com/forum/feed/atom/topic/5261/" />
	<updated>2015-06-02T12:17:29Z</updated>
	<generator>PunBB</generator>
	<id>https://forexsb.com/forum/topic/5261/calling-standard-indicator-in-mqh-fails/</id>
		<entry>
			<title type="html"><![CDATA[Re: Calling standard indicator in mqh fails]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/29594/#p29594" />
			<content type="html"><![CDATA[<p>I&#039;ll include ATR function in the base classes so it will not be necessary to call an indicator.</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2015-06-02T12:17:29Z</updated>
			<id>https://forexsb.com/forum/post/29594/#p29594</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Calling standard indicator in mqh fails]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/29591/#p29591" />
			<content type="html"><![CDATA[<p>No, I haven&#039;t solved it. Or actually I can solve it by cutting out the indi call and substituting it with actual indi calculation, then it compiles without problems. </p><p>I&#039;ll upload the files to repo, I did this conversion with hourly low/high man Niek in mind, would be great if he would test it out.</p>]]></content>
			<author>
				<name><![CDATA[footon]]></name>
				<uri>https://forexsb.com/forum/user/1242/</uri>
			</author>
			<updated>2015-06-02T10:38:18Z</updated>
			<id>https://forexsb.com/forum/post/29591/#p29591</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Calling standard indicator in mqh fails]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/29589/#p29589" />
			<content type="html"><![CDATA[<p>Footon, did you solve the problem?</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2015-06-02T10:31:16Z</updated>
			<id>https://forexsb.com/forum/post/29589/#p29589</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Calling standard indicator in mqh fails]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/29580/#p29580" />
			<content type="html"><![CDATA[<p>If you can share your desktop with TeamViewer or at least at Skype, I may find the reason for the failure.</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2015-06-01T21:59:48Z</updated>
			<id>https://forexsb.com/forum/post/29580/#p29580</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Calling standard indicator in mqh fails]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/29579/#p29579" />
			<content type="html"><![CDATA[<p>I downloaded the files from the forum. Put them in FSB, exported an EA again and it compiled and run in MT.</p><p>I&#039;m using FSB Pro v2.7.3 and Expert_version 20.</p><p>If you do the same, it must compile. You must have &quot;AverageTrueRange.mqh&quot; in &quot;User Files\MT4 Files\MQL\Forexsb.com\Indicators&quot; folder by default.</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2015-06-01T21:57:55Z</updated>
			<id>https://forexsb.com/forum/post/29579/#p29579</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Calling standard indicator in mqh fails]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/29578/#p29578" />
			<content type="html"><![CDATA[<p>Yes to all questions.</p>]]></content>
			<author>
				<name><![CDATA[footon]]></name>
				<uri>https://forexsb.com/forum/user/1242/</uri>
			</author>
			<updated>2015-06-01T21:47:41Z</updated>
			<id>https://forexsb.com/forum/post/29578/#p29578</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Calling standard indicator in mqh fails]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/29577/#p29577" />
			<content type="html"><![CDATA[<p>Do you copied the files I attached to the previous post on the correct folders? Do you reloaded the cs SuperTrend indicator in FSB?</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2015-06-01T21:34:48Z</updated>
			<id>https://forexsb.com/forum/post/29577/#p29577</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Calling standard indicator in mqh fails]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/29576/#p29576" />
			<content type="html"><![CDATA[<p>Compiles without problems. I&#039;m baffled.</p>]]></content>
			<author>
				<name><![CDATA[footon]]></name>
				<uri>https://forexsb.com/forum/user/1242/</uri>
			</author>
			<updated>2015-06-01T21:30:56Z</updated>
			<id>https://forexsb.com/forum/post/29576/#p29576</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Calling standard indicator in mqh fails]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/29575/#p29575" />
			<content type="html"><![CDATA[<p>Can you try my experet. It runs in both MT4 and MT5.</p><br /><p><a href="http://postimg.org/image/3q9ef3f7t/"><span class="postimg"><img src="http://s28.postimg.org/3q9ef3f7t/screenshot_946.jpg" alt="http://s28.postimg.org/3q9ef3f7t/screenshot_946.jpg" /></span></a></p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2015-06-01T21:25:41Z</updated>
			<id>https://forexsb.com/forum/post/29575/#p29575</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Calling standard indicator in mqh fails]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/29574/#p29574" />
			<content type="html"><![CDATA[<p>I tried it on MT5, same issues are there too. A bit more global this is.</p><p>If anyone wants to help out, please download those 2 indi files, export and try compiling them. It would be somewhat helpful to know if I&#039;m the isolated case here.</p><p>Thank you!</p>]]></content>
			<author>
				<name><![CDATA[footon]]></name>
				<uri>https://forexsb.com/forum/user/1242/</uri>
			</author>
			<updated>2015-06-01T21:15:03Z</updated>
			<id>https://forexsb.com/forum/post/29574/#p29574</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Calling standard indicator in mqh fails]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/29573/#p29573" />
			<content type="html"><![CDATA[<p>What kind of Metaeditor build are you using?</p>]]></content>
			<author>
				<name><![CDATA[footon]]></name>
				<uri>https://forexsb.com/forum/user/1242/</uri>
			</author>
			<updated>2015-06-01T21:06:02Z</updated>
			<id>https://forexsb.com/forum/post/29573/#p29573</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Calling standard indicator in mqh fails]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/29572/#p29572" />
			<content type="html"><![CDATA[<p>Thanks for looking into this, but bloody hell, it still won&#039;t compile on my end. MT compiler is daft on my end???</p>]]></content>
			<author>
				<name><![CDATA[footon]]></name>
				<uri>https://forexsb.com/forum/user/1242/</uri>
			</author>
			<updated>2015-06-01T21:04:57Z</updated>
			<id>https://forexsb.com/forum/post/29572/#p29572</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Calling standard indicator in mqh fails]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/29571/#p29571" />
			<content type="html"><![CDATA[<p>I don&#039;t know why it doesn&#039;t run on your comp. I just added the &quot;//## Requires AverageTrueRange.mqh&quot; code and the expert compiles. However another error appeared and I see you have fixed in the mqh file. The required ATR needs one bar more than the SuperTrend and probably this was the reason to add +1 to the firstBar in the mqh file. The problem was that the firstBar was not edited in the SuperTrend.cs file.</p><p>Please find the files attached. The changes are:<br />Added &quot;//## Requires AverageTrueRange.mqh&quot; on line 31 of the mqh file;</p><p>Added +1 to the firstBar on line 134 of the cs file.<br /></p><div class="codebox"><pre><code>int iFirstBar = iPeriod + iPrvs +1;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2015-06-01T19:31:31Z</updated>
			<id>https://forexsb.com/forum/post/29571/#p29571</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Calling standard indicator in mqh fails]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/29569/#p29569" />
			<content type="html"><![CDATA[<p>The expert compiles but gives another error with the calculation of ATR. I&#039;ll try to figure out what it happens and will upload the indicator file.</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2015-06-01T18:08:38Z</updated>
			<id>https://forexsb.com/forum/post/29569/#p29569</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Calling standard indicator in mqh fails]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/29566/#p29566" />
			<content type="html"><![CDATA[<p>No problems, take your time. </p><p>It&#039;s not working, I&#039;ve combined it this way and the other, but it&#039;s just not working. It might be a silly mistake from my side, but I can&#039;t locate it.</p>]]></content>
			<author>
				<name><![CDATA[footon]]></name>
				<uri>https://forexsb.com/forum/user/1242/</uri>
			</author>
			<updated>2015-06-01T15:12:59Z</updated>
			<id>https://forexsb.com/forum/post/29566/#p29566</id>
		</entry>
</feed>
