Positions are closed in MT4 when adjusting EA settings while positions are open

I had a whole bunch of positions open in MT4 and I went to adjust the Fixed $ Amount amount setting on all of my strategies in a particular portfolio to balance my risk and all of my positions were closed. Please fix.
Attachments
  • Votes +2
  • Project StrategyQuant X
  • Type Bug
  • Status Refused
  • Priority Urgent

History

JK
#1

Insanity82007

29.07.2020 07:32

Task created

JK
#2

Insanity82007

29.07.2020 15:39
Voted for this task.
TB
#3

Tomas Brynda

30.07.2020 16:51

Status changed from New to Waiting for information

Hi,

in my case only pending orders are closed when I change EA params. It is most probably because entry conditions are true in that moment.


Did it close positions or just pending orders in your case?


Best regards,

Tomas 


JK
#4

Insanity82007

30.07.2020 23:34
It closed all open positions. Cheers
JK
#5

Insanity82007

30.07.2020 23:34
I'll attach my MQL files when I get home later tonight 
JK
#6

Insanity82007

31.07.2020 16:39

Attachment MQL4.rar added

MQL4.rar
(998.97 KiB)
Files attached
TB
#7

Tomas Brynda

05.08.2020 10:30
Hi,

I can't simulate this issue. I tested it on a demo account and when I change parameters or even replace the EA, the open position is left intact.

In the Strategy log, I can see this info:

2020.08.05 10:25:33.432 EURUSDH1 WFM1000 5.6.181 - WF R6 35P EURUSD,H1: - SQ LOG 2020.08.05 10:25 Order with these parameters already exists and duplicate trades are not allowed. Canceling order...


So the strategy knows about the open position and does not open another one.

It should close the open position only if it uses EnterReverseAtMarket and the input conditions are true.


Can you record a video showing the behaviour in your platform?


Best regards,

Tomas


AT
#8

AngelTalavera

11.08.2020 15:19
Voted for this task.
TB
#9

Tomas Brynda

08.10.2020 07:52
Another related task https://roadmap.strategyquant.com/tasks/sq4_6744
TB
#10

Tomas Brynda

25.05.2021 21:05

Status changed from Waiting for information to Refused


Votes: +2

Drop files to upload

or

choose files

Max size: 5MB

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

...
Wait please