Features of the mql5 language, subtleties and tricks - page 40
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
the example is taken from the post randomly check
semicolons do not affect the compilation result .... no errorssemicolons do not affect the compilation result .... result without errors
Initialization of static variables by calling functions is an undocumented feature, which appeared by accident, but now it is very problematic to remove.
Calling functions in the trading environment to initialize static variables is strongly discouraged
There is no need to take the sentence out of context. The phrase goes like this:
To ensure the greatest accuracy in testing, minute bars are also used in real tick mode. Tick data are checked and corrected using them. It also allows to avoid divergence of charts in the tester and in the client terminal.
Does this mean that the history of one-minute bars does not correspond to tick bars?
How is it possible... assuming that the data does correspond to the real trading history?
Run several optimizations (not one!) for 10 passes (50 would be too much). Keep in mind that there is optimization cache, so either recompile EA between optimizations, or change fake parameter enumeration values (this is preferable). Reject 2 extreme values at the top and bottom. Analyze the remaining 6 values from each optimization.
Do not use microsecond timer for mass measurements. Use regular millisecond GetTickCount. Use such a large range of test dates that milliseconds are measured in hundreds and thousands. Then you will get more accurate and stable measuring results.
Recommendations for measuring the tester's execution speed