Unsupported filling mode while closing a postion - Error 4756

My robot fails to close positions at market and the error shown in image 1 appears. 
It does not recognize the filling method although I have set the preferredFillingType as ORDER_FILLING_FOK. Checking through the generated mql5 code I saw that in the closePosition function the setting request mrequest.type_filling does not appear. I manually added the line (row 1634)

mrequest.type_filling = forceFillingType? PreferredFillingType: GetFilling (correctedSymbol, preferredFillingType);



and the error no longer appears.
I think the problem is that in the specified function does not appear the correct request for the type of execution of the order.


If I'm right, can you solve it? Thank you


Attached: 
screenshots of logs (with and without error) and mql5 code (without and with correction); 
log files with and without error; 
the generated mql5 code file; 
the sqx file that generated the strategy.

Attachments
Strategy 0508892.sqx
(67.97 KiB)
SQ_Error_1.jpg
(254.10 KiB)
SQ_Error_4.jpg
(137.18 KiB)
20190111_With Error.log
(27.88 KiB)
20190111_without error.log
(20.02 KiB)
SQ_Error_3.jpg
(262.09 KiB)
SQ_Error_2.jpg
(118.32 KiB)
Strategy_10011.mq5
(188.52 KiB)
  • Votes +1
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed
  • Priority Normal

History

n
#1

nundes

12.01.2019 00:00

Task created

G
#2

Globegains

29.01.2019 18:46
Voted for this task.
TB
#3

Tomas Brynda

13.02.2019 15:42

Status changed from New to Fixed

Thank you for your suggestion. It will be added in next release

Votes: +1

Drop files to upload

or

choose files

Max size: 5MB

Not allowed: exe, msi, application, reg, php, js, htaccess, htpasswd, gitignore

...
Wait please