Where error 4752 comes from
It is commonly captured from GetLastError when an EA attempts a trade while terminal or program permissions block automated trading. The numeric value is listed in the official runtime error table, which is separate from MetaEditor compilation errors and trade server return codes.
Reset the last-error state before the suspected call, save its direct return value, and read GetLastError immediately afterward. This produces a causal log instead of a stale code.
