mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-08-18 05:08:11 +00:00
Starting work on Object Functions
This commit is contained in:
@@ -1733,6 +1733,31 @@ namespace MtApi
|
|||||||
}
|
}
|
||||||
#endregion
|
#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
|
#region Private Methods
|
||||||
private MtClient Client
|
private MtClient Client
|
||||||
{
|
{
|
||||||
|
|||||||
+30
-1
@@ -198,6 +198,35 @@
|
|||||||
SymbolSelect = 202,
|
SymbolSelect = 202,
|
||||||
SymbolInfoInteger = 203,
|
SymbolInfoInteger = 203,
|
||||||
ChartId = 206,
|
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user