• Link to Facebook
  • Link to X
  • Link to Instagram
  • Link to Youtube
  • Link to LinkedIn
  • Link to Mail
Free PDF: The 15-Minute Swing Trader's Checklist, the daily routine of a trader since 2007
Synapse Trading
  • Mentoring
    • Trading Mastery Program
    • All mentoring options
  • Signals
    • Daily trading signals
    • Signals trade log
  • Results
    • Student results and testimonials
    • Public trade log, losses left in
  • Free guides
    • Start here
    • Trading foundations
    • Technical analysis
    • Strategies and systems
    • Risk and money
    • Trading psychology
    • Markets and products
    • Free trading guides
    • Tools and resources
    • Blog
  • About
    • My background
    • My trading journey
    • Media and interviews
    • Travel log
  • Contact
    • Contact me
    • Partnerships
  • Start free
  • Click to open the search input field Click to open the search input field Search
  • Menu Menu
Spencer Li

Book Summary: Expert Advisor Programming by Andrew Young

Trading Foundations
Code your own trading robot - book summary

Want the daily routine? Get the free 15-Minute Swing Trader’s Checklist. Get it free →

Table of Contents

Toggle
  • Expert Advisor Programming by Andrew Young: Book Review and What It Teaches
    • What is an expert advisor (EA)?
    • What is the book about?
    • About the author
    • The 10 key ideas from the book
    • How do you apply the book to your own trading?
    • What the book does not cover
    • Where the human edge comes in
    • FAQ
    • Related

Expert Advisor Programming by Andrew Young: Book Review and What It Teaches

Last updated: 2 October 2026 · By Spencer Li, CFTe


“Expert Advisor Programming” by Andrew Young is a hands-on, beginner-friendly guide to building automated trading systems (expert advisors, or EAs) on the MetaTrader 4 platform using the MQL4 programming language. It walks you from the basics of the MetaEditor environment, through writing and testing a strategy, optimizing its parameters, and adding risk management, to debugging and forward-testing the finished robot. It is best suited to traders and programmers with a basic grounding in both, though a motivated beginner can follow it. Its core message is honest and worth repeating: an EA is only a tool, and it cannot rescue a strategy that has no real edge to begin with. Note one limitation up front: the book does not cover machine learning or AI, so treat it as a foundation in classic MQL4 automation.

Here is what the book actually covers, who should read it, and where it stops.

An EA cannot add an edge that is not there. Summary card for the post: Book Summary: Expert Advisor Programming by Andrew Young.

What is an expert advisor (EA)?

An expert advisor (EA) is a program that runs inside MetaTrader 4 and trades automatically on your behalf. It reads price data, applies the rules you have coded, and then places, manages, and closes orders without you clicking anything. You write it in MQL4 (MetaQuotes Language 4, the platform’s built-in programming language) using the MetaEditor (the code editor bundled with MetaTrader 4).

In plain terms, an EA is your trading plan turned into software. That is the appeal, and also the trap. If your plan has an edge, the EA executes it tirelessly and without emotion. If your plan does not, the EA loses money faster and more consistently than you ever could by hand.

One expert advisor box with two lanes: a strategy with an edge goes in and gets run; a strategy with no edge goes in and loses faster
An EA only repeats your rules, so it cannot add an edge that is not there.

What is the book about?

The book is built in three parts, and the structure tells you the intended path.

PartWhat it coversWhat you walk away able to do
Part 1: FoundationsThe MetaTrader 4 platform, the MQL4 language, and the MetaEditor environmentRead and write basic MQL4, find your way around the tools
Part 2: Building the EACreating and testing a strategy, optimizing parameters, implementing risk managementTurn a trading idea into a working, risk-managed robot
Part 3: Hardening itDebugging, troubleshooting, backtesting, and forward testingFind the bugs and pressure-test the system before it touches real money

The main message is the one most beginners skip past: EA programming is a powerful tool, but it rewards a solid understanding of both the markets and the language. The code is the easy half. The edge is the hard half.

About the author

Andrew R. Young publishes through Edgehill Publishing. Besides this MQL4 book (2009, revised 2015), he wrote Expert Advisor Programming for MetaTrader 5 (2010; second edition 2018).

The 10 key ideas from the book

