mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-07-27 18:47:55 +00:00
MQL5: fixed parsing arguments of function iCustom
This commit is contained in:
Binary file not shown.
+8
-4
@@ -3065,15 +3065,15 @@ string Execute_iCustom()
|
||||
int intParams[];
|
||||
ArrayResize(intParams, size);
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
intParams[i] = jaParams.getInt(i);
|
||||
}
|
||||
result = iCustomT(symbol, (ENUM_TIMEFRAMES)timeframe, name, intParams, size);
|
||||
}
|
||||
break;
|
||||
case 1: //Double
|
||||
{
|
||||
int doubleParams[];
|
||||
double doubleParams[];
|
||||
for (int i = 0; i < size; i++)
|
||||
doubleParams[i] = jaParams.getDouble(i);
|
||||
ArrayResize(doubleParams, size);
|
||||
result = iCustomT(symbol, (ENUM_TIMEFRAMES)timeframe, name, doubleParams, size);
|
||||
}
|
||||
@@ -3082,13 +3082,17 @@ string Execute_iCustom()
|
||||
{
|
||||
string stringParams[];
|
||||
ArrayResize(stringParams, size);
|
||||
for (int i = 0; i < size; i++)
|
||||
stringParams[i] = jaParams.getString(i);
|
||||
result = iCustomT(symbol, (ENUM_TIMEFRAMES)timeframe, name, stringParams, size);
|
||||
}
|
||||
break;
|
||||
case 3: //Boolean
|
||||
{
|
||||
string boolParams[];
|
||||
bool boolParams[];
|
||||
ArrayResize(boolParams, size);
|
||||
for (int i = 0; i < size; i++)
|
||||
boolParams[i] = jaParams.getBool(i);
|
||||
result = iCustomT(symbol, (ENUM_TIMEFRAMES)timeframe, name, boolParams, size);
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user