<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forex Software — Error with Opening Logic Condition]]></title>
	<link rel="self" href="https://forexsb.com/forum/feed/atom/topic/2608" />
	<updated>2011-09-16T20:59:05Z</updated>
	<generator>PunBB</generator>
	<id>https://forexsb.com/forum/topic/2608/error-with-opening-logic-condition/</id>
		<entry>
			<title type="html"><![CDATA[Re: Error with Opening Logic Condition]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/10668/#p10668" />
			<content type="html"><![CDATA[<p>It seams that:<br /></p><div class="codebox"><pre><code>aiIndSlot  = new int[Configs.MAX_ENTRY_FILTERS + Configs.MAX_EXIT_FILTERS + 2];</code></pre></div><p>is not enough.</p><p>We can also correct&nbsp; Configs.MAX_ENTRY_FILTERS and Configs.MAX_EXIT_FILTERS according to the startegy.</p><p>I added also:<br /></p><div class="codebox"><pre><code>                    if (Data.Strategy.OpenFilters &gt; Configs.MAX_ENTRY_FILTERS)
                        Configs.MAX_ENTRY_FILTERS = Data.Strategy.OpenFilters;
                    if (Data.Strategy.CloseFilters &gt; Configs.MAX_EXIT_FILTERS)
                        Configs.MAX_EXIT_FILTERS = Data.Strategy.CloseFilters;</code></pre></div><p>in OpenStrategy function. File Actions.cs line 723.</p><p>Now the strategy is properly loaded.</p><p><a href="http://postimage.org/image/19leg1uo4/"><span class="postimg"><img src="http://s3.postimage.org/19leg1uo4/9_16_2011_11_57_31_PM.jpg" alt="http://s3.postimage.org/19leg1uo4/9_16_2011_11_57_31_PM.jpg" /></span></a></p><p>[Edit]<br />Diff at github.com: <a href="https://github.com/PopovMP/Forex-Strategy-Builder/commit/05e17891d06d90327be5ebb829e69b29b6c48ebd">Corrected crash when strategy has more than 12 indicators with separated charts</a>.</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2011-09-16T20:59:05Z</updated>
			<id>https://forexsb.com/forum/post/10668/#p10668</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error with Opening Logic Condition]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/10667/#p10667" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>Can the array size be increased or made dynamic? Usually I can do that in other languages, but haven&#039;t found how to do it in C#.</p></blockquote></div><p>We can use some sort of List for dynamical resizing, but it has some drawbacks.<br />I&#039;ll make it:<br /></p><div class="codebox"><pre><code>aiIndSlot  = new int[Configs.MAX_ENTRY_FILTERS + Configs.MAX_EXIT_FILTERS + 2];</code></pre></div><p>for next versions.</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2011-09-16T20:39:56Z</updated>
			<id>https://forexsb.com/forum/post/10667/#p10667</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error with Opening Logic Condition]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/10666/#p10666" />
			<content type="html"><![CDATA[<p>I&#039;ve reproduced by adding 8 open filters then 8 close filters to a New strategy. I think it&#039;s:</p><p>Small Indicator Chart.SetUpChart: line 195</p><p>because Itai&#039;s separated chart indicators exceed 12.<br />Can the array size be increased or made dynamic? Usually I can do that in other languages, but haven&#039;t found how to do it in C#.</p><p>EDIT &gt;&gt; Mr Popov beat me to the solution ...</p>]]></content>
			<author>
				<name><![CDATA[krog]]></name>
				<uri>https://forexsb.com/forum/user/1692/</uri>
			</author>
			<updated>2011-09-16T20:36:29Z</updated>
			<id>https://forexsb.com/forum/post/10666/#p10666</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error with Opening Logic Condition]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/10665/#p10665" />
			<content type="html"><![CDATA[<p>I see now. There is a limit that allows for a strategy maximum 12 indicators plotted on separated charts. This limit is hard coded in the program. I&#039;ll correct this in next versions.</p><p>In order to prevent further crashes, please limit the strategy to 12 indicators.</p><p>Thank you for the report!</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2011-09-16T20:33:30Z</updated>
			<id>https://forexsb.com/forum/post/10665/#p10665</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error with Opening Logic Condition]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/10664/#p10664" />
			<content type="html"><![CDATA[<p>I have created this test strategy. When I open it I get the error. I have tried to open it on two machines. One with windows XP and the other one with Windows 7. Both return with the error. If you don&#039;t get the error try to add another open filter. <br />It would be interesting to know if you also get the same error.</p>]]></content>
			<author>
				<name><![CDATA[Itai]]></name>
				<uri>https://forexsb.com/forum/user/2210/</uri>
			</author>
			<updated>2011-09-16T19:57:19Z</updated>
			<id>https://forexsb.com/forum/post/10664/#p10664</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error with Opening Logic Condition]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/10661/#p10661" />
			<content type="html"><![CDATA[<p>You can attach the strategy to the forum. Use &quot;Post Replay&quot; link to open full reply form and you&#039;ll see file attach buttons.</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2011-09-16T16:54:29Z</updated>
			<id>https://forexsb.com/forum/post/10661/#p10661</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error with Opening Logic Condition]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/10660/#p10660" />
			<content type="html"><![CDATA[<p>That would be great. <br />In the strategy, beside the Opening and Closing Point of the Position, there are 7 Opening Logic Conditions and 8 Closing logic Conditions with the use of logical groups. When I added the 8th Opening Logic Condition to the strategy I received the error. I think there were too many logic conditions in the open and close logic conditions that overloaded the system. <br />This is only when I use the FSB. With the FST I did not get the error.<br />If I could upload a file here I could upload a test strategy where I receive the error, or I could send you a mail with this test strategy.</p><p>If you need more info please let me know.<br />Have a great weekend!</p>]]></content>
			<author>
				<name><![CDATA[Itai]]></name>
				<uri>https://forexsb.com/forum/user/2210/</uri>
			</author>
			<updated>2011-09-16T14:48:22Z</updated>
			<id>https://forexsb.com/forum/post/10660/#p10660</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error with Opening Logic Condition]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/10645/#p10645" />
			<content type="html"><![CDATA[<p>Can you please describe the exact steps that lead to the crash. If I reproduce it, I&#039;ll be able to fix it easily.</p><p>Thank you.</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2011-09-15T16:06:26Z</updated>
			<id>https://forexsb.com/forum/post/10645/#p10645</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error with Opening Logic Condition]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/10639/#p10639" />
			<content type="html"><![CDATA[<p>I thought it could be something like that so I rebooted the computer but got the same error. Then I tried on another computer and received the same error (This time the operating system is in english so the error is also in english :-) : </p><p>&quot;Index was outside the bounds of the array.&quot;</p><p>The funny thing is that when I can include this opening logic in the forex startegy trader without getting any error. But when I then save it in FST and tries to open it in the FSB I receive the error.</p><p>See screenshot below for the error I receive in FSB:</p><p><a href="http://postimage.org/image/172xqwp2c/"><span class="postimg"><img src="http://s2.postimage.org/172xqwp2c/FSB_error.jpg" alt="http://s2.postimage.org/172xqwp2c/FSB_error.jpg" /></span></a></p>]]></content>
			<author>
				<name><![CDATA[Itai]]></name>
				<uri>https://forexsb.com/forum/user/2210/</uri>
			</author>
			<updated>2011-09-15T12:47:49Z</updated>
			<id>https://forexsb.com/forum/post/10639/#p10639</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error with Opening Logic Condition]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/10636/#p10636" />
			<content type="html"><![CDATA[<p>I have experienced similar if I have been running my system for quite a while without a reboot.</p><p>My thinking has been that the memory in my system gets messed up after running several instances of the generator for a few days and finally the program aborts.</p><p>That may not be the case in your situation, however, perhaps you will be able to determine if the instance occurs after a clean reboot or after you have been using FST for many hours</p>]]></content>
			<author>
				<name><![CDATA[Blaiserboy]]></name>
				<uri>https://forexsb.com/forum/user/2491/</uri>
			</author>
			<updated>2011-09-15T12:29:42Z</updated>
			<id>https://forexsb.com/forum/post/10636/#p10636</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Error with Opening Logic Condition]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/10632/#p10632" />
			<content type="html"><![CDATA[<p>Dear all, </p><p>First of all thanks for a great program. I have been using it for a while and very amazed with all the possibilities it has. I have encountered an error when I try to add the Accelerator Oscillator as an opening logic. I am not sure if it is an error with FSB or with my operating system. The error I get it as follows. When I have set the parameters of the indicator and click Accept to include it I receive this message ( Its a bit long but here it goes):</p><p><em>&quot;Se slutningen af denne meddelelse, hvis du vil have detaljer om,<br />hvordan du starter JIT-fejlfinding i stedet for denne dialogboks.</em></p><p>************** Undtagelsestekst **************<br />System.IndexOutOfRangeException: Indekset lå uden for arrayets grænser.<br />&nbsp; &nbsp;ved Forex_Strategy_Builder.Small_Indicator_Chart.SetUpChart()<br />&nbsp; &nbsp;ved Forex_Strategy_Builder.Small_Indicator_Chart.InitChart()<br />&nbsp; &nbsp;ved Forex_Strategy_Builder.Actions.EditSlot(Int32 slot)<br />&nbsp; &nbsp;ved System.Windows.Forms.Control.OnClick(EventArgs e)<br />...</p><p><strong>[Edited by Admin]</strong><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Part of the report was deleted except the first lines. (Only first few lines are informative.)</p><p>Does anyone know what it can be?</p><p>Thanks in advance.<br />/Itai</p>]]></content>
			<author>
				<name><![CDATA[Itai]]></name>
				<uri>https://forexsb.com/forum/user/2210/</uri>
			</author>
			<updated>2011-09-15T12:22:55Z</updated>
			<id>https://forexsb.com/forum/post/10632/#p10632</id>
		</entry>
</feed>
