From 69d98b66b360fc2a76283fda3d84d5984031fef4 Mon Sep 17 00:00:00 2001 From: Viacheslav Demydiuk Date: Fri, 25 Jul 2025 17:11:55 +0300 Subject: [PATCH] MtApi5: updated paramter's names in function iCustom --- MtApi5/MtApi5Client.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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); }