Exit on Friday bug (end of the day)

Hello,

I've found an issue with exit on Friday.
EA can not exit by themselves at 22:00, however, they did it fine before (strategies generated on previous builds)


I found that when I connecting to my trading computer and opening mt4 software, it begins close all positions which should be already closed.
For example
Positions should be closed at 22:00.  I am monitoring them with a mobile app. At 22:01 positions are still open.
I've decided to connect to my trading pc at 22:08 and all positions closing at the same time.
I have the following errors, which I attach here 
(it is 23:08 on screenshot as there is 1-hour difference with between mt4 terminal time and computer time)

Attachments
journal eurjpy.jpg
(191.10 KiB)
nzdchf.jpg
(127.81 KiB)
eurjpy.jpg
(70.43 KiB)
audcad.jpg
(109.83 KiB)
  • Votes +1
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed
  • Priority Normal

History

VO
#1

GRoundofInferno

16.01.2021 10:33

Task created

g
#2

geektrader

18.01.2021 06:32
Voted for this task.
VO
#3

GRoundofInferno

23.01.2021 11:44
it is weird but this Friday it had proper exits. 

will monitor this issue on next Friday as well

h
#4

hankeys

24.01.2021 10:36
i am trading SQX strats for more than a year, every strategy has exit friday and i have never problem with EOF


i am running 700+ strats on my demo pools, and every strategy exiting friday without problem


TB
#5

Tomas Brynda

01.02.2021 15:55

Status changed from New to Waiting for information

Hi,

I can see on the screenshots that multiple strategies try to close the same order. That should not happen.

The only possible cause for this is that you don't have unique magic numbers in your EA settings for each strategy. Is that right?


Best regards,

Tomas

VO
#6

GRoundofInferno

02.02.2021 20:06

Subject changed from Exit on Friday bug to Exit on Friday bug (end of the day)

Dear Tomas,

thank you for your reply.

As far as I know different magic numbers must be within one symbol. So they are.

So if we have 12345 for EUR USD strategy and 12345 for EURJPY strategy there should be no conflict.


Last week It didn't have any issues with closing on Friday BUT....

I've added a bunch of strategies (EURUSD ) which should close at the end of the each day at 21:45.Other strategies should close on Friday. One of the open strategies closed ok at Tuesday and pulled every other strategies even though their exit rules stop-loss/take-profit or exit on FRIDAY.


It is very weird behaviour and it is no a magic number reason.

Once again one eurusd strategy pulled and closed all other strategies which should not be closed.

I have noticed sometimes similar behaviour where you relaunching mt4 terminals with open EA and after a fresh start EA just closing all positions. 


Even all pending orders were deleted. Empty terminal.

If you need teamviewer session I will be glad to help you.

h
#7

hankeys

03.02.2021 06:59
unique magicnumber must have each strategy, not only each symbol
VO
#8

GRoundofInferno

03.02.2021 08:03
Dear Tomas and hankeys,

Thank you for your help. 

My bad. I had a mess with magic numbers as I thought they could be similar on different symbols. 

TB
#9

Tomas Brynda

03.02.2021 08:22

Status changed from Waiting for information to Fixed

Ok, I'm closing this task.

If you need anything else, just leave a comment or create a new task.


Best regards,

Tomas


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