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.
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.
Status changed from New to Fixed
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.