Errors, bugs, questions - page 574

 

To the previous post, optimization of the standard MACD Sample Expert Advisor

LL 0 Tester 10:30:03 previous logs cleaned
LL 0 Tester 10:30:03 MetaTester 5 build 540 (11 Nov 2011)
RI 0 Server 10:30:03 MetaTester 5 started on 127.0.0.1
IL 0 127.0.0.1 10:30:03 login (build 540)
GD 0 Network 10:30:03 1260 bytes of optimized inputs info loaded
HO 0 Network 10:30:03 3256 bytes of input parameters loaded
QK 0 Tester 10:30:03 expert file added: Experts\Examples\MACD\MACD Sample.ex5. 36097 bytes loaded
IS 0 Tester 10:30:03 successfully initialized
LJ 0 Network 10:30:03 39 Kb of total initialization data received
LM 0 Tester 10:30:03 Intel Core2 Duo E8400 @ 3.00GHz, 2047 MB
DD 0 Tester 10:30:03 optimization pass 218680882202 started
MP 2Symbols 10:30:03 no prices for symbol USDCHF
OJ 2 Symbols 10:30:03 no prices for symbol USDCHF
:30:03 no prices for symbol USDCHF
IS 2 Symbols 10:30:03 no prices for symbol USDCHF
KM 2 Symbols 10:30:03 no prices for symbol USDCHF
EF 2 Symbols 10:30:03 no prices for symbol USDCHF
GP 2 Symbols 10:30:03 no prices for symbol USDCHF
GJ
0 Tester 10:30:05 218680882202 : passed within 2434 ms
MN 0 Tester 10:30:05 pass 396972489131 started
KK 2 Symbols 10: 0530:05 no prices for symbol USDCHF
ID 2 Symbols 10:30:05 no prices for symbol USDCHF
ON 2 Symbols 10:30:05 no prices for symbol USDCHF
MH 2 Symbols 10:30:05 no prices for symbol USDCHF
CQ 2 Symbols 10:30:05 no prices for symbol USDCHF
QK 2 Symbols 10:30:05 no prices for symbol USDCHF
PD 0 Tester 10:30:08 396972489131 : passed within 2309 ms
QR 0 Tester 10:30:08 optimization pass 1009545839445 started
NE 2 Symbols 10:30:08 no prices for symbol USDCHF
DO 2 Symbols 10:30:08 no prices for symbol USDCHF
JI 2 Symbols 10:30:08 no prices for symbol USDCHF
PR 2 Symbols 10:30:08 no prices for symbol USDCHF
FL 2 Symbols 10:30:08 no prices for symbol USDCHF
LE 2 Symbols 10:30:08 no prices for symbol USDCHF
LL 0 Tester 10:30:10 1009545839445 : passed within 2590 ms
LD 0 Tester 10:30:10 pass 328139732768 started
KP 2 Symbols 10:30:10 no prices for symbol USDCHF
QJ 2 Symbols 10:30:10 no prices for symbol USDCHF
GS 2 Symbols 10:30:10 no prices for symbol USDCHF
MM 2 Symbols 10:30:10 no prices for symbol USDCHF
CF 2 Symbols 10:30:10 no prices for symbol USDCHF
IP 2 Symbols 10:30:10 no prices for symbol USDCHF
PJ 0 Tester 10:30:13 328139732768 : passed within 2465 ms
FN 0 Tester 10:30:13 optimization pass 415346893128 started
RK 2 Symbols 10:30:13 no prices for symbol USDCHF
DD 2 Symbols 10:30:13 no prices for symbol USDCHF
NN 2 Symbols 10:30:13 no prices for symbol USDCHF
PH 2 Symbols 10:30:13 no prices for symbol USDCHF
JQ 2 Symbols 10:30:13 no prices for symbol USDCHF
LK 2 Symbols 10:30:13 no prices for symbol USDCHF
KD 0 Tester 10:30:15 415346893128 : passed within 2278 ms
PR 0 Tester 10:30:15 optimization pass 20121173742 started
NF 2 Symbols 10:30:15 no prices for symbol USDCHF
DO 2 Symbols 10:30:15 no prices for symbol USDCHF
RI 2 Symbols 10:30:15 no prices for symbol USDCHF
HR 2 Symbols 10:30:15 no prices for symbol USDCHF
FL 2 Symbols 10:30:15 no prices for symbol USDCHF
LF 2 Symbols 10:30:15 no prices for symbol USDCHF
FL 0 Tester 10:30:17 20121173742 : passed within 2309 ms
ND 0 Tester 10:30:17 no prices for symbol USDCHF 751721102576 started
JP 2 Symbols 10:30:17 no prices for symbol USDCHF
DJ 2 Symbols 10:30:17 no prices for symbol USDCHF
ND 2 Symbols 10:30:17 no prices for symbol USDCHF
HM 2 Symbols 10:30:17 no prices for symbol USDCHF
RG 2 Symbols 10:30:17 no prices for symbol USDCHF
LQ 2 Symbols 10:30:17 no prices for symbol USDCHF
FJ 0 Tester 10:30:20 751721102576 : passed within 2480 ms
RL 0 Tester 10:30:20 optimization pass 1037041429641 started
HK 2 Symbols 10:30:20 no prices for symbol USDCHF
RE 2 Symbols 10:30:20 no prices for symbol USDCHF
DN 2 Symbols 10:30:20 no prices for symbol USDCHF
NH 2 Symbols 10:30:20 no prices for symbol USDCHF
PR 2 Symbols 10:30:20 no prices for symbol USDCHF
JK 2 Symbols 10:30:20 no prices for symbol USDCHF
EF 0 Tester 10:30:24 1037041429641 : passed within 4508 ms
QR 0 Tester 10:30:24 pass 1231731063044 started
LF 2 Symbols 10:30:24 no prices for symbol USDCHF
FO 2 Symbols 10:30:24 no prices for symbol USDCHF
PI 2 Symbols 10:30:24 no prices for symbol USDCHF
JR 2 Symbols 10:30:24 no prices for symbol USDCHF
DL 2 Symbols 10:30:24 no prices for symbol USDCHF
NF 2 Symbols 10:30:24 no prices for symbol USDCHF
IQ 0 Tester 10:30:26 cancel expert execution
DH 2 Tester 10:30:26 OnTick canceled
CD 3 Tester 10:30:26 stopped on 82% of testing interval
ON 3 Tester 10:30:26 tester stopped outside
KF 0 Tester 10:30:26 tester agent shutdown

 
Lazarev:

