<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forex Software — Donchian Channel Cross]]></title>
	<link rel="self" href="https://forexsb.com/forum/feed/atom/topic/4490/" />
	<updated>2013-11-08T21:22:26Z</updated>
	<generator>PunBB</generator>
	<id>https://forexsb.com/forum/topic/4490/donchian-channel-cross/</id>
		<entry>
			<title type="html"><![CDATA[Re: Donchian Channel Cross]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/22626/#p22626" />
			<content type="html"><![CDATA[<p>FirstBar is ok then. </p><p>Change line 126 to this:<br /></p><div class="codebox"><pre><code> for (int iBar = iFirstBar; iBar &lt; Bars-iShift1-iShift2; iBar++)</code></pre></div>]]></content>
			<author>
				<name><![CDATA[footon]]></name>
				<uri>https://forexsb.com/forum/user/1242/</uri>
			</author>
			<updated>2013-11-08T21:22:26Z</updated>
			<id>https://forexsb.com/forum/post/22626/#p22626</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Donchian Channel Cross]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/22624/#p22624" />
			<content type="html"><![CDATA[<p>what do you mean its not holding all periods and shifts !!!&nbsp; could you elaborate more </p><br /><p>i used this :<br />&nbsp; &nbsp;int&nbsp; &nbsp;iFirstBar = (iPeriod1 + iShift1 + iPeriod2 + iShift2) + previous + 2;</p><p>also i tested all these combinations <br />//int&nbsp; &nbsp;iFirstBar = Math.Max(iPeriod1 + iShift1 + previous + 2, iPeriod2 + iShift2 + previous + 2);<br />//int&nbsp; &nbsp;iFirstBar = Math.Max(Math.Max(iPeriod1, iShift1), Math.Max(iPeriod2, iShift2)) + previous + 2;<br />//int&nbsp; &nbsp;iFirstBar = (int)Math.Max(iPeriod1 + iShift1 + iPeriod2 + iShift2) + 2;<br />//int&nbsp; &nbsp;iFirstBar = Math.Max(iPeriod1 + iShift1 + iPeriod2 + iShift2) + previous + 2;<br />//int&nbsp; &nbsp;iFirstBar = Math.Max(iPeriod1 + iShift1 + iPeriod2 + iShift2) + 2;<br />//int&nbsp; &nbsp;iFirstBar = (iPeriod1 + iShift1 + iPeriod2 + iShift2) + previous + 2;</p><br /><p>But all not working !!!!!</p>]]></content>
			<author>
				<name><![CDATA[ahmedalhoseny]]></name>
				<uri>https://forexsb.com/forum/user/1512/</uri>
			</author>
			<updated>2013-11-08T17:19:13Z</updated>
			<id>https://forexsb.com/forum/post/22624/#p22624</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Donchian Channel Cross]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/22609/#p22609" />
			<content type="html"><![CDATA[<p>FirstBar is incorrect probably, make sure it holds both periods and shifts.</p>]]></content>
			<author>
				<name><![CDATA[footon]]></name>
				<uri>https://forexsb.com/forum/user/1242/</uri>
			</author>
			<updated>2013-11-07T11:35:03Z</updated>
			<id>https://forexsb.com/forum/post/22609/#p22609</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Donchian Channel Cross]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/22600/#p22600" />
			<content type="html"><![CDATA[<p>Error: Index was outside the bounds of the array.<br />Slot type: OpenFilter<br />Indicator: Donchian Channel Crossover* (High &amp; Low, , , 2, 3)</p>]]></content>
			<author>
				<name><![CDATA[ahmedalhoseny]]></name>
				<uri>https://forexsb.com/forum/user/1512/</uri>
			</author>
			<updated>2013-11-07T05:03:38Z</updated>
			<id>https://forexsb.com/forum/post/22600/#p22600</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Donchian Channel Cross]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/22599/#p22599" />
			<content type="html"><![CDATA[<p>What is the error?</p>]]></content>
			<author>
				<name><![CDATA[footon]]></name>
				<uri>https://forexsb.com/forum/user/1242/</uri>
			</author>
			<updated>2013-11-06T21:58:09Z</updated>
			<id>https://forexsb.com/forum/post/22599/#p22599</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Donchian Channel Cross]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/22598/#p22598" />
			<content type="html"><![CDATA[<p>This indicator uses two donchian channels to give signals , it works fine Shift 2 exceeds Shift1, Shift2 have to be &lt;shift1 for the indicator to work!!!!</p><p>Example of working code without Error Msg <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IndParam.NumParam[2].Caption = &quot;Shift 1&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IndParam.NumParam[2].Value = 1;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IndParam.NumParam[2].Min = 1;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IndParam.NumParam[2].Max = 3;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IndParam.NumParam[3].Caption = &quot;Shift 2&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IndParam.NumParam[3].Value = 0;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IndParam.NumParam[3].Min = 0;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IndParam.NumParam[3].Max = 1;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</p><p>I spent the whole day trying to code it but cannot find where is the bug to make it work perfect</p><p>wishing you all to find the idea useful and waiting for someone to help fix it <img src="https://forexsb.com/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[ahmedalhoseny]]></name>
				<uri>https://forexsb.com/forum/user/1512/</uri>
			</author>
			<updated>2013-11-06T21:00:14Z</updated>
			<id>https://forexsb.com/forum/post/22598/#p22598</id>
		</entry>
</feed>
