TF-altProjekte/Diensttest/test-v1.mq5

30 lines
1.2 KiB
MQL5
Raw Permalink Normal View History

2025-05-30 16:31:33 +02:00
//+------------------------------------------------------------------+
//| 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");
}
//+------------------------------------------------------------------+