MQL4 - automated forex trading   /  

Forum

EA Errors when calling functions from stdlib

Back to topics list To post a new topic, please log in or register

avatar
412
scratchman 2011.07.01 20:17 

I get the following error message when calling the ErrorDescription function from the stdlib:

expert function calls are not allowed; 'stdlib'-'ErrorDescription'

This line is in my EA: #include <stdlib.mqh>

I've never had this problem before.

Currently running build 402.

Please help. Thanks.

Fallacies, Part 2. Statistics Is a Pseudo-Science, or a Chronicle of Nosediving Bread And Butter

Fallacies, Part 2. Statistics Is a Pseudo-Science, or a Chronicle of Nosediving Bread And Butter

Numerous attempts to apply statistical methods to the objective reality, i.e. to financial series, crash when met with the nonstationarity of processes, "fat tails" of accompanying probability distributions, and insufficient volume of financial data. In this publication I will try to refer not to the financial series as such, but to their subjective presentation - in this case, to the way a trader tries to halter the series, i.e. to the trading system. The eduction of statistical regularities of the trading results process is a rather enthralling task. In some cases quite true conclusions about the model of this process can be made, and these can be applied to the trading system.


avatar
4328
WHRoeder 2011.07.01 21:50 
options -> Expert Advistors -> Allow DLL imports ?

avatar
412
scratchman 2011.07.01 22:10 
WHRoeder:
options -> Expert Advistors -> Allow DLL imports ?
That was the first thing I looked at. Allow DLL imports is enabled.

avatar
119
symr 2011.07.01 22:35 

stdlib using stdlib.ex4

#import "stdlib.ex4"
so open libraries\stdlib.mq4 compile and than recompile ur ea



avatar
4328
WHRoeder 2011.07.01 23:50 

it's

#import ex4
function(s)

instead try

#include "stdlib.mqh"


avatar
412
scratchman 2011.07.02 02:37 


#import "stdlib.ex4"

This line already exists in the header file.



avatar
438
forexCoder 2011.07.02 02:41 

Not to sound presumptious or anything, but mine works (tested and working) like

#include <stdlib.mqh>

Also running build 402. Problem must be elsewhere. Try recompiling (which you probably did), ammmm rechecking whether the file didnt get deleted by any chance.... I dont know, but it must be some silly reason :))

Back to topics list  

To add comments, please log in or register