Skip to content

Commit

Permalink
Merge pull request #248 from joecklau/patch-1
Browse files Browse the repository at this point in the history
Fix: error-checking condition was inverted.
  • Loading branch information
vdemydiuk committed Feb 10, 2021
2 parents b06e907 + 879a907 commit 2c24ec4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mq4/MtApi.mq4
Original file line number Diff line number Diff line change
Expand Up @@ -2945,7 +2945,7 @@ void Execute_iBandsOnArray()
}

param_index++;
if (getIntValue(ExpertHandle, param_index, total, _error))
if (!getIntValue(ExpertHandle, param_index, total, _error))
{
PrintParamError("iBandsOnArray", "total", _error);
sendErrorResponse(ExpertHandle, -1, _error, _response_error);
Expand Down Expand Up @@ -8313,4 +8313,4 @@ void ExecuteRequest_SymbolInfoTick(JSONObject *jo, string &response)
joTick.put("Volume", new JSONNumber(tick.volume));

response = CreateSuccessResponse("Tick", joTick);
}
}

0 comments on commit 2c24ec4

Please sign in to comment.