//+------------------------------------------------------------------+
//| Test_Pause.mq4 |
//| Copyright 2014, GoldenMoney |
//| http://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2014, GoldenMoney"
#property link "http://www.mql5.com"
#property version "1.00"
#property strict
#include <Pause.mqh>
datetime DatePauseArray[3]={D'2014.01.02 00:45',D'2014.01.03 10:00',D'2014.01.03 13:45'};
//+------------------------------------------------------------------+
//| Expert tick function |
//+------------------------------------------------------------------+
void OnTick()
{
//---
int static inc=0;
if(inc<3 && TimeCurrent()>=DatePauseArray[inc])
{
inc++;
DoPauseTest();
}
}
//+------------------------------------------------------------------+
Comments