EA bug in MT5

Dear SQ team 

I find some logic in EA will be a issue in MT5. It will cause EA can't set SL/TP well.
And I also write to Metaquotes they answer me
"EA vendors have to make sure that position modification is sent only when new position is opened in terminal Or send order with specified SL/TP, not order and then modify SL/TP"
Can you help me to check the reason, thank you.

Attachments
Strategy 218672.zip
(407.91 KiB)
-20200214 time1733.txt
(40.62 KiB)
EU H2- 218672.zip
(31.84 KiB)
  • Votes +3
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed
  • Priority Normal

History

SC
#1

fxchess

25.02.2020 10:54

Task created

VO
#2

GRoundofInferno

29.02.2020 03:29
Voted for this task.
VO
#3

GRoundofInferno

29.02.2020 03:30
I think I have the same problems. Already report it to the support
o
#4

鄺世英

06.03.2020 04:46
Voted for this task.
o
#5

鄺世英

06.03.2020 04:48
It's a big problem for us . 

Could SQ team help to fix it, thanks.

m
#6

mabi

11.03.2020 06:46

Attachment 1.jpg added

Funny that this was discovered first now. I just launched last night my first MT5 strategies and the first one that placed an order was without stoploss or target.  So what is the quick fix for this ? Manually enter the stoploss and target in chart file i suppose . Funny thought that some strategies place stoploss and target but some does not. Can this be because if they originally were made  in MT4 but retested  using MT5 Hedge  engine and saved ? Maybe this is the reason otherwise somone must have discovered this earlier.
m
#7

mabi

11.03.2020 06:46
Voted for this task.
m
#8

mabi

12.03.2020 11:03

Attachment 2020-03-12_5-25-55.jpg added

Hi . This was my first MT5 installation. Now i deleted all orders without stoploss etc.  The problem never came back so i simply beleive that this problem is connection issue or that the chart it is loaded on have not downloaded enought bars actually when it placed an order the range for stoploss was not on chart so calulation got worng.. well Since then i have no more any issue with this.
m
#9

mabi

17.03.2020 12:09
I have it again many o stop and target again with placed trades on MT5 .. Probably connection problem or that it hang. This we cant have risking to have strategies trading without stops and targets.


TB
#10

Tomas Brynda

19.03.2020 16:35

Status changed from New to In progress

Hi mabi,

we have also encountered the problem you describe here.


I have modified the MQL code so that SL and PT are set when creating the order. We will be testing this new approach and hopefully the problem will be solved in the upcoming build.


Best regards,

Tomas

TB
#11

Tomas Brynda

24.03.2020 16:14

Status changed from In progress to Fixed


Votes: +3

Drop files to upload

or

choose files

Max size: 5MB

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

...
Wait please