<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forex Software — Manage order send - unknown result]]></title>
	<link rel="self" href="https://forexsb.com/forum/feed/atom/topic/9581" />
	<updated>2023-10-05T07:14:35Z</updated>
	<generator>PunBB</generator>
	<id>https://forexsb.com/forum/topic/9581/manage-order-send-unknown-result/</id>
		<entry>
			<title type="html"><![CDATA[Re: Manage order send - unknown result]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/76883/#p76883" />
			<content type="html"><![CDATA[<p>The problem is that there is no way to check what Filling Mode the broker accepts.</p><p>A workaround is to check the methods one by one until it finds the correct one. It is done only during the first order the expert sends.</p><p>Note: FSB Pro currently works for Nettings accounts only.&nbsp; Please check your MT5 account type.<br />We will add &quot;hedging&quot; accounts support later.</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2023-10-05T07:14:35Z</updated>
			<id>https://forexsb.com/forum/post/76883/#p76883</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Manage order send - unknown result]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/76830/#p76830" />
			<content type="html"><![CDATA[<p>Hey, I have couple of ea&#039;s generated by fsb pro, and I see a lot of problems in expert console. Symbol filling is ORDER_FILLING_FOK, but in code I dont know why is loop:<br />if(check.retcode == TRADE_RETCODE_INVALID_FILL)<br />&nbsp; &nbsp; &nbsp;{<br />&nbsp; &nbsp; &nbsp; switch (orderFillingType)<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;case ORDER_FILLING_FOK:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Print(&quot;Filling mode changed to: ORDER_FILLING_IOC&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; orderFillingType = ORDER_FILLING_IOC;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;case ORDER_FILLING_IOC:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Print(&quot;Filling mode changed to: ORDER_FILLING_RETURN&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; orderFillingType = ORDER_FILLING_RETURN;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;case ORDER_FILLING_RETURN:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Print(&quot;Filling mode changed to: ORDER_FILLING_BOC&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; orderFillingType = ORDER_FILLING_BOC;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />&nbsp; &nbsp; &nbsp; &nbsp; }</p><p>so my filing is fok, ea&#039;s fillink should be fok, but its changed on start, and then i see a lot of issues in console, also if i will disable this check there are another problems, so I dont really know this strategy works fine or no, also here is description from fsb:<br /><em>Entry signal in the direction of the present position:</em></p><p><em>Add to a winning position but not to a losing one. If the position is at a loss, cancel the additional entry order. Do not exceed the maximum allowed number of lots to open. <br />Entry signal in the opposite direction:</em></p><p><em>No modification of the present position is allowed. Cancel any additional orders which are in the opposite direction. </em></p><p>so from the logs i see ea tryies to close position and open new one, but it is not allowed by desc, so it is only a try which will always fail or something wrong with ea?</p>]]></content>
			<author>
				<name><![CDATA[Vorgan]]></name>
				<uri>https://forexsb.com/forum/user/14736/</uri>
			</author>
			<updated>2023-10-03T06:14:10Z</updated>
			<id>https://forexsb.com/forum/post/76830/#p76830</id>
		</entry>
</feed>
