[B135] MT4 - Strategy sets '1970.01.01 00:00:00' as a CloseTime.

Strategy sets '1970.01.01 00:00:00' as a CloseTime.
'1970.01.01 00:00:00' never comes again.


I can see 'Open Time: 2022.03.29 16:22:20', so it seems the server time is OK.


This is not a backtest result.
It happens on the real account.

Attachments
Strategy 1039152.sqx
(1.28 MiB)
MetaTrader4.png
(116.10 KiB)
  • Votes +1
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed
  • Priority Normal

History

HS
#1

NAPA

29.03.2022 15:35

Task created

E
#2

Emmanuel

29.03.2022 16:09
Voted for this task.
TT
#3

Tamas

04.04.2022 08:28

Subject changed from [B135] Strategy sets '1970.01.01 00:00:00' as a CloseTime. to [B135] MT4 - Strategy sets '1970.01.01 00:00:00' as a CloseTime.

g
#4

Lee Guan Chuan

27.09.2022 08:38

Status changed from New to Fixed

Hi NAPA,


There are 2 lines which print the order information. 

Ticket: 1234567 - Information behind

Ticket: 1234567 (continue) - Information behind

1234567 is the order ticket number.


The CloseTime is not set by the strategy itself. The strategy only retrieves the CloseTime value from the order and displays it in the message. This CloseTime is controlled by MT4 itself. When the order is running and not closed yet, we will always get '1970.01.01 00:00:00' as the date.


Thank you.


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