33 lines
1.8 KiB
MQL5
33 lines
1.8 KiB
MQL5
|
//+------------------------------------------------------------------+
|
||
|
//| Zucarato_Time_Operations.mqh |
|
||
|
//| Eduardo Zucarato |
|
||
|
//| zucarato@gmail.com |
|
||
|
//| V 1.0 |
|
||
|
//+------------------------------------------------------------------+
|
||
|
//| |
|
||
|
//|DESCRIPTION |
|
||
|
//| |
|
||
|
//| This header intends to bear custom operatins with time which |
|
||
|
//| are not built in mql5 native library |
|
||
|
//| |
|
||
|
//+------------------------------------------------------------------+
|
||
|
//| |
|
||
|
//|LIST OF FUNCTIONS FOR EXTERNAL CALL |
|
||
|
//| |
|
||
|
//| ---------------------------------------------------------------+
|
||
|
//| |
|
||
|
//| bool is_time_past_p(datetime test_time) |
|
||
|
//| |
|
||
|
//| Is test_time past, concerning server time retrieved from |
|
||
|
//| current symbol last tick? |
|
||
|
//| |
|
||
|
//+------------------------------------------------------------------+
|
||
|
|
||
|
bool is_time_past_p(datetime test_time)
|
||
|
{
|
||
|
//---
|
||
|
return(TimeCurrent()<test_time);
|
||
|
}
|
||
|
|
||
|
|