<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Forex Software — Error with Opening Logic Condition]]></title>
		<link>https://forexsb.com/forum/topic/2608/error-with-opening-logic-condition/</link>
		<atom:link href="https://forexsb.com/forum/feed/rss/topic/2608" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Error with Opening Logic Condition.]]></description>
		<lastBuildDate>Fri, 16 Sep 2011 20:59:05 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Error with Opening Logic Condition]]></title>
			<link>https://forexsb.com/forum/post/10668/#p10668</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Popov)]]></author>
			<pubDate>Fri, 16 Sep 2011 20:59:05 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/10668/#p10668</guid>
		</item>
		<item>
			<title><![CDATA[Re: Error with Opening Logic Condition]]></title>
			<link>https://forexsb.com/forum/post/10667/#p10667</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Popov)]]></author>
			<pubDate>Fri, 16 Sep 2011 20:39:56 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/10667/#p10667</guid>
		</item>
		<item>
			<title><![CDATA[Re: Error with Opening Logic Condition]]></title>
			<link>https://forexsb.com/forum/post/10666/#p10666</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (krog)]]></author>
			<pubDate>Fri, 16 Sep 2011 20:36:29 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/10666/#p10666</guid>
		</item>
		<item>
			<title><![CDATA[Re: Error with Opening Logic Condition]]></title>
			<link>https://forexsb.com/forum/post/10665/#p10665</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Popov)]]></author>
			<pubDate>Fri, 16 Sep 2011 20:33:30 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/10665/#p10665</guid>
		</item>
		<item>
			<title><![CDATA[Re: Error with Opening Logic Condition]]></title>
			<link>https://forexsb.com/forum/post/10664/#p10664</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Itai)]]></author>
			<pubDate>Fri, 16 Sep 2011 19:57:19 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/10664/#p10664</guid>
		</item>
		<item>
			<title><![CDATA[Re: Error with Opening Logic Condition]]></title>
			<link>https://forexsb.com/forum/post/10661/#p10661</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Popov)]]></author>
			<pubDate>Fri, 16 Sep 2011 16:54:29 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/10661/#p10661</guid>
		</item>
		<item>
			<title><![CDATA[Re: Error with Opening Logic Condition]]></title>
			<link>https://forexsb.com/forum/post/10660/#p10660</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Itai)]]></author>
			<pubDate>Fri, 16 Sep 2011 14:48:22 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/10660/#p10660</guid>
		</item>
		<item>
			<title><![CDATA[Re: Error with Opening Logic Condition]]></title>
			<link>https://forexsb.com/forum/post/10645/#p10645</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Popov)]]></author>
			<pubDate>Thu, 15 Sep 2011 16:06:26 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/10645/#p10645</guid>
		</item>
		<item>
			<title><![CDATA[Re: Error with Opening Logic Condition]]></title>
			<link>https://forexsb.com/forum/post/10639/#p10639</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Itai)]]></author>
			<pubDate>Thu, 15 Sep 2011 12:47:49 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/10639/#p10639</guid>
		</item>
		<item>
			<title><![CDATA[Re: Error with Opening Logic Condition]]></title>
			<link>https://forexsb.com/forum/post/10636/#p10636</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Blaiserboy)]]></author>
			<pubDate>Thu, 15 Sep 2011 12:29:42 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/10636/#p10636</guid>
		</item>
		<item>
			<title><![CDATA[Error with Opening Logic Condition]]></title>
			<link>https://forexsb.com/forum/post/10632/#p10632</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Itai)]]></author>
			<pubDate>Thu, 15 Sep 2011 12:22:55 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/10632/#p10632</guid>
		</item>
	</channel>
</rss>
