<?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: Invalid order filling type]]></title>
		<link>https://forexsb.com/forum/topic/7505/error-invalid-order-filling-type/</link>
		<atom:link href="https://forexsb.com/forum/feed/rss/topic/7505" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Error: Invalid order filling type.]]></description>
		<lastBuildDate>Mon, 21 Aug 2023 03:24:37 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Error: Invalid order filling type]]></title>
			<link>https://forexsb.com/forum/post/76170/#p76170</link>
			<description><![CDATA[<p>I updated the MQL code of FSB Pro with this fix.</p><p>Please test it in MT5 and report if it works fine for you.</p><p>Trade Safe!</p>]]></description>
			<author><![CDATA[null@example.com (Popov)]]></author>
			<pubDate>Mon, 21 Aug 2023 03:24:37 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/76170/#p76170</guid>
		</item>
		<item>
			<title><![CDATA[Re: Error: Invalid order filling type]]></title>
			<link>https://forexsb.com/forum/post/76156/#p76156</link>
			<description><![CDATA[<p>Please find the function: <strong>ActionTrade::GetOrderFillingType()</strong></p><p>Replace it with:<br /></p><div class="codebox"><pre><code>    ENUM_ORDER_TYPE_FILLING ActionTrade::GetOrderFillingType()
     {
      return ((ENUM_ORDER_TYPE_FILLING)OrderGetInteger(ORDER_TYPE_FILLING));
     }</code></pre></div><p>If it works,<br />I&#039;ll make it permanent in the FSB Pro and EA Studio&#039;s MQL code.</p>]]></description>
			<author><![CDATA[null@example.com (Popov)]]></author>
			<pubDate>Sat, 19 Aug 2023 15:01:45 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/76156/#p76156</guid>
		</item>
		<item>
			<title><![CDATA[Re: Error: Invalid order filling type]]></title>
			<link>https://forexsb.com/forum/post/76095/#p76095</link>
			<description><![CDATA[<p>Hello Sanapinta,</p><p>I&#039;m glad you solve the problem.<br />Unfortunately, you have to make this change in any expert you export from FSB Pro for your broker.</p><p>I&#039;ll see how I can make a permanent solution in the FSB Pro&#039;s MQL code.</p>]]></description>
			<author><![CDATA[null@example.com (Popov)]]></author>
			<pubDate>Wed, 16 Aug 2023 05:09:50 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/76095/#p76095</guid>
		</item>
		<item>
			<title><![CDATA[Re: Error: Invalid order filling type]]></title>
			<link>https://forexsb.com/forum/post/76087/#p76087</link>
			<description><![CDATA[<p>ENUM_ORDER_TYPE_FILLING ActionTrade::GetOrderFillingType()<br />&nbsp; {<br />&nbsp; &nbsp;return (ORDER_FILLING_IOC);<br />&nbsp; }</p><p>solved.</p>]]></description>
			<author><![CDATA[null@example.com (Sanapianta)]]></author>
			<pubDate>Tue, 15 Aug 2023 14:57:29 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/76087/#p76087</guid>
		</item>
		<item>
			<title><![CDATA[Re: Error: Invalid order filling type]]></title>
			<link>https://forexsb.com/forum/post/76056/#p76056</link>
			<description><![CDATA[<p>Hello, I am trying to let the Robot run on a 10k FTMO challenge, Lot size o.1, max position 0.1.<br />I am facing the same issue on MT5, has been reported by Popov to modify:</p><p>ENUM_ORDER_TYPE_FILLING GetOrderFillingType()<br />&nbsp; {<br />&nbsp; &nbsp;const int oftIndex=(int) SymbolInfoInteger(_Symbol,SYMBOL_FILLING_MODE);<br />&nbsp; &nbsp;const ENUM_ORDER_TYPE_FILLING fillType=(ENUM_ORDER_TYPE_FILLING)(oftIndex&gt;0 ? oftIndex-1 : oftIndex);</p><p>&nbsp; &nbsp;return (fillType);<br />&nbsp; }</p><p>unfortunately i have on my Robot:</p><p>ENUM_ORDER_TYPE_FILLING ActionTrade::GetOrderFillingType()<br />&nbsp; &nbsp;&nbsp; {<br />&nbsp; &nbsp;&nbsp; &nbsp;const int oftIndex=(int) SymbolInfoInteger(_Symbol,SYMBOL_FILLING_MODE);<br />&nbsp; &nbsp;&nbsp; &nbsp;const ENUM_ORDER_TYPE_FILLING fillType=(ENUM_ORDER_TYPE_FILLING)(oftIndex&gt;0 ? oftIndex-1 : oftIndex);</p><p>&nbsp; &nbsp; &nbsp; return (fillType);<br />&nbsp; &nbsp;&nbsp; }</p><p>which is different. </p><p>ENUM_ORDER_TYPE_FILLING GetOrderFillingType()</p><p>ENUM_ORDER_TYPE_FILLING ActionTrade::GetOrderFillingType()</p><p>Does anyone has been able to solve the problem? Can someone help me please? As per today i ve purchased a Robot that is not running on my platform</p><p>Thank you so much</p>]]></description>
			<author><![CDATA[null@example.com (Sanapianta)]]></author>
			<pubDate>Sun, 13 Aug 2023 03:55:48 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/76056/#p76056</guid>
		</item>
		<item>
			<title><![CDATA[Re: Error: Invalid order filling type]]></title>
			<link>https://forexsb.com/forum/post/72038/#p72038</link>
			<description><![CDATA[<p>it doesn&#039;t work on AMPGlobal</p>]]></description>
			<author><![CDATA[null@example.com (jimboolak)]]></author>
			<pubDate>Wed, 02 Nov 2022 17:45:32 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/72038/#p72038</guid>
		</item>
		<item>
			<title><![CDATA[Re: Error: Invalid order filling type]]></title>
			<link>https://forexsb.com/forum/post/71556/#p71556</link>
			<description><![CDATA[<p>Thank you for your very quick reply.</p><p>The journal log shows this error dozens of time and no trade is opened in the tester.</p><p>My broker is : https://the5ers.com/</p>]]></description>
			<author><![CDATA[null@example.com (Dreamer)]]></author>
			<pubDate>Thu, 13 Oct 2022 10:05:42 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/71556/#p71556</guid>
		</item>
		<item>
			<title><![CDATA[Re: Error: Invalid order filling type]]></title>
			<link>https://forexsb.com/forum/post/71549/#p71549</link>
			<description><![CDATA[<p>It should work automatically. </p><p>The expert sends an order with a default Order filling Type. If the broker returns an error, the expert changes the option until it finds the correct one.</p><p>What is your broker?</p><p>Please check on its website what order filling type it uses.</p>]]></description>
			<author><![CDATA[null@example.com (Popov)]]></author>
			<pubDate>Thu, 13 Oct 2022 08:00:03 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/71549/#p71549</guid>
		</item>
		<item>
			<title><![CDATA[Re: Error: Invalid order filling type]]></title>
			<link>https://forexsb.com/forum/post/71548/#p71548</link>
			<description><![CDATA[<p>Is there any update to the subject &quot;Error: Invalid order filling type &quot; ?</p><p>I am trying the FSB demo and I am very impressed by the speed of it and its wonderful interface, but since I always have this error on any generated EA and since I intend to use the generated EAs for forward testing on MT5, I will not buy a license unless this problem is solved. FSB version 4 is useless for me if I can not test and trade the generated EAs on MT5.</p><p>With version 4.0.0 of FSB, the GetOrderFillingType() function is (notice ActionTrade) :</p><p>&nbsp; &nbsp; ENUM_ORDER_TYPE_FILLING ActionTrade::GetOrderFillingType()<br />&nbsp; &nbsp;&nbsp; {<br />&nbsp; &nbsp;&nbsp; &nbsp;const int oftIndex=(int) SymbolInfoInteger(_Symbol,SYMBOL_FILLING_MODE);<br />&nbsp; &nbsp;&nbsp; &nbsp;const ENUM_ORDER_TYPE_FILLING fillType=(ENUM_ORDER_TYPE_FILLING)(oftIndex&gt;0 ? oftIndex-1 : oftIndex);</p><p>&nbsp; &nbsp; &nbsp; return (fillType);<br />&nbsp; &nbsp;&nbsp; }</p><p>See attached EA file if needed. This EA seems very simple with standard MT5 indicators.</p><p>Thank you for your help.</p>]]></description>
			<author><![CDATA[null@example.com (Dreamer)]]></author>
			<pubDate>Thu, 13 Oct 2022 07:47:30 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/71548/#p71548</guid>
		</item>
		<item>
			<title><![CDATA[Re: Error: Invalid order filling type]]></title>
			<link>https://forexsb.com/forum/post/52331/#p52331</link>
			<description><![CDATA[<p>I&#039;ll try to make it fixing the filing type automatically. Other option would be to show a message: &quot;Please call MetaQuotes to fix their order filling type&quot;. It is possible after receiving 458832636495943 calls to consider to fix the problem within the next few years.</p>]]></description>
			<author><![CDATA[null@example.com (Popov)]]></author>
			<pubDate>Sat, 22 Sep 2018 09:46:34 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/52331/#p52331</guid>
		</item>
		<item>
			<title><![CDATA[Re: Error: Invalid order filling type]]></title>
			<link>https://forexsb.com/forum/post/52328/#p52328</link>
			<description><![CDATA[<p>My broker is Activtrade and correct order fill setting used and working is ORDER_FILLING_IOC..</p><p>Thanks</p>]]></description>
			<author><![CDATA[null@example.com (nasser_bakria)]]></author>
			<pubDate>Fri, 21 Sep 2018 21:07:17 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/52328/#p52328</guid>
		</item>
		<item>
			<title><![CDATA[Re: Error: Invalid order filling type]]></title>
			<link>https://forexsb.com/forum/post/52280/#p52280</link>
			<description><![CDATA[<p>Please tell us what is your broker and what was the proper Order fill settings.</p>]]></description>
			<author><![CDATA[null@example.com (Popov)]]></author>
			<pubDate>Wed, 19 Sep 2018 06:49:20 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/52280/#p52280</guid>
		</item>
		<item>
			<title><![CDATA[Re: Error: Invalid order filling type]]></title>
			<link>https://forexsb.com/forum/post/52279/#p52279</link>
			<description><![CDATA[<p>Thanks for your support , much appreciated !</p><p>That works now.</p>]]></description>
			<author><![CDATA[null@example.com (nasser_bakria)]]></author>
			<pubDate>Wed, 19 Sep 2018 06:48:31 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/52279/#p52279</guid>
		</item>
		<item>
			<title><![CDATA[Re: Error: Invalid order filling type]]></title>
			<link>https://forexsb.com/forum/post/52277/#p52277</link>
			<description><![CDATA[<p>MT5 send a param called Order Filling Type to the server when sending orders. The weird part hers is that every broker has only one filling type, which must be possible to set this param internally, but not. The other quirk is that the method of checking the exact filling type doesn&#039;t work in MT.</p><p>The EA Studio experts tries to detect the correct method, but the different brokers return different errors and we cannot make an universal solution.</p><p>A workaround is to set the filling type manually.</p><p>Find the GetOrderFillingType function at the end of the expert.<br />Change it from:</p><div class="codebox"><pre><code>ENUM_ORDER_TYPE_FILLING GetOrderFillingType()
  {
   const int oftIndex=(int) SymbolInfoInteger(_Symbol,SYMBOL_FILLING_MODE);
   const ENUM_ORDER_TYPE_FILLING fillType=(ENUM_ORDER_TYPE_FILLING)(oftIndex&gt;0 ? oftIndex-1 : oftIndex);

   return (fillType);
  }</code></pre></div><p>to:</p><div class="codebox"><pre><code>ENUM_ORDER_TYPE_FILLING GetOrderFillingType()
  {
   return (ORDER_FILLING_IOC);
  }</code></pre></div><p>If it doesn&#039;t work, try with: ORDER_FILLING_FOK or ORDER_FILLING_RETURN</p>]]></description>
			<author><![CDATA[null@example.com (Popov)]]></author>
			<pubDate>Tue, 18 Sep 2018 19:40:59 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/52277/#p52277</guid>
		</item>
		<item>
			<title><![CDATA[Re: Error: Invalid order filling type]]></title>
			<link>https://forexsb.com/forum/post/52271/#p52271</link>
			<description><![CDATA[<p>Posting the full error message : </p><p>Error: ActionTrade::ManageOrderSend(): OrderCheck(): Invalid order filling type</p><p>Again it&#039;s only happeny when testin an EA with mt5 ..</p><p>Any help would be appreciated !</p><p>Thanks</p>]]></description>
			<author><![CDATA[null@example.com (nasser_bakria)]]></author>
			<pubDate>Tue, 18 Sep 2018 16:48:24 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/52271/#p52271</guid>
		</item>
	</channel>
</rss>
