mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-07-27 18:47:55 +00:00
Issue #246: fixed type of parameter 'Deviation' in functions iBands, iBandsOnArray (MT4)
This commit is contained in:
@@ -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 },
|
||||
|
||||
Binary file not shown.
+2
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user