
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
I reduce the volume by counter-order, write a comment in it, but the comment stays in it, it does not "cling" to the position...
The most interesting thing is that if the order is sent with a comment in the direction of the position, it receives this comment, if against - it does not.
Maybe it's a bug?
I looked at it in visualisation mode and saw that sometimes comments are "hooked" and sometimes not. Can't say anything yet (it's not critical for me). Observe some more and write to Service Desk if you find any pattern to the replay.
I already did. Hmm, I always get the wrong ones. And there's a hell of a thing about "excerpting" a comment. Ufff...
By the way, here's a simple function to get the comment of the last trade (only numbers in the comments) on a position, is it correct? Otherwise, maybe I'm "scraping" it wrong...
I already did. Hmm, I always get the wrong ones. And there's a hell of a thing about "excerpting" a comment. Ufff...
By the way, here's a simple function to get the comment of the last trade (only numbers in the comments) on a position, is it correct? Or maybe I'm not "getting it right"...
The HistoryDealGetString() function should have as first parameter the ticket of transaction, and so far you have the number of deals in history.
The first parameter of the HistoryDealGetString() function should be a transaction ticket, but so far you are specifying the number of transactions in the history.
I have corrected it, but it still doesn't work. Gentlemen, please advise, because I'm confused...
I fixed it, but it still doesn't work. Gentlemen, please advise, because I'm confused...
All right, let's move on :)
Here's the line.
does not take into account that numbering of items in lists (including numbering of deals in the deal list) starts with "0", not "1". Therefore, by specifying the value total as "transaction number in the transaction list", you are specifying a non-existent number. See example in MQL5 Reference / Trading Functions / HistoryDealGetTicket.All right, let's move on :)
Here's the line
does not take into account that numbering of items in lists (including numbering of deals in the deal list) starts with "0", not "1". Therefore, by specifying the value total as the "transaction number in the transaction list", you are specifying a number that does not exist. See the example at MQL5 Reference / Trading Functions / HistoryDealGetTicket.- outputs.
Is this a bug or a feature?
Maybe t should be defined as datetime?
t cannot be datetime, read CopyTime help carefully:
"Return value:
Thenumber of copiedarray items or -1 in case of an error."Hello!
I have written an EA, everything works. But i got an error at the opening line of ' request.type_filling = ORDER_FILLING_AON;'-undeclared identifer and implicit enum conversion
Can't figure out what's wrong, all EAs compiled so far with the same strings work as before.
Thanks in advance.