Download MetaTrader 5

Date/Time storage

To add comments, please log in or register
Install apps from the library right in MetaTrader. It is easy!
Antoine
92
Antoine 2010.11.24 18:13 

Hello,

I would like to know how is it possible to do a condition on a date: for example if (considering that 2 datetime values are store in  variables call Date1Val and Date2Val ):

if (Date1Val < DateVal2 - 5Min || Date1Val > Date2Val + 5Min) ...

My problem is concerning the fact to add or to minus the 5 minutes....

Somebody could help me please....

 

Tahnk you 

Antoine
92
Antoine 2010.11.24 18:58  

I resolve my problem.... It was easy in fact.. I had only to add the number of seconds I wish for.

To add comments, please log in or register