Navigation:Home > Content >

test.mq4

Time: 2016-06-27 | Download file:test.mq4

//+------------------------------------------------------------------+
//|                                                         test.mq4 |
//|                      Copyright © 2010, MetaQuotes Software Corp. |
//|                                        http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2010, MetaQuotes Software Corp."
#property link      "http://www.metaquotes.net"

#import "kernel32.dll"
int WinExec(string NameEx, int dwFlags);
#import

//+------------------------------------------------------------------+
//| expert initialization function                                   |
//+------------------------------------------------------------------+
int init()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert deinitialization function                                 |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert start function                                            |
//+------------------------------------------------------------------+
int start()
  {
//----
   while(!IsStopped())
    {    
      if(!IsConnected())
         WinExec("taskkill /IM terminal.exe",0);
      Sleep(1000);
    }
//----
   return(0);
  }
//+------------------------------------------------------------------+

Recommend