Download MetaTrader 5

Strategy tester cannot load custom indicator calling external DLL

To add comments, please log in or register
econex
7
econex 2011.10.22 21:29 
I wrote very simple custom indicator using external DLL. It compiles and shows up on a chart very fine. Next, I wrote EA using this custom indicator. EA also loads and works very fine. However, any attempt to test this EA in strategy tester gives this error:
2011.10.22 20:16:18 expert removed because custom indicator 'MyTestDLL' cannot load [4802]

Indicators and EA are all properly placed. DLL is placed into:
1. \Program Files\MetaTrader 5\MQL5\Libraries
2. \Program Files\MetaTrader 5\
3. \Windows\System32
System: Win 2003 Server 32 bit

DLL does not have any external dependencies except for Win kernel.

Any advise on matter will be much appreciated.
Introduction to MQL5: How to write simple Expert Advisor and Custom Indicator
  • 2010.04.07
  • Denis Zyatkevich
  • www.mql5.com
MetaQuotes Programming Language 5 (MQL5), included in MetaTrader 5 Client Terminal, has many new possibilities and higher performance, compared to MQL4. This article will help you to get acquainted with this new programming language. The simple examples of how to write an Expert Advisor and Custom Indicator are presented in this article. We will also consider some details of MQL5 language, that are necessary to understand these examples.
Alexey Da
Moderator
6651
Alexey Da 2011.10.24 14:04  

Please read carefully this help topic (https://www.mql5.com/en/docs/basis/preprosessor/compilation). It should be helpful. 

Pay attention to tester_library property. 

Documentation on MQL5: Language Basics / Preprocessor / Program Properties (#property)
  • www.mql5.com
Language Basics / Preprocessor / Program Properties (#property) - Documentation on MQL5
econex
7
econex 2011.10.26 15:50  

You are completely right! "tester_library" and "tester_indicator" resolved the problem. Thank you very much.

To add comments, please log in or register