Merge branch 'dev'

This commit is contained in:
Viacheslav Demydiuk
2025-10-07 17:04:48 +03:00
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -1137,7 +1137,7 @@ namespace MtApi
return SendCommand<double>(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<string, object> cmdParams = new() { { "Symbol", symbol },
{ "Timeframe", timeframe }, { "Period", period },
@@ -1147,7 +1147,7 @@ namespace MtApi
return SendCommand<double>(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<string, object> cmdParams = new() { { "Total", total },
{ "Period", period }, { "Deviation", deviation },
BIN
View File
Binary file not shown.
+2 -2
View File
@@ -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);