mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-08-18 13:18:12 +00:00
Issue #35: Implemented function TerminalInfoDouble in MtApi MT4
This commit is contained in:
+12
-1
@@ -683,7 +683,18 @@ namespace MtApi
|
||||
return SendCommand<int>(MtCommandType.TerminalInfoInteger, commandParameters);
|
||||
}
|
||||
|
||||
//TODO: TerminalInfoDouble
|
||||
///<summary>
|
||||
///Returns the value of a corresponding property of the mql4 program environment.
|
||||
///</summary>
|
||||
///<param name="propertyId">Identifier of a property. Can be one of the values of the ENUM_TERMINAL_INFO_DOUBLE enumeration.</param>
|
||||
///<returns>
|
||||
///Value of double type.
|
||||
///</returns>
|
||||
public double TerminalInfoDouble(EnumTerminalInfoDouble propertyId)
|
||||
{
|
||||
var commandParameters = new ArrayList { (int)propertyId };
|
||||
return SendCommand<double>(MtCommandType.TerminalInfoDouble, commandParameters);
|
||||
}
|
||||
|
||||
///<summary>
|
||||
///Returns the name of company owning the client terminal.
|
||||
|
||||
Reference in New Issue
Block a user