mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-08-13 02:38:07 +00:00
Implemented function Alert (MT5)
This commit is contained in:
@@ -238,12 +238,12 @@ namespace MtApi5
|
||||
|
||||
//Checkup
|
||||
GetLastError = 132,
|
||||
TerminalInfoString = 153, //TODO
|
||||
TerminalInfoInteger = 204, //TODO
|
||||
TerminalInfoDouble = 205, //TODO
|
||||
TerminalInfoString = 153,
|
||||
TerminalInfoInteger = 204,
|
||||
TerminalInfoDouble = 205,
|
||||
|
||||
//Common Functions
|
||||
Alert = 136, //TODO
|
||||
Alert = 136,
|
||||
Comment = 137, //TODO
|
||||
GetTickCount = 138, //TODO
|
||||
GetMicrosecondCount = 139, //TODO
|
||||
|
||||
+13
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user