Page 1 of 1

Time frame issues

Posted: Tue May 10, 2022 11:38 am
by ekke
Hi Every one
I am using DukasCopy data for my backtesting
After downloading DukasCopy data I export it into MT4 at GMT(0)
My broker (GlobalPrime) runs currently at GMT (+3)
So my backtesting is done in GMT (0) if I understand this correctly.
I believe that MT4 becomes the server for the historic data
If I compare live data from GP with the backtest data used by my EA
the candles have exactly the same time labels. I have no explanation for this.
The backtest show the same results with MT4 either on or off line.
I have attached a pic to illustrate this.
My EA is supposed to drop all trades 5 mins before midnight to get around swaps.
Has anybody an explanation for this. What do I miss here?

Thank you
ekke

Re: Time frame issues

Posted: Mon May 23, 2022 1:14 am
by tickstory
Hi Ekke,

It's not clear exactly what the issue is - is it that that your EA is not dropping trades at the nominated time? Did you try trace through the code in MT4 Strategy Tester's visual mode?

Cheers.

Re: Time frame issues

Posted: Tue May 24, 2022 3:42 pm
by ekke
Sorry if I did not make myself clear. The issue is that likewise candles have the same time in both pics.
That should not be if the test time frame is GMT (0) and the life time frame is GMT(+3)
The top pic is the one in test mode
The bottom pic is GP live

thanks for any enlightenment