Libraries: TradeTransactions - page 7

 
fxsaber

试试 这个

Thansk to replay. I had used this version,but the same error.

 
roaddust:

Thansk to replay. I had used this version,but the same error.

Source?

 
尘土

坦斯克重播。 我曾经使用过此版本,但存在相同的错误。

使用了这些文件。 谢谢。
Files:
 
roaddust:
使用了这些文件。 谢谢。

Unfortunately, I need to spend too much of my time to work around the compiler bug. I do not have such opportunity.

 
fxsaber

不幸的是,我需要花太多时间来解决编译器错误。 我没有这样的机会。

Maybe you can use these files in a New Install MT4 path . Thanks!

Files:
MQL4.zip  308 kb
 
const bool Res = (iPos < this.Total());

')' - expression expected TradeTransactions.mqh 39 41


It can't access the RESOURCEDATA :Total() method I take it. Has something changed?

 
mbjen:

')' - expression expected TradeTransactions.mqh 39 41


It can't access the RESOURCEDATA :Total() method I take it. Has something changed?

ok, renamed the Total variable and it worked.

 

Hello. When I tried to run this code, the compiler gave me this error:

initialize sequence for 'struct ONTRADETRANSACTION' expected    ResourceData.mqh        36      17
   see declaration of struct 'ONTRADETRANSACTION'	OnTradeTransaction.mqh	5	8

How do I solve this? Sorry but I'm still very new to C++ programming.

 
ifffrt #:

Hello. When I tried to run this code, the compiler gave me this error:

How do I solve this? Sorry but I'm still very new to C++ programming.

Please make the following correction to the file MQL5\Include\fxsaber\TradeTransactions\TradeTransactions.mqh.

  bool Select( const int iPos )
  {
    // https://www.mql5.com/ru/forum/474452/page11#comment_54955106
    const bool Res = (iPos < /*this.*/RESOURCEDATA<ONTRADETRANSACTION>::Total());

    if (Res)t
      this.Pos = iPos;

    return(Res);
  }
 
fxsaber #:

Please make the following correction to the file MQL5\Include\fxsaber\TradeTransactions\TradeTransactions.mqh.

The same error still got thrown even after I made that change, sorry.