Features of the mql5 language, subtleties and tricks - page 58
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
In the tester, it is only possible to find out the current time correctly throughTimeTradeServer(), not TimeCurrent().
This is a very controversial statement.
Result
TimeCurrent returns the time of the last tick of the main symbol, not the tester (server). It's not possible to find out the exact current time of the server in milliseconds.
Good afternoon. I read about the service arrays https://www.mql5.com/ru/docs/constants/objectconstants/enum_anchorpoint ( in the last example)
double Ups[],Downs[];
datetime Time[];
Is there a list of all service arrays somewhere?
en/signals/352123
A language technique that allows the use of protected methods/fields.
Example
typing of the template parameters is strict, specialization with implicit conversion is unacceptable
it is possible to write functions that take as input parameters pointers only a base class, and their descendants are discarded at compile time.
Example
I don't like this trick myself. I thought I was insured against unauthorized access. Bummer, though! Of course, it does not work with const-structures. So keep this loophole in mind.