Download MetaTrader 5

How to calculate LondonTime/ServerTime in Strategy Tester?

To add comments, please log in or register
Daniel Stein
26361
Daniel Stein  

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
14785
whroeder1  
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