<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forex Software — Error: Invalid order filling type]]></title>
	<link rel="self" href="https://forexsb.com/forum/feed/atom/topic/7505" />
	<updated>2023-08-21T03:24:37Z</updated>
	<generator>PunBB</generator>
	<id>https://forexsb.com/forum/topic/7505/error-invalid-order-filling-type/</id>
		<entry>
			<title type="html"><![CDATA[Re: Error: Invalid order filling type]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/76170/#p76170" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2023-08-21T03:24:37Z</updated>
			<id>https://forexsb.com/forum/post/76170/#p76170</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error: Invalid order filling type]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/76156/#p76156" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2023-08-19T15:01:45Z</updated>
			<id>https://forexsb.com/forum/post/76156/#p76156</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error: Invalid order filling type]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/76095/#p76095" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2023-08-16T05:09:50Z</updated>
			<id>https://forexsb.com/forum/post/76095/#p76095</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error: Invalid order filling type]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/76087/#p76087" />
			<content type="html"><![CDATA[<p>ENUM_ORDER_TYPE_FILLING ActionTrade::GetOrderFillingType()<br />&nbsp; {<br />&nbsp; &nbsp;return (ORDER_FILLING_IOC);<br />&nbsp; }</p><p>solved.</p>]]></content>
			<author>
				<name><![CDATA[Sanapianta]]></name>
				<uri>https://forexsb.com/forum/user/14680/</uri>
			</author>
			<updated>2023-08-15T14:57:29Z</updated>
			<id>https://forexsb.com/forum/post/76087/#p76087</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error: Invalid order filling type]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/76056/#p76056" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Sanapianta]]></name>
				<uri>https://forexsb.com/forum/user/14680/</uri>
			</author>
			<updated>2023-08-13T03:55:48Z</updated>
			<id>https://forexsb.com/forum/post/76056/#p76056</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error: Invalid order filling type]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/72038/#p72038" />
			<content type="html"><![CDATA[<p>it doesn&#039;t work on AMPGlobal</p>]]></content>
			<author>
				<name><![CDATA[jimboolak]]></name>
				<uri>https://forexsb.com/forum/user/13652/</uri>
			</author>
			<updated>2022-11-02T17:45:32Z</updated>
			<id>https://forexsb.com/forum/post/72038/#p72038</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error: Invalid order filling type]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/71556/#p71556" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Dreamer]]></name>
				<uri>https://forexsb.com/forum/user/14168/</uri>
			</author>
			<updated>2022-10-13T10:05:42Z</updated>
			<id>https://forexsb.com/forum/post/71556/#p71556</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error: Invalid order filling type]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/71549/#p71549" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2022-10-13T08:00:03Z</updated>
			<id>https://forexsb.com/forum/post/71549/#p71549</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error: Invalid order filling type]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/71548/#p71548" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Dreamer]]></name>
				<uri>https://forexsb.com/forum/user/14168/</uri>
			</author>
			<updated>2022-10-13T07:47:30Z</updated>
			<id>https://forexsb.com/forum/post/71548/#p71548</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error: Invalid order filling type]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/52331/#p52331" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2018-09-22T09:46:34Z</updated>
			<id>https://forexsb.com/forum/post/52331/#p52331</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error: Invalid order filling type]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/52328/#p52328" />
			<content type="html"><![CDATA[<p>My broker is Activtrade and correct order fill setting used and working is ORDER_FILLING_IOC..</p><p>Thanks</p>]]></content>
			<author>
				<name><![CDATA[nasser_bakria]]></name>
				<uri>https://forexsb.com/forum/user/9690/</uri>
			</author>
			<updated>2018-09-21T21:07:17Z</updated>
			<id>https://forexsb.com/forum/post/52328/#p52328</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error: Invalid order filling type]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/52280/#p52280" />
			<content type="html"><![CDATA[<p>Please tell us what is your broker and what was the proper Order fill settings.</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2018-09-19T06:49:20Z</updated>
			<id>https://forexsb.com/forum/post/52280/#p52280</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error: Invalid order filling type]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/52279/#p52279" />
			<content type="html"><![CDATA[<p>Thanks for your support , much appreciated !</p><p>That works now.</p>]]></content>
			<author>
				<name><![CDATA[nasser_bakria]]></name>
				<uri>https://forexsb.com/forum/user/9690/</uri>
			</author>
			<updated>2018-09-19T06:48:31Z</updated>
			<id>https://forexsb.com/forum/post/52279/#p52279</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error: Invalid order filling type]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/52277/#p52277" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2018-09-18T19:40:59Z</updated>
			<id>https://forexsb.com/forum/post/52277/#p52277</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error: Invalid order filling type]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/52271/#p52271" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[nasser_bakria]]></name>
				<uri>https://forexsb.com/forum/user/9690/</uri>
			</author>
			<updated>2018-09-18T16:48:24Z</updated>
			<id>https://forexsb.com/forum/post/52271/#p52271</id>
		</entry>
</feed>
