Does the function MarketInfo( Symbol(), MODE_SPREAD ) query the server or client terminal?
When working with a very volatile spread (e.g. AUDNZD) I find I want to average the spread tick by tick, but does that mean I'm making server requests every tick? I'm happy to pester the client terminal, but I don't want to repeatedly query the server like this.
Is there accepted good practice with regard to frequency of querying the server?
What about other functions? Where can I find out which functions are dealt with by the server and which are dealt with by the client terminal?
I would appreciate any guidance on this subject.
Trade commands go to the server.
OrderSend OrderModify OrderDelete
Do a timing test.
Server commands take a looong time to execute compared to local commands.
Much of it is just transit time to get to and back from the server.
Understand. It's a good test you suggest. Overnight, I also wondered if I could test the functions off-line. I'd expect all the functions to work except those that went to the server.
Anyway, thanks again. I will monitor the spread with vigor ;-)