Implemented function Alert (MT5)

This commit is contained in:
vdemydiuk
2018-03-13 18:24:40 +02:00
parent 16f454ca61
commit 9afd30e463
6 changed files with 63 additions and 15 deletions
+13 -2
View File
@@ -2152,16 +2152,27 @@ namespace MtApi5
#region Common Functions
///<summary>
///It enters a message in the Expert Advisor log.
///</summary>
///<param name="message">Symbol name.</param>
///<param name="message">Message</param>
public bool Print(string message)
{
var commandParameters = new ArrayList { message };
return SendCommand<bool>(Mt5CommandType.Print, commandParameters);
}
///<summary>
///Displays a message in a separate window.
///</summary>
///<param name="message">Message</param>
public void Alert(string message)
{
var commandParameters = new ArrayList { message };
SendCommand<object>(Mt5CommandType.Alert, commandParameters);
}
#endregion // Common Functions
#region Object Functions