SQX 115: asymetric strategy exported to MQL5 cannot close trades.

SQX 115: asymetric strategy exported to MQL5 cannot close trades.

2018.12.14 19:58:06.176 Core 001 2018.12.12 19:00:00   Alert: The Buy order request could not be completed -error:4756
2018.12.14 19:58:06.176 Core 001 2018.12.12 20:00:00   failed market buy 0.10 EURUSD, close #2 sell 0.10 EURUSD 1.15990 [Unsupported filling mode]




Tested changing:
const ENUM_ORDER_TYPE_FILLING preferredFillingType = 
ORDER_FILLING_FOK;

ORDER_FILLING_IOC;

ORDER_FILLING_RETURN;

Non works - same error.



Broker - ICMARKETS, test pair EURUSD.
tested on live, demo and backtest.

Attachments
Strategy 035.sqx
(724.52 KiB)
Screen Shot 2018-12-14 at 195829.png
(155.94 KiB)
Strategy 035.mq5
(178.05 KiB)
  • Votes +1
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed
  • Priority Normal

History

G
#1

Globegains

14.12.2018 19:05

Task created

G
#2

Globegains

14.12.2018 19:10
Voted for this task.
TB
#3

Tomas Brynda

18.12.2018 14:19

Status changed from New to Fixed

For some brokers, there are issues with the filling type as we are unable to choose the right one.

I added a variable "forceFillingType" for such cases which forces the use of preferredFillingType if set to true.

It will be available in the upcoming 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