I am creating EA on MT4 and want to retrieve the latency value ( e.g. 123 ms ) by MQL4 code.
Is it do-able?
I can't find this feature in MQL4 reference.
I am creating EA on MT4 and want to retrieve the latency value ( e.g. 123 ms ) by MQL4 code.
Is it do-able?
I can't find this feature in MQL4 reference.
Yes, it is do-able
MQL4/MQL5 does not give you a direct tool to get either an End-to-End socket-based communication/transport latency or an End-to-End eXecute-Trading-Operation client/server transaction latency.
Nevertheless, you may get both latency envelopes indirectly.