29 lines
1.2 KiB
MQL5
29 lines
1.2 KiB
MQL5
//+------------------------------------------------------------------+
|
|
//| test-v1.mq5 |
|
|
//| Thorsten Fischer Copyright 2019-2020 |
|
|
//| https://mql5.tfsystem.de |
|
|
//+------------------------------------------------------------------+
|
|
#property service
|
|
#property copyright "Thorsten Fischer Copyright 2019-2020"
|
|
#property link "https://mql5.tfsystem.de"
|
|
#property version "1.00"
|
|
#property strict
|
|
//--- input parameters
|
|
//input int d_Exit=false;
|
|
//+------------------------------------------------------------------+
|
|
//| Service program start function |
|
|
//+------------------------------------------------------------------+
|
|
void OnStart()
|
|
{
|
|
//---
|
|
Print(__FUNCTION__+" Dienst "+MQLInfoString(MQL_PROGRAM_NAME)+" wurde gestartet");
|
|
while(!IsStopped())
|
|
{
|
|
Print(__FUNCTION__+" vor der Pause");
|
|
//Sleep(3600);
|
|
Print(__FUNCTION__+" nach der Pause");
|
|
//Sleep(3600);
|
|
}
|
|
Print(__FUNCTION__+" Dienst "+MQLInfoString(MQL_PROGRAM_NAME)+" wurde beendet");
|
|
}
|
|
//+------------------------------------------------------------------+
|