MT4 allows you to use automated trading strategies, known as expert advisors (EAs). You can select expert advisors to apply to your charts in the Navigator window.
To create your own expert advisors you use the MQL4 programming language. To get started, right-click Expert Advisor in the Navigator window, then select Create.
This opens MT4’s built-in MetaEditor, which displays the Expert Advisor Wizard.
Use the wizard to specify the type of the expert advisor you wish to create. Enter a name for your expert advisor, the developer’s name and the developer’s website in the General Properties window. Click Add to add a parameter to the expert advisor.
MT4 allows you to test an expert advisor before attaching it to your chart. The Strategy Tester shows you how an expert advisor would work on a selected instrument under certain market conditions. To access the Strategy Tester, click View and select Strategy Tester.
Select the EA you wish to test from the Expert Advisor drop-down menu, and the instrument you wish to run the test against from the Symbol menu.
Click Expert Properties to modify the settings before you run the test. Via the Optimization settings you can run multiple tests that mimic different market conditions.
You can choose one of five models for optimization by using the Optimized Parameter drop-down menu on the Testing tab.