<?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 in maximum position allowed]]></title>
		<link>https://forexsb.com/forum/topic/5571/error-in-maximum-position-allowed/</link>
		<atom:link href="https://forexsb.com/forum/feed/rss/topic/5571/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Error in maximum position allowed.]]></description>
		<lastBuildDate>Sun, 20 Sep 2015 07:32:11 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Error in maximum position allowed]]></title>
			<link>https://forexsb.com/forum/post/31630/#p31630</link>
			<description><![CDATA[<p>Thanks.&nbsp; Of course another simplest solution is to change the preset every time and not just leave it as it is in the preset value &quot;20&quot;, even if I&#039;m not using the &quot;additional entry signal&quot;.</p><p>I guess that defeats the purpose of me raising my concern.</p>]]></description>
			<author><![CDATA[null@example.com (hannahis)]]></author>
			<pubDate>Sun, 20 Sep 2015 07:32:11 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/31630/#p31630</guid>
		</item>
		<item>
			<title><![CDATA[Re: Error in maximum position allowed]]></title>
			<link>https://forexsb.com/forum/post/31626/#p31626</link>
			<description><![CDATA[<p>There is very easy solution to you request. Simply set what ever default settings you need and save a Template. Later, when you need a new strategy, open the saved template.</p><p><a href="http://postimg.org/image/v9vs1s8g9/"><span class="postimg"><img src="http://s28.postimg.org/v9vs1s8g9/screenshot_1210.jpg" alt="http://s28.postimg.org/v9vs1s8g9/screenshot_1210.jpg" /></span></a></p>]]></description>
			<author><![CDATA[null@example.com (Popov)]]></author>
			<pubDate>Sun, 20 Sep 2015 04:38:20 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/31626/#p31626</guid>
		</item>
		<item>
			<title><![CDATA[Re: Error in maximum position allowed]]></title>
			<link>https://forexsb.com/forum/post/31625/#p31625</link>
			<description><![CDATA[<p>Yes, I agree with you that the EA doesn&#039;t fabricate this number.</p><p>Most of the time, if I don&#039;t use the &quot;additional entry signal&quot;, I leave the &quot;maximum amount allowed&quot; at the preset value, &quot;20&quot; as it is and then export the EA.&nbsp; Hence, the export EA will reflect &quot;20&quot; for maximum amount allowed but will only trade 1 lot.</p><p>The problem arise, when I later decided to change this same EA and turn on the &quot;additional entry signal&quot; to &quot;winner&quot; and I change the &quot;maximum amount allowed&quot; to 4 Lots.&nbsp; But because of the bug issue in the MT4, the MT4 didn&#039;t update the lot to 4 during refresh function but remain at the previous &quot;20&quot;.&nbsp; Hence, I was hoping that if you put the preset value instead of &quot;20&quot; to &quot;1&quot; or &quot;5&quot;, then at least the error won&#039;t be so damaging to my trading account, when the bug arise.</p><p>I am not sure you whether you understand my explanation/suggestion.</p>]]></description>
			<author><![CDATA[null@example.com (hannahis)]]></author>
			<pubDate>Sat, 19 Sep 2015 19:11:45 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/31625/#p31625</guid>
		</item>
		<item>
			<title><![CDATA[Re: Error in maximum position allowed]]></title>
			<link>https://forexsb.com/forum/post/31624/#p31624</link>
			<description><![CDATA[<p>The screenshot is from FSB. It has default value 20 for Max Lots.</p><p> The expert code is here: <a href="https://github.com/PopovMP/FSB_Expert_Advisor_Code">PopovMP/FSB_Expert_Advisor_Code</a>. It doesn&#039;t have Max Value settings.</p><p>The only way the number 20 to appear to the EA is to be exported from FSB. During the export the program replaces the string 77702 with the real settings.</p><div class="codebox"><pre><code>// -----------------------    External variables   ----------------------- //

extern double Entry_Amount    = 77701; // Amount for a new position #TRADEUNIT#
extern double Maximum_Amount  = 77702; // Maximum position amount [lot]
extern double Adding_Amount   = 77703; // Amount to add on addition #TRADEUNIT#
extern double Reducing_Amount = 77704; // Amount to close on reduction #TRADEUNIT#</code></pre></div><p>See: <a href="https://github.com/PopovMP/FSB_Expert_Advisor_Code/blob/master/FSB_Expert_MT4.mq4">https://github.com/PopovMP/FSB_Expert_A … rt_MT4.mq4</a></p><p><strong>THE ONLY WAY TO SEE 20 IN THE EA IS TO EXPORT IT FROM FSB.</strong></p><p>Your EA cannot fabricate this number alone.</p>]]></description>
			<author><![CDATA[null@example.com (Popov)]]></author>
			<pubDate>Sat, 19 Sep 2015 18:55:08 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/31624/#p31624</guid>
		</item>
		<item>
			<title><![CDATA[Re: Error in maximum position allowed]]></title>
			<link>https://forexsb.com/forum/post/31623/#p31623</link>
			<description><![CDATA[<p>This is the new strategy default screen shot, showing the preset &quot;20&quot; under the &quot;maximum position amount&quot;</p>]]></description>
			<author><![CDATA[null@example.com (hannahis)]]></author>
			<pubDate>Sat, 19 Sep 2015 18:20:49 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/31623/#p31623</guid>
		</item>
		<item>
			<title><![CDATA[Re: Error in maximum position allowed]]></title>
			<link>https://forexsb.com/forum/post/31622/#p31622</link>
			<description><![CDATA[<p>That&#039;s weird, because when I click on &quot;New Strategy&quot; tab in the FSB Pro, under the &quot;Maximum position amount&quot; [lot], the preset value is &quot;20&quot;.</p>]]></description>
			<author><![CDATA[null@example.com (hannahis)]]></author>
			<pubDate>Sat, 19 Sep 2015 18:19:11 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/31622/#p31622</guid>
		</item>
		<item>
			<title><![CDATA[Re: Error in maximum position allowed]]></title>
			<link>https://forexsb.com/forum/post/31621/#p31621</link>
			<description><![CDATA[<div class="quotebox"><blockquote><p>And because of the bug issue, the MT4 take into account the instruction to add position but didn&#039;t update the &quot;4&quot; lots as maximum but remain in the default &quot;20&quot;</p></blockquote></div><p>The EA does not have default number of max lots. The number you see is exported from FSB. If you see 20 in the EA, it means that you have exported 20 form FSB. No mater what I set as default value, it requires attention and change before exporting. </p><p>I just made the effort to search the EA code for number 20. It appears on two places only in the EA code and both of these are not related to the max entry lots.</p>]]></description>
			<author><![CDATA[null@example.com (Popov)]]></author>
			<pubDate>Sat, 19 Sep 2015 18:13:45 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/31621/#p31621</guid>
		</item>
		<item>
			<title><![CDATA[Re: Error in maximum position allowed]]></title>
			<link>https://forexsb.com/forum/post/31620/#p31620</link>
			<description><![CDATA[<p>Hi Popov,</p><p>Yes, I realised can&#039;t be &quot;0&quot; but at least &quot;1&quot; or do an auto calculation based on (i.e. this amount will change according to) the in put for A) &quot;Entry amount for a new position and B)&quot;additional entry signal&quot;</p><p>Eg 1.&nbsp; If Entry amount for new position is &quot;1&quot; and no &quot;additional entry signal&quot; is chosen, then the maximum amount is &quot;1&quot;</p><p>Eg 2. If Entry amount for new position is &quot;1&quot; and &quot;additional entry signal&quot;, &quot;winner&quot; and &quot;amount to add on position&quot; is &quot;1&quot;, then the maximum amount is &quot;1+1=2 or manual input to 4&quot;</p><br /><p>Although you said that there isn&#039;t any default for maximum position allowed.&nbsp; When I open a new strategy in the FSB Pro, the maximum position amount is set at &quot;20&quot; already.</p><p>And when I open the EA properties in the MT4, the maximum position allowed is set at &quot;20&quot; too (this is fine when the &quot;additional same direction signal&quot; is set as &quot;nothing&quot;, the EA will follow the amount set by &quot;Entry amount for a new position&quot;.&nbsp; </p><p>However, in the event of bug issue such as my case, whereby I choose &quot;additional entry signal&quot; as winner and &quot;amount to add position&quot; is 1 and the maximum is 4.&nbsp; And because of the bug issue, the MT4 take into account the instruction to add position but didn&#039;t update the &quot;4&quot; lots as maximum but remain in the default &quot;20&quot; and hence, add 20 positions instead of 4.&nbsp; Hence, I thought for safety issue, can you either consider to change the &quot;default&quot; setting 20 to something else be it 1 or auto calculation? or allow the user to change this setting manually (as in the current case, the only difference is that &quot;20&quot; is not the preset number)</p><p>I rather the preset maximum number be set at 1 than 20 and then let the user adjust accordingly.&nbsp; Because in event of a bug issue, 20 lots opened unintentionally is a disaster.&nbsp; I hope you understand what I&#039;m driving at.&nbsp; You always looked into safety issue.&nbsp; And I think it is good to prevent my case from repeating again although, it is no fault of FSB Pro but as you mentioned the bug lies with the MT4.&nbsp; But for user protection, it&#039;s good to look into how to minimize the potential danger if bug issue arise again.</p>]]></description>
			<author><![CDATA[null@example.com (hannahis)]]></author>
			<pubDate>Sat, 19 Sep 2015 17:52:36 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/31620/#p31620</guid>
		</item>
		<item>
			<title><![CDATA[Re: Error in maximum position allowed]]></title>
			<link>https://forexsb.com/forum/post/31619/#p31619</link>
			<description><![CDATA[<div class="quotebox"><cite>hannahis wrote:</cite><blockquote><p>Hi Popov,</p><p>Can you consider changing the maximum lot default to &quot;0&quot; instead of &quot;20&quot; so that if in any case because of bug issue, the EA would not end up adding 20 lots.</p></blockquote></div><p>EA has no default settings. All EA parameters come from the strategy you export.</p><p>You have to adjust it in any case. The Max Lots cannot be zero. If it make it lower than the entry amount, the strategy will not trade at all.</p>]]></description>
			<author><![CDATA[null@example.com (Popov)]]></author>
			<pubDate>Sat, 19 Sep 2015 17:29:14 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/31619/#p31619</guid>
		</item>
		<item>
			<title><![CDATA[Re: Error in maximum position allowed]]></title>
			<link>https://forexsb.com/forum/post/31618/#p31618</link>
			<description><![CDATA[<p>Hi Popov,</p><p>Can you consider changing the maximum lot default to &quot;0&quot; instead of &quot;20&quot; so that if in any case because of bug issue, the EA would not end up adding 20 lots.</p>]]></description>
			<author><![CDATA[null@example.com (hannahis)]]></author>
			<pubDate>Sat, 19 Sep 2015 17:16:30 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/31618/#p31618</guid>
		</item>
		<item>
			<title><![CDATA[Re: Error in maximum position allowed]]></title>
			<link>https://forexsb.com/forum/post/31606/#p31606</link>
			<description><![CDATA[<div class="quotebox"><cite>Popov wrote:</cite><blockquote><p>. I almost decided making a self-generating, optimizing and trading expert !!!</p></blockquote></div><p>Cool, with your talent and expertise, you should go for it!&nbsp; Whereas for me, I can only dream about it <img src="https://forexsb.com/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>I have always been hoping and dreaming a EA constantly optimizing based on current and ongoing market data.&nbsp; I only wished I have your set of skills.</p>]]></description>
			<author><![CDATA[null@example.com (hannahis)]]></author>
			<pubDate>Fri, 18 Sep 2015 20:30:29 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/31606/#p31606</guid>
		</item>
		<item>
			<title><![CDATA[Re: Error in maximum position allowed]]></title>
			<link>https://forexsb.com/forum/post/31601/#p31601</link>
			<description><![CDATA[<p>Yesterday I lost 1 hour trying to make the new version of the bridge running without success. Finally I restarted MT and it appeared that the bridge is working flawlessly.&nbsp; </p><p>However, I must say that the latest versions of the MQL language are much better than before. I almost decided making a self-generating, optimizing and trading expert !!!</p>]]></description>
			<author><![CDATA[null@example.com (Popov)]]></author>
			<pubDate>Fri, 18 Sep 2015 15:32:23 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/31601/#p31601</guid>
		</item>
		<item>
			<title><![CDATA[Re: Error in maximum position allowed]]></title>
			<link>https://forexsb.com/forum/post/31595/#p31595</link>
			<description><![CDATA[<p>cold boot is required to change EA&nbsp; ie remove EA, power down the system, wait a few minutes, restart system then add new ea</p><p>MT4&nbsp; does not go away easily</p>]]></description>
			<author><![CDATA[null@example.com (Blaiserboy)]]></author>
			<pubDate>Fri, 18 Sep 2015 12:29:35 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/31595/#p31595</guid>
		</item>
		<item>
			<title><![CDATA[Re: Error in maximum position allowed]]></title>
			<link>https://forexsb.com/forum/post/31571/#p31571</link>
			<description><![CDATA[<p>Can you reproduce the issue? If you can make screenshot of the FSB settings and the EA settings with the different parameters?</p><p>FSB has one algorithm for exporting Expert Advisor. It is not possible the first time to export it correctly, but the second time to export it wrong.</p><p>I&#039;m 100 sure that the problem is that MT doesn&#039;t recover the EA settings correctly. I&#039;ve read in the <a href="http://www.stevehopwoodforex.com/phpBB3/index.php">http://www.stevehopwoodforex.com/phpBB3/index.php</a> forum that we have to never rely on that. </p><p>I can help you only if you reproduce a bug in FSB and post the exact steps for reproducing, the expert and the screenshots of all settings.</p><div class="quotebox"><blockquote><p>Step 3. I re-export the EA and &quot;refresh&quot; the MT4 (i.e. my old EA is still running/operating in the MT4)</p></blockquote></div><p>You should never refresh a working EA especially on a live account. The EA has tens of parameters in the MT memory out of the input parameters. MT will not recover them.</p><p>I change my experts only at a moment when there is no open positions. I do it by removing the EA from the chart and attaching it again and preferably on Saturday or on Sunday when the market is closed. And only if the FSB backtester doesn&#039;t show an open position at that time.</p>]]></description>
			<author><![CDATA[null@example.com (Popov)]]></author>
			<pubDate>Wed, 16 Sep 2015 19:25:18 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/31571/#p31571</guid>
		</item>
		<item>
			<title><![CDATA[Re: Error in maximum position allowed]]></title>
			<link>https://forexsb.com/forum/post/31568/#p31568</link>
			<description><![CDATA[<p>Hi Popov,</p><p>Yes, I&#039;ve chosen the option to over ride the old file.</p><p>I don&#039;t think you truly understood my earlier explanation.&nbsp; I am not referring to new set up when you choose the &quot;additional entry signal&quot; (this is working fine).&nbsp; I am referring to changes made to old EA (i.e. add new position or increase the number of additional position from 4 to 8 etc).</p><br /><p>Here are my steps, I hope it will make my explanation clearer.&nbsp; </p><p>Step 1. I am currently running my EA. (originally with No &quot;additional entry signal&quot;)<br />Step 2. Then I changed the same EA to add 4 lots for &quot;next same direction&quot;&nbsp; <br />Step 3. I re-export the EA and &quot;refresh&quot; the MT4 (i.e. my old EA is still running/operating in the MT4)</p><p>After refresh, when I opened my currently running EA and check the EA properties in the MT4, the&nbsp; maximum position allowed still remained as 20 (as before).</p><p>I hope you understand the above procedure and the problem I&#039;m encountering.</p><p>I know that if after I&#039;ve made the changes to the add position on next same signal, <br />and if I add in step 4 (i.e. re set up, then there won&#039;t be any problem).</p><p>1. I am currently running my EA. (originally with no &quot;additional entry signal&quot;)<br />2. Then I changed the same EA to add 4 lots for &quot;next same direction&quot;&nbsp; <br />3. I re-export the EA and &quot;refresh&quot; the MT4 (i.e. my old EA is still running/operating in the MT4)<br />4. Deleted the old EA currently running in the MT4 and re set up the EA again. (in the past, I don&#039;t need to do this step).</p>]]></description>
			<author><![CDATA[null@example.com (hannahis)]]></author>
			<pubDate>Wed, 16 Sep 2015 18:05:33 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/31568/#p31568</guid>
		</item>
	</channel>
</rss>
