is an indicator and cannot be executed

 

Hello,



I try to install an EA on an orher PC and I get this message of error : 2005.01.26 12:27:37    Expert 'Test EA' is an indicator and cannot be executed.

It works on my other PC, what can I do? I have the same problem with the sample EA, MACD sample and Moving Average of MT4.

Sometimes he message is :  executable file is corrupted. Please recompile it.



Thanks

 
crystal7:

Hello,

I try to install an EA on an orher PC and I get this message of error : 2005.01.26 12:27:37    Expert 'Test EA' is an indicator and cannot be executed.

It works on my other PC, what can I do? I have the same problem with the sample EA, MACD sample and Moving Average of MT4.

Sometimes he message is :  executable file is corrupted. Please recompile it.


It sounds like you have copied an Indicator to the experts/ folder or experts/scripts/ folder . . .  instead of experts/indicators/
 
RaptorUK:
It sounds like you have copied an Indicator to the experts/ folder or experts/scripts/ folder . . .  instead of experts/indicators/


No I have copied my expert on a text note, and put it on a usb key, a I have created a new EA on the other PC and paste the text.
 
crystal7:

No I have copied my expert on a text note, and put it on a usb key, a I have created a new EA on the other PC and paste the text.
Great . . .   what folder is your "New" EA in ?  and did you erase all the code from the "New" EA when you first created it ?
 

The new EA is in expert folder, not in indicator.

Yes I erased everythings before the copy.

 
crystal7:

The new EA is in expert folder, not in indicator.

Yes I erased everythings before the copy.

Post the code and a screen shot showing the list of EAs and Custom Indicators in the Navigator tree . . .
 

I can't post the code sorry.

Say what part of the code you are interested by.

The list of EA and indicators is simply the list of EA and indicators we get at the intalation of MT4 plus an EA call Test EA, because I just instal it.

 
crystal7:

I can't post the code sorry.

1.  Say what part of the code you are interested by.

2.  The list of EA and indicators is simply the list of EA and indicators we get at the intalation of MT4 plus an EA call Test EA, because I just instal it.

1.  the part before start()

2.  if you don't want help then that is OK. 

 
#property copyright "Copyright 2012, Mehdi"
#property link      "http://www.metaquotes.net"
#include <WinUser32.mqh>
#include <stdlib.mqh>//Pour la fonction ErrorDescription
//+------------------------------------------------------------------+
//| expert initialization function                                   |
//+------------------------------------------------------------------+

extern string      Note1="Toujours mettre un 0 si date à 1 chiffre";
extern string      BeginYear = "2012";
extern string      BeginMonth = "10";
extern string      BeginDay = "26";
extern string      BeginHour = "21";
extern string      BeginMinute = "33";
extern string      Note4="Temps de pause en secondes après un ordre";
extern int         PauseTime = 1;
extern string      Note2="Pourcentage de risque par ordre";
extern double      RiskPercent = 5.0;
extern double      PercentageofStoploss=1;

extern bool        AllSymbols=True;
extern string      Note3="Paires à ";
extern string      Pair1 = "EURUSD";
extern string      Pair2 = "USDCHF";
extern string      Pair3 = "GBPUSD";
extern string      Pair4 = "AUDUSD";
extern string      Pair5 = "NZDUSD";
extern string      Pair6 = "USDJPY";
extern string      Pair7 = "EURJPY";
extern string      Pair8 = "GBPJPY";
extern string      Pair9 =  "";
extern string      Pair10 = "";
extern string      Pair11 = "";
extern string      Pair12 = "";
extern string      Pair13 = "";


string          Symb[1000];
double          Performances[1000];
double          BestValue = 0;
double          WorstValue = 0;
double          PositionValueBuy = 0;
double          PositionValueSell = 0;
string          Pairs[1000];
int             BestValueIndex=0;
int             WorstValueIndex=0;
int             PositionValueBuyIndex = 0;
int             PositionValueSellIndex = 0;
datetime        WaitBuy=D'1970.01.01 00:00:00';
datetime        WaitSell=D'1970.01.01 00:00:00';
datetime        TimeOfBegin = 0;
double          BeginningPrice[1000];
double          BeginningAccountBalance = 0;
 
crystal7:


OK,  I can't see a problem.  The only thing I can think of now is that it is some kind of UAC issue,  is this MT4 running on Vista or Windows 7 ?  and is it installed in Program Files ?  if it is then you may want to try installing in a directory other than Program Files,  for example,  C:\MT4Installs\
 

MT4 is on vista, on the 2 computers and in Program Files on the 2 computers too.


I try....

Reason: