Download MetaTrader 5

How to calculate LondonTime/ServerTime in Strategy Tester?

To add comments, please log in or register
Have you published a program in the Market? Place it in your blog as well - the widget will help!
Daniel Stein
Daniel Stein 2014.04.13 13:57 

Hi guys,

is there any possibilty to calculate the difference between servertime and london time in backtest operating mode???

In real/demo trading environment this is more or less easy but all of these functions are useless in the strategy tester

because the only time you get is the simulated TimeCurrent() value and you can't compare it to any other value.

Any ideas how to solve this problem ?

whroeder1 2014.04.13 15:32  
The difference is a constant +/- London's DST (BST) and broker's DST (if any.) You'll have to write some code for each DST like I did for NY DST.
To add comments, please log in or register