Download MetaTrader 5

Discussion of article "The Fundamentals of Testing in MetaTrader 5"

To add comments, please log in or register
Interested in MQL5 features? Find them in documentation!
MetaQuotes Software Corp.
Moderator
181080
MetaQuotes Software Corp. 2011.05.18 13:16 

New article The Fundamentals of Testing in MetaTrader 5 is published:

What are the differences between the three modes of testing in MetaTrader 5, and what should be particularly looked for? How does the testing of an EA, trading simultaneously on multiple instruments, take place? When and how are the indicator values calculated during testing, and how are the events handled? How to synchronize the bars from different instruments during testing in an "open prices only" mode? This article aims to provide answers to these and many other questions.

Author: MetaQuotes

Samuel Olowoyo
2240
Samuel Olowoyo 2011.07.29 19:30  


I was reading through this wonderful article and it looks there was a typo error somewhere.

//+------------------------------------------------------------------+
//| Expert deinitialization function                                 |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
  {
//---
   bool hidden=IndicatorRelease(handle_ind);
   if(hided) Print("IndicatorRelease() successfully completed");
   else Print("IndicatorRelease() returned false. Error code ",GetLastError());
  }

I am thinking, you wanted to type 'if(hidden) Print......' instead of 'if(hided) Print...' so that the code looks like below

//+------------------------------------------------------------------+
//| Expert deinitialization function                                 |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
  {
//---
   bool hidden=IndicatorRelease(handle_ind);
   if(hidden) Print("IndicatorRelease() successfully completed");
   else Print("IndicatorRelease() returned false. Error code ",GetLastError());
  }

Thanks for the article.

Sam 

Liping Wang
3656
Liping Wang 2012.09.19 02:01  

Great article, thanks!

Alexey Petrov
Admin
1218
Alexey Petrov 2012.09.19 07:52  
olowsam:


I was reading through this wonderful article and it looks there was a typo error somewhere.

Corrected, thank you!
To add comments, please log in or register