From 879a907c5cd3be317ecfe8cd0788a7d8874af1c4 Mon Sep 17 00:00:00 2001 From: Joe Date: Sat, 30 Jan 2021 17:29:58 +0800 Subject: [PATCH] Fix: error-checking condition was inverted. Similar to previously fix on Ln 5359 in void Execute_SymbolInfoString() by hectorli #173 update IF checking (commit 26de553 on 27 Aug 2019), same error-checking condition was also inverted in Ln 2948 in void Execute_iBandsOnArray(). --- mq4/MtApi.mq4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mq4/MtApi.mq4 b/mq4/MtApi.mq4 index e7325d76..a4de19aa 100755 --- a/mq4/MtApi.mq4 +++ b/mq4/MtApi.mq4 @@ -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); @@ -8313,4 +8313,4 @@ void ExecuteRequest_SymbolInfoTick(JSONObject *jo, string &response) joTick.put("Volume", new JSONNumber(tick.volume)); response = CreateSuccessResponse("Tick", joTick); -} \ No newline at end of file +}