Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1085
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
So it turns out that OrderSelect by ticket from closed and deleted orders searches only among the history loaded into the terminal? There is no information about this in the handbook.
yes
In fact, the EA only has access to the data you can find in the terminal
This also applies to chart history, if you limit it, the EA will also not be able to access chart bars you cannot see in the terminal
In the description of OrdersHistoryTotal it says
When selecting an order by ticket:
The pool parameter is ignored
Can someone tell me how I can get the handle of the latest file in the folder without knowing its name. That is, when running the script I need to refer to the most recently created file, I can't figure out what to put in the loop. MQL4
FileFindFirst, FileFindNext, FileGetInteger
what does this entry mean?
what does this entry mean?
Equal to this:
Someone is using flags somewhere for something. This entry says that there are 7 flags stored in the tf variable, and they are all raised.
Order tracking.
Hello all, Gentlemen of the forum.
Faced with the need to track orders for the copier and was surprised by the complexity of the issue.
Task.
To track opening, closing and modification of market and pending orders with the least possible delay and load on the system.
Possible solutions.
1. Monitoring the entire order list every tick is not very attractive yet.
2. MQL5 has good OnTrade() and OnTradeTransaction() functions, but I haven't found analogues in MQL4.
3. The Last order lines and their TP andSL manipulations on the chart seem to be quite attractive, using OnChartEvent, but these objects are not visible and are not handled by the function. Maybe there is a way to detect them?
4. Now I'm thinking about the possibility of getting information from the general log. You will have to monitor there too, but less.
I haven't found a satisfactory solution yet, maybe someone has already done some digging?
Equal to this:
Someone somewhere is using flags for something. This entry says that there are 7 flags stored in the variable tf, and they are all raised.
And why are they written through a vertical stick how to use this? Can each part of this flag be accessed? Here's a code like this.
And why are they written through a vertical stick how to use it?
as long as you call it a "vertical stick", you cannot read this code
read the helphttps://www.mql5.com/ru/docs/basis/operations/bit
as long as you call it a "vertical stick" you will not be able to read this code
read the helphttps://www.mql5.com/ru/docs/basis/operations/bit
I read it (I don't know for how many times now) and understand it poorly because there are no examples of its use and it's not clear what it's for. There is an example
Is there any way to make this line
can it be written shorter through the counter?
I've read it (I don't know how many times) and understand it poorly because there are no examples of how to use it and it's not clear what it's for. There is an example.
You have read the wrong example
Bitwise OR operation
Bitwise OR of binary representations of x and y. The value of the expression contains 1 in all places where x or y does not contain 0, and 0 in all other places.
b = x | y;
Example: