diff --git a/MtApi5/MtApi5Client.cs b/MtApi5/MtApi5Client.cs index 95972560..675bf9b6 100755 --- a/MtApi5/MtApi5Client.cs +++ b/MtApi5/MtApi5Client.cs @@ -3055,8 +3055,8 @@ namespace MtApi5 public int iCustom(string symbol, ENUM_TIMEFRAMES period, string name, double[] parameters) { Dictionary cmdParams = new() { { "Symbol", symbol ?? string.Empty }, - { "Period", (int)period }, { "Name", name ?? string.Empty}, - { "Parameters", parameters }, { "ParamsType", ParametersType.Double} }; + { "Timeframe", (int)period }, { "Name", name ?? string.Empty}, + { "Params", parameters }, { "ParamsType", ParametersType.Double} }; return SendCommand(ExecutorHandle, Mt5CommandType.iCustom, cmdParams); } @@ -3070,8 +3070,8 @@ namespace MtApi5 public int iCustom(string symbol, ENUM_TIMEFRAMES period, string name, int[] parameters) { Dictionary cmdParams = new() { { "Symbol", symbol ?? string.Empty }, - { "Period", (int)period }, { "Name", name ?? string.Empty }, { "Parameters", parameters }, - { "ParamsType", ParametersType.Int } }; + { "Timeframe", (int)period }, { "Name", name ?? string.Empty }, { "Parameters", parameters }, + { "Params", ParametersType.Int } }; return SendCommand(ExecutorHandle, Mt5CommandType.iCustom, cmdParams); } @@ -3085,8 +3085,8 @@ namespace MtApi5 public int iCustom(string symbol, ENUM_TIMEFRAMES period, string name, string[] parameters) { Dictionary cmdParams = new() { { "Symbol", symbol ?? string.Empty }, - { "Period", (int)period }, { "Name", name ?? string.Empty }, - { "Parameters", parameters }, { "ParamsType", ParametersType.String } }; + { "Timeframe", (int)period }, { "Name", name ?? string.Empty }, + { "Params", parameters }, { "ParamsType", ParametersType.String } }; return SendCommand(ExecutorHandle, Mt5CommandType.iCustom, cmdParams); } @@ -3100,8 +3100,8 @@ namespace MtApi5 public int iCustom(string symbol, ENUM_TIMEFRAMES period, string name, bool[] parameters) { Dictionary cmdParams = new() { { "Symbol", symbol ?? string.Empty }, - { "Period", (int)period }, { "Name", name ?? string.Empty }, - { "Parameters", parameters }, { "ParamsType", ParametersType.Boolean } }; + { "Timeframe", (int)period }, { "Name", name ?? string.Empty }, + { "Params", parameters }, { "ParamsType", ParametersType.Boolean } }; return SendCommand(ExecutorHandle, Mt5CommandType.iCustom, cmdParams); }