From 08f6bbac8dd7bcb5db4457818dba744e448ec171 Mon Sep 17 00:00:00 2001 From: James Sablatura Date: Sat, 8 Jan 2022 21:21:52 +0000 Subject: [PATCH] Fix so the Bid and Ask use the specified symbol, not the one attached to the chart --- MQL5/Include/mql4compat.mqh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MQL5/Include/mql4compat.mqh b/MQL5/Include/mql4compat.mqh index e594856..5050813 100644 --- a/MQL5/Include/mql4compat.mqh +++ b/MQL5/Include/mql4compat.mqh @@ -430,9 +430,9 @@ double MarketInfo(string symbol, int type) case MODE_TIME: return((double) SymbolInfoInteger(symbol,SYMBOL_TIME)); case MODE_BID: - return(Bid); + return (SymbolInfoDouble(symbol, SYMBOL_BID)); case MODE_ASK: - return(Ask); + return(SymbolInfoDouble(symbol, SYMBOL_ASK)); case MODE_POINT: return(SymbolInfoDouble(symbol,SYMBOL_POINT)); case MODE_DIGITS: