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

 

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

 


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 

 

Great article, thanks!

 
olowsam:


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

Corrected, thank you!
 

manual trading is tiring. I hope to find a robot soon that will bring me more than it cost me

Reason: