Libraries: BestInterval - page 29

 

Hi!

An error appears during compilation. Has anyone encountered it?

I searched the forum, I don't think it's been discussed.

Files:
ys.jpg  31 kb
 
Dmitrii Verevkin #:

an error appears during compilation.

Add these lines to Deal.mqh.

#include "Deal_Base.mqh"

struct DEAL : public DEAL_BASE
{
  int Index;

  void ToNull( DEAL &Deals[] ) const
  {
  #ifdef __MQL5__
    Deals[this.Index].DEAL_BASE::ToNull();
  #else // __MQL5__ - https://www.mql5.com/ru/forum/322209#comment_13314616
    Deals[this.Index].ToNull();
  #endif // __MQL5__

    return;
  }
  
  void operator =( const DEAL_BASE &bDeal )
  {
    /*this.*/ DEAL_BASE::operator=(bDeal); // https://www.mql5.com/ru/forum/1111/page3368#comment_48437633
    
    return;
  }  
};
 
Dmitrii Verevkin #:

Hi!

I get an error when compiling. Has anyone encountered it?

I searched the forum, I don't think it's been discussed.

It helped.

thanks!