Does scanning current positions with OrderSelect() and OrderType() use client or server?

 

Hello

Could you please help me?

I want to control current status of my positions every time EA runs using OrderSelect() and OrderType() functions. does this fecth data from server every time or does it work on client? does it cause flooding error?

regards

 

no answer? even from MQL staff?

 
AR78:

no answer? even from MQL staff?


Based on the amount of time that it takes, which is near zero, the data resides in the client

A request to the server will take 100 milliseconds or more, just for transit time.

use GetTickCount() for performance measurements to count milliseconds.

Often, the counter at the start and end of a section of code will be the same value, i.e. it took less than a millissecond to perform the task

int startTick = GetTickCount();

... some operation you want to measure...

Print("It took "+(GetTickCount() - startTick)+" milliseconds to perform");

 

Thanks phy