Does MARKETINFO MODE-BID/ASK interact directly with the Broker or get its data locally

 

Hi

I'm asking this because I've recently introduced it into my EA and found strategy tests now taking ages and wondering whether the increase is due to the interaction with the broker.

I'm a newbie, so apologies if this has been asked before.


Thanks in advance

 

From documentation:


MODE_BID

9

Last incoming bid price. For the current symbol, it is stored in the predefined variable Bid

MODE_ASK

10

Last incoming ask price. For the current symbol, it is stored in the predefined variable Ask



https://docs.mql4.com/constants/environment_state/marketinfoconstants


Regards.

Symbol Properties - Environment State - Standard Constants, Enumerations and Structures - MQL4 Reference
Symbol Properties - Environment State - Standard Constants, Enumerations and Structures - MQL4 Reference
  • docs.mql4.com
A zero value of MODE_STOPLEVEL means either absence of any restrictions on the minimal distance for Stop Loss/Take Profit or the fact that a trade server utilizes some external mechanisms for dynamic level control, which cannot be translated in the client terminal. In the second case, GetLastError() can return error 130, because MODE_STOPLEVEL...
 
Jose Francisco Casado Fernandez:

From documentation:


MODE_BID

9

Last incoming bid price. For the current symbol, it is stored in the predefined variable Bid

MODE_ASK

10

Last incoming ask price. For the current symbol, it is stored in the predefined variable Ask



https://docs.mql4.com/constants/environment_state/marketinfoconstants


Regards.


Perfect. Thanks, Jose

 
Neils:

Perfect. Thanks, Jose

You are welcome.  Regards.