Start() method not called

 
I'm completely confused here.


I am trying to create an EA that will initially do some very basic task; either pop a MessageBox or write to a file - both of which I've done before with MQL. But for some reason the Start() method is never getting fired. I can get a message box during init:

int init()
  {
   MessageBox("init");
   return(0);
  }
But for some crazy reason I never get a message box during start:

int start()
  {
    MessageBox("I have been started!");    //This never fires!
    return(0);
  }
This just seems stupid, I know I did this without a problem several months ago. What am I missing?

Thanks in advance!
girdle66
 
Sound stupid!
try add your messageBox() to samples of MT own,   then test.
 
Are you sure that you done all to get it?

//+------------------------------------------------------------------+
//|                                              CheckMeesageBox.mq4 |
//|                      Copyright © 2007, MetaQuotes Software Corp. |
//|                                       'Start() method not called' |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2007, MetaQuotes Software Corp."
#property link      "'Start() method not called'"
 
//+------------------------------------------------------------------+
//| expert initialization function                                   |
//+------------------------------------------------------------------+
int init()
  {
//----
   MessageBox("init");   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert deinitialization function                                 |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert start function                                            |
//+------------------------------------------------------------------+
int start()
  {
//----
   MessageBox("I don\'t forgot to allow experts!");    
   return(0);
  }
//+------------------------------------------------------------------+
 
Rosh:
Are you sure that you done all to get it?

//+------------------------------------------------------------------+
//|                                              CheckMeesageBox.mq4 |
//|                      Copyright © 2007, MetaQuotes Software Corp. |
//|                                       'Start() method not called' |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2007, MetaQuotes Software Corp."
#property link      "'Start() method not called'"
 
//+------------------------------------------------------------------+
//| expert initialization function                                   |
//+------------------------------------------------------------------+
int init()
  {
//----
   MessageBox("init");   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert deinitialization function                                 |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert start function                                            |
//+------------------------------------------------------------------+
int start()
  {
//----
   MessageBox("I don\'t forgot to allow experts!");    
   return(0);
  }
//+------------------------------------------------------------------+



 
I am a newbie at mql4 but am having the same problem. I'd like to use the messagebox for a form of debugging purposes but can't get it to fire either.

Have created a simple program with just the following code and invoked with EA it but no message box fires?

Thanks for any help.
//+------------------------------------------------------------------+
//|                                                         junk.mq4 |
//|                                                                  |
//|                                        https://www.metaquotes.net/ |
//+------------------------------------------------------------------+
#property copyright ""
#property link      "https://www.metaquotes.net/"
 
//+------------------------------------------------------------------+
//| expert initialization function                                   |
//+------------------------------------------------------------------+
int init()
  {
//----
   MessageBox("init"); 
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert deinitialization function                                 |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert start function                                            |
//+------------------------------------------------------------------+
int start()
  {
//----
   
//----
   return(0);
  }
//+-----------------------------------------------------------------
 
MessageBox("init"); is win32 function,
so should add
#include <WinUser32.mqh>

//+------------------------------------------------------------------+
#property copyright "Copyright ?2007, MetaQuotes Software Corp."
#property link      "https://www.metaquotes.net/"
#include <WinUser32.mqh>
//+------------------------------------------------------------------+
//| expert initialization function                                   |
//+------------------------------------------------------------------+
int init()
Reason: