<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forex Software — Trade context is busy]]></title>
	<link rel="self" href="https://forexsb.com/forum/feed/atom/topic/8646/" />
	<updated>2021-05-24T21:36:58Z</updated>
	<generator>PunBB</generator>
	<id>https://forexsb.com/forum/topic/8646/trade-context-is-busy/</id>
		<entry>
			<title type="html"><![CDATA[Re: Trade context is busy]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/65151/#p65151" />
			<content type="html"><![CDATA[<p>hello Lance,</p><p>the issue was only on the 1m Timeframe it tried to open too much trades the same time where it skipped some trades.<br />in the config from the portfolio file, you can change the retry cound and retry wait<br />retry wait = when an order errors out it waits 100ms for the next try. 4 says it retries 4 times befor it gives up.</p><p>#define TRADE_RETRY_COUNT 4<br />#define TRADE_RETRY_WAIT&nbsp; 100<br />#define OP_FLAT&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-1</p><br /><p>hope this is clear it helped with my 1m setup with a couple of 1000&#039;s of ea&#039;s</p>]]></content>
			<author>
				<name><![CDATA[J02wQ5tHnWr]]></name>
				<uri>https://forexsb.com/forum/user/11901/</uri>
			</author>
			<updated>2021-05-24T21:36:58Z</updated>
			<id>https://forexsb.com/forum/post/65151/#p65151</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Trade context is busy]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/64910/#p64910" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>hannahis wrote:</cite><blockquote><p>MT4 Broker has about 200 to 400 max positions allowed to open, so even if you have thousands of EA, some can&#039;t open position because it hit the limit and this would affect the real performance result of the EA</p></blockquote></div><p>Yes I know that. I am asking what is the solution to solve the &quot;Trade context is busy&quot; error?</p>]]></content>
			<author>
				<name><![CDATA[lance298]]></name>
				<uri>https://forexsb.com/forum/user/13160/</uri>
			</author>
			<updated>2021-05-02T21:12:15Z</updated>
			<id>https://forexsb.com/forum/post/64910/#p64910</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Trade context is busy]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/64793/#p64793" />
			<content type="html"><![CDATA[<p>MT4 Broker has about 200 to 400 max positions allowed to open, so even if you have thousands of EA, some can&#039;t open position because it hit the limit and this would affect the real performance result of the EA</p>]]></content>
			<author>
				<name><![CDATA[hannahis]]></name>
				<uri>https://forexsb.com/forum/user/2809/</uri>
			</author>
			<updated>2021-04-22T11:23:42Z</updated>
			<id>https://forexsb.com/forum/post/64793/#p64793</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Trade context is busy]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/64792/#p64792" />
			<content type="html"><![CDATA[<p>How did you solve the &quot;Trade context is busy&quot; error?</p>]]></content>
			<author>
				<name><![CDATA[lance298]]></name>
				<uri>https://forexsb.com/forum/user/13160/</uri>
			</author>
			<updated>2021-04-22T10:05:07Z</updated>
			<id>https://forexsb.com/forum/post/64792/#p64792</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Trade context is busy]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/63454/#p63454" />
			<content type="html"><![CDATA[<p>Ok 4get my question, this fixed the issue <img src="https://forexsb.com/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[J02wQ5tHnWr]]></name>
				<uri>https://forexsb.com/forum/user/11901/</uri>
			</author>
			<updated>2020-12-22T00:32:50Z</updated>
			<id>https://forexsb.com/forum/post/63454/#p63454</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Trade context is busy]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/63451/#p63451" />
			<content type="html"><![CDATA[<p>Ok i&#039;m running around 2500 strategy&#039;s on a MT4 setup<br />with around 25 portfolio files.<br />All is running on the 1h and 4h timeframe.</p><p>I see that each full hour the ea closes , opens new and modify orders.<br />All happens in the first 15 seconds of the hour. <br />This results in messages; [Trade context is busy]</p><p>Does anyone had this same issue and can i fix that by changing <br />#define TRADE_RETRY_WAIT&nbsp; 100</p><p>into say 15000&nbsp; (for retry wait 15 seconds)&nbsp; <br />and then set this for each portfolio file little higher so first portfolio file 20000 next 25000 , third<br />30000 etc.&nbsp; </p><p>thanks!</p>]]></content>
			<author>
				<name><![CDATA[J02wQ5tHnWr]]></name>
				<uri>https://forexsb.com/forum/user/11901/</uri>
			</author>
			<updated>2020-12-21T20:28:06Z</updated>
			<id>https://forexsb.com/forum/post/63451/#p63451</id>
		</entry>
</feed>
