Download MetaTrader 5
To add comments, please log in or register
Publish your article to let the traders see it in MetaTrader 5!
Taskin Osman
803
Taskin Osman 2014.12.08 07:13 

Hi,

i have made an observation. Actually i am doing this observation for 2-3 years on same broker. I thought maybe i am wrong and evaluate things wrong but i am now read to clarify this. I would like to hear opinions from community please.

 Problem: There is price difference between MarketInfo(Symbol(),MODE_BID)  & MarketInfo(Symbol(),MODE_ASK) and the price on Chart

Screenshoot:

Price Discrepancy between Visual and Programmatical 

Screencast:

http://screencast.com/t/H26EBppC

 You will see on screencast that this is an ongoing problem, its not only 1 tick.

 Code i have used:

#include <libvisual.mqh>
#property version   "1.00"
#property strict
int OnInit() {  return(INIT_SUCCEEDED);   }
void OnDeinit(const int reason) { }

void OnTick()
{
  int pos = 4;

   print2("Symbol",Red,Symbol(),White,pos,20);
   print2("MODE_BID",Gold,MarketInfo(Symbol(),MODE_BID),White,pos,20);
   print2("MODE_ASK",Gold,MarketInfo(Symbol(),MODE_ASK),White,pos,20);
   print2("IsDemo",Gold,IsDemo(),White,pos,20);
   print2("AccountNumber",Gold,AccountNumber(),White,pos,20);
   print2("TimeCurrent",Gold,TimeToString(TimeCurrent(),TIME_DATE|TIME_MINUTES|TIME_SECONDS),White,pos,20);          
}

 For me discrepancy between MODE_BID and chart might lead to big problems.

Is this a wrong configuration? Scam? Do i evaluate this thing wrong?

regards 

Carl Schreiber
5934
Carl Schreiber 2014.12.08 10:30  

I have once realized the similar problem on the demo account of Hotforex: https://www.mql5.com/en/forum/143082

The chart displays the Commission. The Bids and Asks provided to an EA were correct even though s.th. else was shown. It's a feature not a bug I was told.

Halley
198
Halley 2014.12.08 13:25  

Yes, this is feature that can be seen among many brokers, mostly with their live accounts.

Here is another discussion https://www.mql5.com/en/forum/144280  for the topic.

/
To add comments, please log in or register