Investment and Financial Freedom › What Are MQL4 and MT4? Beginner’s Guide to Building Your First Expert Advisor (EA)
MQL4 (MetaQuotes Language 4) is a programming language used to develop Expert Advisors (EAs), Indicators, Scripts, and Custom Functions on MetaTrader 4 (MT4) — one of the most popular Forex trading platforms.
1. Install MetaTrader 4 and MetaEditor

Create a New EA File




An Expert Advisor consists of three main functions:
After finishing your code, click Compile to convert it into an .ex4 file. Make sure there are no errors — your EA is now ready to use!

Then, open MT4 and go to Navigator > Expert Advisors. Drag your newly created EA onto the desired chart — your EA is now running.
Make sure the smiley icon in the top-right corner of your chart is smiling 😊 If it’s not, that means automated trading isn’t enabled yet.

Go to Tools > Options and enable One Click Trading.

Next, open the Expert Advisors tab and tick Allow automated trading. Reattach your EA to the chart — once the smiley face appears, it’s active!
