How do I code for an alert in MQL5

Fernando Carreiro  
newrick:I know I can set manual alerts in MT5 but I can't find a function that does the same so I can put it in my code. Is this possible?

In an EA or Indicator code, you have to program your own logic and then use the Alert function to display a pop-up alert. You can also SendMail or SendNotification.

Reason: