Features of the mql5 language, subtleties and tricks - page 295
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
Not exactly on the topic, but decided to post here nevertheless.
In the Terminal Logs it works to search for a terminal line by its first letters, just by typing (ragistrophically) them on the keyboard.
This is not as convenient in the Logs as in the Market Watch and Navigator (I use it all the time in the Favourites tab to find the EX5 I need).
A little interesting observation about ENUM_TIMEFRAMES:
A small interesting observation about ENUM_TIMEFRAMES:
Since the thread often touches on ways to speed up the code, I am posting here a link to a universal mechanism that allows you to get rid of expensive OrdersTotal-cycle.
There is a third-party confirmation of performance increase on an EA with a large number of open positions/orders (martin/gridder).
This simple mechanism allows you to write the most productive TS of this type.
There is third-party confirmation of increased performance on an EA with a large number of open positions/orders (martin/gridder).
This simple mechanism allows you to write the most productive TS of this type.
Forum on trading, automated trading systems and testing trading strategies.
Libraries: Virtual
fxsaber, 2025.03.05 09:22 pm.
As a consequence, the OnTrade function is required to accelerate in MT5-Tester in a real martin/gridder environment.
I have never used this function in Tester.
Any other examples of accelerating EA in MT5-Tester using OnTrade?
datetime-type is a signtype- it works correctly with negative values.
This is convenient.
datetime-type is a signtype- it works correctly with negative values.
This is convenient.
Yes, you can assign negative values to datetime. In other programming languages this indicates dates before 1.1.1970, but in MQL a negative datetime value is INVALID.
Yes, you can assign negative datetime values. In other programming languages, it means dates before 1.1.1970, but in MQL, a negative datetime value is INVALID.
So it's just the result of TimeToString and TimeToStruct. The good thing is that datetime is a signed long-number, which allows you to represent time much BEFORE the birth of the Universe.
I needed full arithmetic operations with datetime and comparison operators. So I had to check signed/unsigned.