Skip to content

Commit

Permalink
Fix so the Bid and Ask use the specified symbol, not the one attached…
Browse files Browse the repository at this point in the history
… to the chart
  • Loading branch information
jamessab committed Jan 8, 2022
1 parent 7465dce commit 08f6bba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MQL5/Include/mql4compat.mqh
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 08f6bba

Please sign in to comment.