Expert Advisor Programming for MetaTrader 4
A Practical Guide to Learning MQL4

(2015 Edition) The original book for beginners to learn MQL4 programming has been updated for the latest MetaTrader 4 features.
Expert Advisor Programming for MetaTrader 4 is a practical guide to programming expert advisors, indicators and scripts in the MQL4 language. Leverage the latest features imported from MQL5, including object-oriented programming, enumerations, structures and more.
This book will teach you the following concepts:
- The basics of the MQL4 language, including variables and data types, operators, functions, event handlers, and object-oriented programming.
- Open, modify and close market and pending orders.
- Add stop loss and take profit prices to an open position.
- Add a flexible trailing stop and/or break even stop to your strategy.
- Manage your trade risk with money management.
- Use pending orders to scale in and out of positions.
- Use price, time and indicator data in your expert advisors.
- Control program execution by trading on the open of a new bar, and add a trade timer to your strategy.
- Walk through the creation of several basic trading strategies from start to finish.
- Inform the user with dialog boxes, email alerts, mobile notifications and sounds.
- Draw trend lines, arrows and text labels on the chart.
- Read and write data to CSV files.
- Learn the basics of creating indicators, scripts and libraries in MetaEditor.
- Debug, test and optimize your trading strategy.
Whether you’re a trader with little to no programming experience, or an experienced programmer who has worked in other languages, Expert Advisor Programming for MetaTrader 4 will give you the essential knowledge to quickly and easily create fully-featured expert advisors for the MetaTrader 4 platform.