mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-08-20 22:28:17 +00:00
MtApi5: updated paramter's names in function iCustom
This commit is contained in:
@@ -3055,8 +3055,8 @@ namespace MtApi5
|
|||||||
public int iCustom(string symbol, ENUM_TIMEFRAMES period, string name, double[] parameters)
|
public int iCustom(string symbol, ENUM_TIMEFRAMES period, string name, double[] parameters)
|
||||||
{
|
{
|
||||||
Dictionary<string, object> cmdParams = new() { { "Symbol", symbol ?? string.Empty },
|
Dictionary<string, object> cmdParams = new() { { "Symbol", symbol ?? string.Empty },
|
||||||
{ "Period", (int)period }, { "Name", name ?? string.Empty},
|
{ "Timeframe", (int)period }, { "Name", name ?? string.Empty},
|
||||||
{ "Parameters", parameters }, { "ParamsType", ParametersType.Double} };
|
{ "Params", parameters }, { "ParamsType", ParametersType.Double} };
|
||||||
return SendCommand<int>(ExecutorHandle, Mt5CommandType.iCustom, cmdParams);
|
return SendCommand<int>(ExecutorHandle, Mt5CommandType.iCustom, cmdParams);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3070,8 +3070,8 @@ namespace MtApi5
|
|||||||
public int iCustom(string symbol, ENUM_TIMEFRAMES period, string name, int[] parameters)
|
public int iCustom(string symbol, ENUM_TIMEFRAMES period, string name, int[] parameters)
|
||||||
{
|
{
|
||||||
Dictionary<string, object> cmdParams = new() { { "Symbol", symbol ?? string.Empty },
|
Dictionary<string, object> cmdParams = new() { { "Symbol", symbol ?? string.Empty },
|
||||||
{ "Period", (int)period }, { "Name", name ?? string.Empty }, { "Parameters", parameters },
|
{ "Timeframe", (int)period }, { "Name", name ?? string.Empty }, { "Parameters", parameters },
|
||||||
{ "ParamsType", ParametersType.Int } };
|
{ "Params", ParametersType.Int } };
|
||||||
return SendCommand<int>(ExecutorHandle, Mt5CommandType.iCustom, cmdParams);
|
return SendCommand<int>(ExecutorHandle, Mt5CommandType.iCustom, cmdParams);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3085,8 +3085,8 @@ namespace MtApi5
|
|||||||
public int iCustom(string symbol, ENUM_TIMEFRAMES period, string name, string[] parameters)
|
public int iCustom(string symbol, ENUM_TIMEFRAMES period, string name, string[] parameters)
|
||||||
{
|
{
|
||||||
Dictionary<string, object> cmdParams = new() { { "Symbol", symbol ?? string.Empty },
|
Dictionary<string, object> cmdParams = new() { { "Symbol", symbol ?? string.Empty },
|
||||||
{ "Period", (int)period }, { "Name", name ?? string.Empty },
|
{ "Timeframe", (int)period }, { "Name", name ?? string.Empty },
|
||||||
{ "Parameters", parameters }, { "ParamsType", ParametersType.String } };
|
{ "Params", parameters }, { "ParamsType", ParametersType.String } };
|
||||||
return SendCommand<int>(ExecutorHandle, Mt5CommandType.iCustom, cmdParams);
|
return SendCommand<int>(ExecutorHandle, Mt5CommandType.iCustom, cmdParams);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3100,8 +3100,8 @@ namespace MtApi5
|
|||||||
public int iCustom(string symbol, ENUM_TIMEFRAMES period, string name, bool[] parameters)
|
public int iCustom(string symbol, ENUM_TIMEFRAMES period, string name, bool[] parameters)
|
||||||
{
|
{
|
||||||
Dictionary<string, object> cmdParams = new() { { "Symbol", symbol ?? string.Empty },
|
Dictionary<string, object> cmdParams = new() { { "Symbol", symbol ?? string.Empty },
|
||||||
{ "Period", (int)period }, { "Name", name ?? string.Empty },
|
{ "Timeframe", (int)period }, { "Name", name ?? string.Empty },
|
||||||
{ "Parameters", parameters }, { "ParamsType", ParametersType.Boolean } };
|
{ "Params", parameters }, { "ParamsType", ParametersType.Boolean } };
|
||||||
return SendCommand<int>(ExecutorHandle, Mt5CommandType.iCustom, cmdParams);
|
return SendCommand<int>(ExecutorHandle, Mt5CommandType.iCustom, cmdParams);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user