Forum

Tester: Optimization cache issue apparently resolved

As to not only report on problems , I would like to thank the team for working on the issue of the erroneous results taken from the cache during optimization. I have seen a definite improvement and hope things have been fixed now for good. Thanks again! Cheers

Global Terminal Variables not shared among different tests?

I'm trying to implement an algorithm that performs another optimization than the "genetic based" or "complete" ones. To this end I intended to share information through the use of the Global Terminal Variables. However, after a number of tests, it looks to me that each run of a test starts with its

OnTrade() / HistoryDealsTotal(): proper notification "end of test"-deal missing?

It appears that my EA doesn't get informed through OnTrade() at the final "end-of-test"-deal or at least HistoryDealsTotal() does not get updated correctly . Has anyone else observed this too? I have found a workaround: call OnTrade() one more time myself as soon as I receive OnTester() . But "my oh

Tester: Feature Request

Dear MetaQuotes-Team, I would be very, very pleased if it would be possible to add an extra line of statistics (or maybe even some lines) to the optimization results of the tester. During optimization (grid optimizations done by hand) I'm interested in average values for most of the columns, e.g

CDealInfo::Comment() definition missing from DealInfo.mqh

I wanted to use Comment() from CDealInfo in my code, but got a very strange compiler message. Turned out that the body for Comment() was indeed missing. Add the following piece to DealInfo.mqh (updated file is attached): //+------------------------------------------------------------------+ //| Get

issue with HistoryDealsTotal()

I have found that there is an issue with HistoryDealsTotal() while using the optimization algorithms of the tester. During a normal backtest everything's fine, but in an optimization session, during the initialization phase of the EA, HistoryDealsTotal() returns the number of deals from the previous

MQL5: How to define mutually dependent classes? (forward declaration is not supported!)

Hi, I'm baffled. If "forward declaration" of classes is not allowed (as it is in MQL5), what is the preferred method of implementing two mutually dependent classes? I have two classes, say Worker and Manager . They have to maintain a reference (pointer) to each other, the Worker needs to know his

MQL5: Only one parameterless constructor?

Hmmm, MQL5 does not allow constructors to carry parameters. Normally, OO-Languages offer multiple types of constructors (with different parameter lists) to be used, in order to (partially) initialize a new object with user-provided values. IMHO this is a serious omission and a feature that really

MQL5: How to declare a (static) member/class variable?

Today I decided to dive into the real object-oriented parts of MQL5 and I am afraid I have immediately run into a problem. I have not been able to find a way to define a (static) class variable! Let's consider the following example of a widget factory. The class Widget is used to generate Widget