Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1579
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 don't know, I'll have to check.
What is there to check...? If we assume that the history contains several trades with the same closing time, they must be processed sequentially, one after another. TheOnTradeTransaction handler does exactly that (handles trade events) and there is no need to invent a "wheel".
What's there to check...? If we assume that there are several trades with the same closing time in the history, then they must be processed sequentially, one after another. TheOnTradeTransaction handler does just that (handles trade events) and there is no need to invent a "wheel".
as an alternative to the total profit
as an option for total profit
No. That is not an option!
No. That's not an option!
Alternatively, trade alerts can be enabled in the terminal and the server will send them to the mobile apphttps://www.metatrader5.com/ru/releasenotes .
Alternatively, trade alerts can be enabled in the terminal and the server will send them to the mobile apphttps://www.metatrader5.com/ru/releasenotes .
Why?
Because trades cannot be skipped. Imagine 2 trades closed on the TP and you only sent notification of one. Or their total profit (as you suggested). What is that supposed to tell the user...? Not clear... :)
Let me explain even more clearly. The number of notifications must always correspond to the number of trades.
Plus,SendNotification has limitations on the frequency of sending notifications. So, we have to make sure that the application calls the function no more than 2 times per second and no more than 10 times per minute. Create a queue of notifications and send them no more often than specified in the documentation.
Because trades cannot be skipped. Imagine 2 trades closed on the TP and you only sent notification of one. Or their total profit (as you suggested). What is that supposed to tell the user...? Not clear... :)
You haven't seen his EA.
I told you, as far as I understood he wanted notifications of orders opening and closing, and it does not matter what the reason is.
The man wants to see on his phone that the EA is doing something.
You haven't seen his EA.
I told you, as far as I understood he wants notifications about opening and closing orders and it doesn't matter for what reason.
The man wants to see on his phone that the EA is doing something.
I have edited the previous post.
No. He wants to track closing by SL and TP.
This is the forum for trading, automated trading systems and strategy testing.
Any questions from newbies in MQL4 and MQL5, help and discussion on algorithms and codes
Eugen8519, 2021.08.07 12:20
Help me to position the function correctly
Inserted it to report entry into position here
And I am already successfully getting notifications on my smartphone.
But how and where to insert
SendNotification
To get a message when I reach stop loss ortake profit?
Edited the previous message.
No. What he needs to do is track the SL and TP closures.
OK, you're right. I got it wrong.