Merge branch Manage_symbols

This commit is contained in:
DW
2016-11-01 10:18:22 +02:00
6 changed files with 43 additions and 2 deletions
+15
View File
@@ -255,4 +255,19 @@ int _stdcall getStringValue(int expertHandle, int paramIndex, wchar_t* res)
return 0;
}
return 1;
}
int _stdcall getBooleanValue(int expertHandle, int paramIndex, int* res)
{
try
{
bool val = (bool)MtServerInstance::GetInstance()->GetCommandParameter(expertHandle, paramIndex);
*res = val == true ? 1 : 0;
}
catch (Exception^ e)
{
Debug::WriteLine("[ERROR] MT5Connector:getBooleanValue(): " + e->Message);
return 0;
}
return 1;
}
+2 -1
View File
@@ -14,4 +14,5 @@ EXPORTS initExpert
getCommandType
getIntValue
getDoubleValue
getStringValue
getStringValue
getBooleanValue