These are the points the book keeps returning to. Read them as a checklist for anyone thinking about automating a strategy.

  1. Learn the platform first. A working knowledge of MetaTrader 4 and the MQL4 language is the price of entry for building any EA.
  2. The strategy comes before the code. A profitable trading strategy is the first step. The EA is just the delivery mechanism.
  3. Optimize with caution. Over-optimization (overfitting) tunes a system so tightly to past data that it falls apart on new data. More optimization is not more profit.
  4. Bake in risk management. Risk control is not a bolt-on. It belongs inside the system from the start.
  5. Backtest and forward-test. Backtesting (running the EA over historical data) and forward testing (running it live on small or demo capital) are both needed to judge whether it actually works.
  6. Budget time for debugging. Debugging and troubleshooting are slow, unglamorous, and necessary. This is most of the real work.
  7. Use functions and libraries. Reusable functions and libraries make an EA more efficient and far easier to maintain.
  8. Pull in external data where it helps. External data sources can extend what an EA reacts to.
  9. Add custom indicators. Custom indicators can sharpen the signals an EA trades on.
  10. Optimization techniques have a ceiling. Parameter optimization can improve performance, but only on top of a strategy that already has an edge.

How do you apply the book to your own trading?

The book pairs each idea with a practical move. Here is the applied version, in the order you would actually do them.

  1. Define a real edge by hand first. Analyze the markets, find the pattern or trend you can trade, and prove it works manually before you write a line of code.
  2. Optimize parameters, but lightly. Test combinations and pick a robust one over the single best-fit curve.
  3. Code in your risk rules. Stop loss and take profit are not optional features. They are what keep one bad run from ending the account.
  4. Backtest, then forward-test. Use both to surface problems the other one hides.
  5. Debug systematically. Expect errors, and fix them methodically rather than guessing.
  6. Write maintainable code. Use functions and libraries so the next change does not break three other things.
  7. Layer in external data where it genuinely adds signal.
  8. Add custom indicators to refine entries and exits.
  9. Apply optimization to squeeze the system, knowing it cannot manufacture an edge that was never there.
  10. Monitor and adjust continuously. A live EA is not “set and forget”. Markets change, and the robot needs minding.

What the book does not cover

A few honest boundaries, so you buy it for the right reasons.

  • It is built around MetaTrader 4 specifically, though the concepts carry over to other platforms.
  • It mostly uses forex examples, but the methods apply to other markets too.
  • It assumes a basic grounding in trading and programming. A complete beginner can follow it, with effort.
  • It does not cover machine learning or AI. If you came for an AI-trading book, this is not it. It is a classic-automation foundation.

Where the human edge comes in

Here is the part the book is quietly honest about, and the part I want to underline. An EA will execute your rules flawlessly, around the clock, with no fear and no greed. What it will never do is supply the edge. It cannot tell you that your strategy is curve-fit, that your backtest is lying to you, or that the market regime that made it work has quietly ended. Automation removes the emotion and the manual labor. It does not remove the need for judgment. The code is the cheap half now. Knowing whether the strategy underneath it is real, and pulling the plug when it stops being real, is the human edge, and it is the first of the Five Edges no robot can trade for you.

FAQ

Is “Expert Advisor Programming” by Andrew Young good for beginners?
It is suitable for traders and programmers who have a basic understanding of both. A complete beginner can follow it with effort, but it is not a no-prerequisites book. The willingness to learn matters more than prior expertise.

What is an expert advisor in MetaTrader 4?
An expert advisor (EA) is a program that runs inside MetaTrader 4 and trades automatically using rules you code in the MQL4 language. It places, manages, and closes orders without manual input.

Does the book cover AI or machine learning for trading?
No. The book covers classic MQL4 automation, strategy testing, optimization, risk management, and debugging. It does not cover machine learning or AI.

What programming language do you need to build an EA?
MQL4 (MetaQuotes Language 4), the built-in language of MetaTrader 4. You write it in the MetaEditor environment that ships with the platform.

Can an expert advisor make a losing strategy profitable?
No. An EA only executes the rules you give it. If the underlying strategy has no edge, automating it usually loses money faster and more consistently. The strategy has to work first.


Now that you have the map of what this book teaches, would you add it to your reading list? And if you have already built an EA, what tripped you up most: the code, or proving the strategy actually worked? Let me know in the comments.

For the wider reading list, see the pillar: Best Investing and Trading Books of All Time.

