diff --git a/MtApi/MtApiClient.cs b/MtApi/MtApiClient.cs index 819229ff..719749f1 100755 --- a/MtApi/MtApiClient.cs +++ b/MtApi/MtApiClient.cs @@ -1733,6 +1733,31 @@ namespace MtApi } #endregion + #region Object Functions + + /// + ///The function creates an object with the specified name, type, and the initial coordinates in the specified chart subwindow of the specified chart. + /// + ///Chart identifier. + ///Name of the object. The name must be unique within a chart, including its subwindows. + ///Object type. + ///Number of the chart subwindow. 0 means the main chart window. + ///The time coordinate of the first anchor point. + ///The price coordinate of the first anchor point. + ///The time coordinate of the second anchor point. + ///The price coordinate of the second anchor point. + ///The price coordinate of the second anchor point. + /// + ///Returns various data about securities listed in the "Market Watch" window. + /// + bool ObjectCreate(long chartId, string objectName, object objectType, int subWindow, + DateTime time1, double price1, DateTime? time2 = null, double price2 = 0, DateTime? time3 = null, double price3 = 0) + { + return false; + } + + #endregion + #region Private Methods private MtClient Client { diff --git a/MtApi/MtCommandType.cs b/MtApi/MtCommandType.cs index 62a5f672..d326fd2d 100755 --- a/MtApi/MtCommandType.cs +++ b/MtApi/MtCommandType.cs @@ -198,6 +198,35 @@ SymbolSelect = 202, SymbolInfoInteger = 203, ChartId = 206, - ChartRedraw = 207 + ChartRedraw = 207, + + //Object Functions + ObjectCreate = 208, + ObjectName = 209, + ObjectDelete = 210, + ObjectsDeleteAll = 211, + ObjectFind = 212, + ObjectGetTimeByValue = 213, + ObjectGetValueByTime = 214, + ObjectMove = 215, + ObjectsTotal = 216, + ObjectGetDouble = 217, + ObjectGetInteger = 218, + ObjectGetString = 219, + ObjectSetDouble = 220, + ObjectSetInteger = 221, + ObjectSetString = 222, + TextSetFont = 223, + TextOut = 224, + TextGetSize = 225, + ObjectDescription = 226, + ObjectGet = 227, + ObjectGetFiboDescription = 228, + ObjectGetShiftByValue = 229, + ObjectGetValueByShift = 230, + ObjectSet = 231, + ObjectSetFiboDescription = 232, + ObjectSetText = 233, + ObjectType = 234 } }