Implemented functions ChartId, ChartRedraw, ChartWindowFind, ChartClose (MT5)

This commit is contained in:
vdemydiuk
2018-03-14 18:10:44 +02:00
parent 9afd30e463
commit 07dd83f890
3 changed files with 104 additions and 25 deletions
+2 -1
View File
@@ -1516,6 +1516,7 @@ namespace MtApi5
///<summary>
///This function calls a forced redrawing of a specified chart.
///</summary>
///<param name="chartId">Chart ID. 0 means the current chart.</param>
public void ChartRedraw(long chartId = 0)
{
var commandParameters = new ArrayList { chartId };
@@ -1660,7 +1661,7 @@ namespace MtApi5
///<returns>
///If successful, returns true, otherwise false.
///</returns>
public bool ChartClose(long chartId)
public bool ChartClose(long chartId = 0)
{
var commandParameters = new ArrayList { chartId };
return SendCommand<bool>(Mt5CommandType.ChartClose, commandParameters);