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
Out of curiosity, I checked. The result is as follows
But it seems to me that there is something wrong here (I mean checking algorithm)...
Yedelkin:
It turns out that StringConcatenate is slower than string binding using addition operations. What's the snag?
In the first pass, you get the right buffer size to store the result of string addition and transformation, i.e. there is no buffer relocation for strings d,(string)b and(string)c.
Feature strings.
In the first pass you get the right buffer size to store the result of the addition and transformation of strings, i.e. buffer relocation for strings d,(string)b and(string)c does not happen.
Tried different ways of comparing - doesn't get the result I want. I've come to this code:
Results:
Question. The OrdersTotal() function returns the total number of active orders for a trading account. Is there an easy way to get the number of active orders for a certain symbol?
Get the whole story and do a sampling.
Question. The HistorySelect() and HistorySelectByPosition() functions request the history of orders and history of deals. I ran the explanatory script from the Guide, and its list of deals is arranged in ascending order. Is it so by chance, or are functions HistorySelect() and HistorySelectByPosition() programmed to return lists ordered in ascending order?
Question. The HistorySelect() and HistorySelectByPosition() functions request the history of orders and history of deals. I ran the explanatory script from the Guide, and its list of deals is arranged in ascending order. Is it so by chance, or have the HistorySelect() and HistorySelectByPosition() functions been programmed to return the lists ordered in ascending order?
No matter how many times I've experimented, the result is the same: a list ordered in a certain way is returned.
Once I even wanted to write a request for an additional parameter specifying exactly how the entries should be sorted.
But then I thought carefully and decided that it's not worth it (they may answer that sort themselves and all that), although it's possible that I shouldn't have written it down...
... sort yourself and all that
Just if there's a preset forced sorting it's one thing, but creating additional sorting manually is another.
It's just that in MT4 I sorted manually (and filtered too), if I'm not mistaken I sorted in "bubbles".
I got the sorting code from the database there, so that can be clarified.
And I haven't decided on the best way to sort in MQL5, since I've understood that history queries are now not tied to history tab (sorting and content does not depend on what the user has done in the tab).