Discussion of article "LifeHack for traders: Blending ForEach with defines (#define)" - page 2

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
An interesting and non-obvious technique )
It's flawed (for bummer structures) and not optimal.
To the copybook
it is not very convenient. it is not obvious that an external variable must be declared.
"On templates" meant this:
If you want to be confusing, you can still do this:
Everything else is just unnecessary.
Less writing is sometimes handy
It's just a question of feasibility, usability and performance.
The performance of the programme will not suffer. But hiding excessive details from your eyes is a positive effect. You should remember and use this defyne trick.
Terribly expensive! If you really want to do it through the structure, you should have at least done it. And there is no check for some reason.
SymbolInfoDouble is fully compliant with MT4.
Performance measurement
Result
I was absolutely wrong! SymbolInfoDouble is twice as slow as SymbolInfoTick.
Performance measurement
Result
I was absolutely wrong! SymbolInfoDouble is twice as slow as SymbolInfoTick.
Thanks for the performance measurement.
It turns out that SymbolInfoDouble documentation is not lying:
Note
Performance measurement
Result
I was absolutely wrong! SymbolInfoDouble is twice as slow as SymbolInfoTick.
Does using static affect the speed? I apologise for not checking it myself, but I think you have already compared.
Does using static affect the speed? I apologise for not checking it myself, but I think you have already compared it.
In this case it doesn't. I think it is a bug of the compiler.
I was completely wrong! SymbolInfoDouble is twice as slow as SymbolInfoTick.
Incompetent. Result in Tester
Where you need performance (Optimiser), it is better to use SymbolInfoDouble. In the real world - no difference.
ZY You should measure the speed of functions in an environment where performance is important - Tester.