Thread: How to code?
View Single Post
  #1611 (permalink)  
Old 02-23-2009, 08:02 PM
Big Be Big Be is offline
Member
 
Join Date: Oct 2006
Posts: 80
Big Be is on a distinguished road
Very strange error message

I am getting this error message when compiling, referencing a couple of the functions:

“no dll defined for the imported function”

I have tried moving the function way up in the EA, to check for earlier syntax errors, but no change.
Since the EA does not use dll's, and the functions are similar to other functions that do NOT get an error message, I don't have a clue.

Here is one of the functions:

int getMom_A();
{
double MomA0 = iCustom(NULL, 0, "Mom A", IndUsedByEA, MaPeriods, MaMethod, APrice, APeriods, AMethod, Mom_Length, MomOnOpen,1,0);

if (MomA0 < -0.16)
{
return(SHORT);
}

if (MomA0 > 0.16)
{
return(LONG);
}
return(FLAT);
}

(The returned variables are actually integers, defined at the beginning of the program – not the problem.)

What is going on?

Big Be

Update: Problem solved! Found answer by Google to MQL4.com.
The First line should have no semicolon, so like this:
int getMom_A()

Last edited by Big Be; 02-24-2009 at 06:16 AM.
Reply With Quote