Before you risk malware and legal trouble, consider this: Contact the original developer.
Many developers are reasonable. Explain your situation:
Some developers will say no. Others will charge a fee (e.g., 50% of the original price). A generous few will send it for free. This is the only 100% safe, legal, and free method that yields perfect code.
Before you download any tool, you need to understand the legal landscape. How To Convert Ex4 To Mq4 Free
Warning: Using a decompiler on a commercial EA you did not write is both unethical and illegal in many jurisdictions. This article is for educational purposes and for recovering your own lost source code.
The honest answer is: It depends on your risk tolerance and technical skill.
If you are a hobbyist trying to learn from a free, unprotected indicator, using a free decompiler on an offline computer is a reasonable approach. You will get something workable after some manual cleanup. Before you risk malware and legal trouble, consider
If you are a professional managing client funds or relying on a commercial EA, free decompilation is too risky. The hidden bugs, malware threats, and legal liabilities outweigh the cost savings. Instead, either pay for a reputable decompilation service or (better yet) rewrite the strategy from scratch based on its observed behavior.
Final recommendation for most traders: Do not rely on decompilation. Use it only as a last resort to recover your own lost code. For everything else, request the source code from the developer or choose open-source EAs/indicators from GitHub.
If you have been trading on the MetaTrader 4 (MT4) platform for any length of time, you have likely encountered the frustrating file extension .ex4. You download an Expert Advisor (EA) or a custom indicator—perhaps one you paid for or received from a friend—only to find that it has no source code. You cannot edit the parameters, fix a bug, or even see how the logic works. The file is compiled, locked, and essentially a "black box." Some developers will say no
On the other hand, the .mq4 file format is the holy grail for MT4 developers and tinkerers. It is the human-readable source code. With the .mq4 file, you can modify the strategy, adjust risk management rules, and truly understand what the algorithm is doing.
So, how do you get from .ex4 to .mq4—and can you do it for free?
This article explores every legitimate (and less legitimate) method available. By the end, you will understand the technical hurdles, the legal landscape, the risks of malware, and the step-by-step process for attempting a free conversion.