Libraries: CExecutionSafety - Ping + Execution Latency Guard for MQL5 EAs

 

CExecutionSafety - Ping + Execution Latency Guard for MQL5 EAs:

Include class that validates combined terminal ping + execution latency before trade operations. Returns false if threshold is exceeded.

CExecutionSafety - Ping + Execution Latency Guard for MQL5 EAs

Author: Dennis Muchiri Miano

 

The ping value must be converted to milliseconds. Otherwise, incorrect results will be displayed.

 TerminalInfoInteger ( TERMINAL_PING_LAST )/ 1000.0 ;