diff --git a/MtApi/MtApiClient.cs b/MtApi/MtApiClient.cs index 388831db..09780b26 100755 --- a/MtApi/MtApiClient.cs +++ b/MtApi/MtApiClient.cs @@ -1137,7 +1137,7 @@ namespace MtApi return SendCommand(ExecutorHandle, MtCommandType.iBearsPower, cmdParams); } - public double iBands(string symbol, int timeframe, int period, int deviation, int bandsShift, int appliedPrice, int mode, int shift) + public double iBands(string symbol, int timeframe, int period, double deviation, int bandsShift, int appliedPrice, int mode, int shift) { Dictionary cmdParams = new() { { "Symbol", symbol }, { "Timeframe", timeframe }, { "Period", period }, @@ -1147,7 +1147,7 @@ namespace MtApi return SendCommand(ExecutorHandle, MtCommandType.iBands, cmdParams); } - public double iBandsOnArray(double[] array, int total, int period, int deviation, int bandsShift, int mode, int shift) + public double iBandsOnArray(double[] array, int total, int period, double deviation, int bandsShift, int mode, int shift) { Dictionary cmdParams = new() { { "Total", total }, { "Period", period }, { "Deviation", deviation }, diff --git a/mq4/MtApi.ex4 b/mq4/MtApi.ex4 index 89804d3b..9d1b3d0a 100755 Binary files a/mq4/MtApi.ex4 and b/mq4/MtApi.ex4 differ diff --git a/mq4/MtApi.mq4 b/mq4/MtApi.mq4 index 165b66c1..08696492 100755 --- a/mq4/MtApi.mq4 +++ b/mq4/MtApi.mq4 @@ -2272,7 +2272,7 @@ string Execute_iBands() GET_STRING_JSON_VALUE(jo, "Symbol", symbol); GET_INT_JSON_VALUE(jo, "Timeframe", timeframe); GET_INT_JSON_VALUE(jo, "Period", period); - GET_INT_JSON_VALUE(jo, "Deviation", deviation); + GET_DOUBLE_JSON_VALUE(jo, "Deviation", deviation); GET_INT_JSON_VALUE(jo, "BandsShift", bands_shift); GET_INT_JSON_VALUE(jo, "AppliedPrice", applied_price); GET_INT_JSON_VALUE(jo, "Mode", mode); @@ -2287,7 +2287,7 @@ string Execute_iBandsOnArray() GET_JSON_PAYLOAD(jo); GET_INT_JSON_VALUE(jo, "Total", total); GET_INT_JSON_VALUE(jo, "Period", period); - GET_INT_JSON_VALUE(jo, "Deviation", deviation); + GET_DOUBLE_JSON_VALUE(jo, "Deviation", deviation); GET_INT_JSON_VALUE(jo, "BandsShift", bands_shift); GET_INT_JSON_VALUE(jo, "Mode", mode); GET_INT_JSON_VALUE(jo, "Shift", shift);