Tell me how to write multicurrency, my multicurrency shows different results depending on which pair to put it on in the tester.

Such problem in onTick, and in onTimer function, and they also have differences

it means when testing just 1 pair I get a lot of variants, and I can't optimize

no way - until there are no independent ontick events for different pairs and there is a binding to the chart - it makes no sense to write a multivariant
 
Loky:
No way, as long as there are no independent ontick events for different pairs and there is a binding to the chart, there is no point in writing a multicurrency EA.
If only the TS is pipsing within 2-3 spreads, no more.
 
Loky:
No way, until there are independent ontick events for different pairs and binding to the chart - it makes no sense to write a multicurrency EA
So, the independent events, both on ticks of different pairs, and on any bars have already been implemented and kindly provided by Konstantin Gruzdev (Lizar) - the article. It is an excellent solution and it works very well. Checked)))
 
tol64:
So the independent events, both on ticks of different pairs, and on any bars has already been implemented and kindly provided by Konstantin Gruzdev (Lizar) - article. It is an excellent solution and it works very well. Tested.)))

We need a full-featured functionality, not only for ticks.

But the main problem of multicurrency is not that the language itself (the concept of MQL itself) doesn't allow to organize processing of multiple threads inside the program.

Besides the "philosophy" of creating multicurrency is in search of some abstract model-concept.

In my opinion, some monocurrency strategies can be compared to schoolchildren having completed primary education, and some to schoolchildren having finished school and ready to be enrolled in college. As for mults, in my opinion, continuing this analogy, we can assume that at the moment they are just getting ready to go to school and everything is still ahead of them.

Of course, a lot has already been done in the field of multicurrency development, both by developers and enthusiasts like Konstantin. I would even say that at the moment we made an evolutionary leap from a "non-living" cell to the level of unicellular organisms. But this is where the longest and most interesting path begins - the path of development of complex biolagic organisms.

 
tol64:
So, the independent events, as for the ticks of different pairs, and for any bars, have already been implemented, and kindly provided by Konstantin Gruzdev (Lizar) - the article. It is an excellent solution and it works very well. Checked)))

Nothing clear-cut in this implementation. Interesting correctly formulated the problem in the previous post.

" The language itself (the concept of MQL itself) does not allow to organize processing of multiple threads within a program"

Once the function OnChartEvent() is started for execution and while the code for processing the event of arrival of a new tick of one of the pairs is executed, all other pairs with their own onTick events will have a rest!



 
Loky:
Nothing specific is missing in this implementation.

Can you be specific about what is missing in this implementation?

Loky:
Interesting correctly formulated the problem in a previous post.

Implementation of multithreading in MQL5 is a matter of time. This is not a problem anymore.

 

Lizar:

Implementing multithreading in MQL5 is a matter of time. It's not a problem anymore.

MQL5 + multithreading = MQL6. I think so (I'll be glad to be wrong).
 
Lizar:

Can you be specific about what is missing from this implementation?

1. a good attempt at solving one of the major problems of creating a multi-crutch. The result of this attempt can no longer be called a crutch, but rather a high-tech prosthesis. Despite all its advantages, this solution does not get rid of all the problems.

At the moment, to implement (for a NORMAL implementation) the multicurrency in Expert Advisors requires

a) parametric modification of the handler OnTick - addition of a parameter describing a symbol, on which the tick has come

b) Parametric modification of the OnTrade handler - there are many variants for this.

c) Organizing multi-threading not within a specific terminal or a specific chart, but within a specific Expert Advisor. By multithreading I mean the situation when in a specific EA different event handlers or different blocks of code can be executed at the same time.

2. Multithreading is not only a problem of mullions, but for them it is one of the main stumbling blocks. Until it is implemented even very good "alternative" solutions will be only crutches.

PS

As for the standard events implemented in MQL5 - I've already written once that this set of events is the minimum allowable, and developers should think about implementing additional events (in the form of specific handlers or using the standard library). For example, the appearance of a new bar can be implemented as a standard handler OnNewBar (possibly with parameters - symbol and period).

Документация по MQL5: Стандартная библиотека
Документация по MQL5: Стандартная библиотека
  • www.mql5.com
Стандартная библиотека - Документация по MQL5
 
If we sit around and talk demagogy)), we'll wait for the consequences of the Eurochief... and la-la-la...
Reason: