Features of the mql5 language, subtleties and tricks - page 247
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
double-click highlights a word, tripple-click a logical expression. triple-click doesn't always work for everyone....
but you can practice it on this text.
It would be good to read the whole text to the end
Forum on trading, automated trading systems and testing trading strategies.
Peculiarities of mql5 language, subtleties and techniques of work
Alexey Viktorov, 2024.02.18 14:49
It is not the first time I notice that at the "numerous" requests of users do something and immediately break something. It was always CTRL+click to highlight a word. For me it is easier than double click, because the load on the index finger and without double clicks is quite great. Sometimes it even hurts in the evening. Now it works like this, and then like they've made it new. You don't know when it's supposed to work.
Have you ever used Vim?
I don't know what it is. In ME I use the mouse only when I need to switch to a tab of some open file and disable/enable compiler optimisation. I don't use the mouse anymore, the hotkeys are enough.
Defining the compiler optimisation setting.
useful for what?!
For what?!
Forum on trading, automated trading systems and testing trading strategies
Errors, bugs, questions
fxsaber, 2024.03.05 16:01
The Expert Advisor outputs stat. data of the speed of heavy calculations. Sometimes I see that they are slow. I don't immediately realise that EX5 without optimisation enabled. I would like to be able to print this compiler flag, as is done with _RELEASE and __CPU_ARCHITECTURE__.
Forum on trading, automated trading systems and testing trading strategies
Why praised AI do not understand C++?
fxsaber, 2023.12.06 20:44
Why didn't they make SymbolID for Tester?
In monosymbolic Expert Advisors it is obvious that for performance in Tester you have to give up using PositionGetString and OrderGetString.
In multi-currency Expert Advisors it can also be done. For example, through Magic. Then you can get a noticeable effect.
Forum on trading, automated trading systems and testing trading strategies.
Libraries: OnTickMulti
fxsaber, 2024.03.18 20:49
Free acceleration in 1.5 times!
Forum on trading, automated trading systems and testing trading strategies.
New version of MetaTrader 5 build 4230: more built-in applications and expanded ONNX support
fxsaber, 2024.03.19 20:48
For some reason the classic is faster.
This is the unexpected result of the for loop.
For some reason, the classic is faster.
Demonstration of a huge difference in the performance of two types of for loops.
Two types of loops are highlighted in the code. Replace one with the other to see the effect.
for (int i = 0; i < Amount; i++)
for (uint i = Amount; (bool)i--;)
The difference is almost 1.5 times!
The reason.
Forum on trading, automated trading systems and testing trading strategies.
New version of MetaTrader 5 build 4230: more built-in applications and expanded ONNX support
Renat Fatkhullin, 2024.03.20 02:21
Don't use hacker methods in for loops - this way you spoil the loop/vectorisation optimisation pattern for the compiler and get worse code in working conditions. At the same time you should take into account that there is a considerable chance of self-deception on truncated synthetic benchmarks where some hacker methods may show fake improvement.
ZY
for (int i = Amount - 1; i >= 0; i--)
This variant seems to be a classic too - it doesn't slow down.
How about this?
How about this?
Going outside the array. Or, if Amount already takes into account (size - 1), it should not make any difference: for (int i = Amount - 1; i >= 0; i--))