Want a system you can run by hand before you ever automate it? Grab the free 15-Minute Swing Trading Starter Kit. It is the exact routine I use to scan once a day and trade any market in 15 minutes, and it is the kind of edge worth proving manually before you hand it to a robot.


About the author. Spencer Li is The 15-Minute Trader and the founder of Synapse Trading. He is a Certified Financial Technician (CFTe) with 15+ years of trading, run from 70+ countries. He holds a B.Acc and B.BM from SMU. Every trade he takes is public, dated, losses left in. He teaches rules-based swing trading in 15 minutes a day, one system for any market.

Education, not financial advice. Synapse Trading is not licensed by MAS to advise on investment products. Trading carries risk of loss; past performance is not indicative of future results.


Related

Best Investing and Trading Books of All Time · Backtesting a trading strategy · Risk management for traders



Want the daily routine? Enter your email for the free 15-Minute Swing Trader's Checklist.

Free 5-page PDF, then occasional trading emails. Education only, not financial advice. Unsubscribe anytime. Kit stores your email in the US: see our privacy policy.

Want to learn the full method? The Trading Mastery Program teaches the 4 strategies I have traded since 2011. It suits beginners and experienced traders.

Rather follow the trades as they happen? Daily Trading Signals is our Telegram channel: my trade ideas with entry, stop and exit, and every trade is public.

Questions about this post? Ask in the free Telegram channel →

Educational content only, not personalised financial advice. Trading carries risk, including loss of capital. Past performance is not indicative of future results. Synapse Trading is not licensed or regulated by MAS.

by Spencer Li
Share this entry
  • Share on Facebook
  • Share on X
  • Share on WhatsApp
  • Share on Pinterest
  • Share on LinkedIn
  • Share on Tumblr
  • Share on Vk
  • Share on Reddit
  • Share by Mail
  • Visit us on Yelp
  • Link to Instagram
  • Link to Youtube
https://synapsetrading.com/wp-content/uploads/2026/10/expert-advisor-programming-andrew-young-card.webp 630 1200 Spencer Li https://synapsetrading.com/wp-content/uploads/2026/10/synapse-logo-horizontal-light.png Spencer Li2023-01-28 18:51:282026-10-22 13:21:33Book Summary: Expert Advisor Programming by Andrew Young

Free checklist

The 15-Minute Swing Trader’s Checklist

The daily and weekly routine I use to find, manage and review trades in about 15 minutes a day, trading since 2007.

Get the free checklist

Topics

  • Trading foundations
  • Technical analysis
  • Strategies and systems
  • Risk and money
  • Trading psychology
  • Markets and products

Synapse Trading

Swing trading for busy professionals, in 15 minutes a day.

Start free

Learn

  • Start here
  • Free trading guides
  • Blog
  • Tools and resources

Programs

  • Trading Mastery Program
  • Daily trading signals
  • Student results
  • Public trade log

Company

  • About
  • Contact me
  • Partnerships
  • Disclaimer
  • Privacy policy
  • Terms & Conditions

Synapse Trading Pte Ltd
Registration No. 201316168H
WhatsApp +65-8897-1204
info@synapsetrading.com

Contact Us

Synapse Trading Pte Ltd
Registration No. 201316168H

Whatsapp: +65-8897-1204
Telegram: @iamrecneps
Email: info@synapsetrading.com

Links

Disclaimer
Privacy policy
Terms & Conditions
Contact us
Partnerships

© 2012-2026 Synapse Trading | All rights reserved. Educational content only, not personalised financial advice. Trading carries risk, including loss of capital. Past performance is not indicative of future results. Synapse Trading is not licensed or regulated by MAS.
  • Link to Facebook
  • Link to X
  • Link to Instagram
  • Link to Youtube
  • Link to LinkedIn
  • Link to Mail
Link to: Book Summary: Evidence-Based Technical Analysis by David Aronson Link to: Book Summary: Evidence-Based Technical Analysis by David Aronson Book Summary: Evidence-Based Technical Analysis by David Aronson
Test your chart rules - book summary of Evidence-Based Technical Analysis
Link to: Fibonacci Analysis by Constance Brown: A Summary, and How to Pick a Range That Holds Up Link to: Fibonacci Analysis by Constance Brown: A Summary, and How to Pick a Range That Holds Up
Fibonacci levels, done properly - book summary of Fibonacci Analysis
Fibonacci Analysis by Constance Brown: A Summary, and How to Pick a Range That...
Scroll to top Scroll to top Scroll to top