Starting work on Object Functions

This commit is contained in:
vdemydiuk
2016-12-26 17:49:06 +02:00
parent 5b03f01e9b
commit 39146d68b2
2 changed files with 55 additions and 1 deletions
+25
View File
@@ -1733,6 +1733,31 @@ namespace MtApi
}
#endregion
#region Object Functions
///<summary>
///The function creates an object with the specified name, type, and the initial coordinates in the specified chart subwindow of the specified chart.
///</summary>
///<param name="chartId">Chart identifier.</param>
///<param name="objectName">Name of the object. The name must be unique within a chart, including its subwindows.</param>
///<param name="objectType">Object type.</param>
///<param name="subWindow">Number of the chart subwindow. 0 means the main chart window.</param>
///<param name="time1">The time coordinate of the first anchor point.</param>
///<param name="price1">The price coordinate of the first anchor point.</param>
///<param name="time2">The time coordinate of the second anchor point.</param>
///<param name="price2">The price coordinate of the second anchor point.</param>
///<param name="time3">The price coordinate of the second anchor point.</param>
///<returns>
///Returns various data about securities listed in the "Market Watch" window.
///</returns>
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
{
+30 -1
View File
@@ -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
}
}