Black Algo Trading: Build Your Trading Robot

Trading Robots: The Comprehensive Course That Turns Beginners Into Skilled Algorithmic Traders (Learn MQL4 Algo Trading)
4.4 (738 ratings)
Instead of using a simple lifetime average, Udemy calculates a
course's star rating by considering a number of different factors
such as the number of ratings, the age of ratings, and the
likelihood of fraudulent ratings.
16,651 students enrolled Bestselling in Trading
Instructed by Lucas Liew Business / Finance
92% off
Take This Course
  • Lectures 223
  • Length 16 hours
  • Skill Level All Levels
  • Languages English
  • Includes Lifetime access
    30 day money back guarantee!
    Available on iOS and Android
    Certificate of Completion
Wishlisted Wishlist

How taking a course works


Find online courses made by experts from around the world.


Take your courses with you and learn anywhere, anytime.


Learn and practice real-world skills and achieve your goals.

About This Course

Published 10/2014 English

Course Description

**** Course featured on Investopedia ****

Most Popular Trading (and Algorithmic Trading Course) on Udemy with over 16,000 students!

This course is the first part of a 5 part mega course. Scroll down to see the full list of Chapters.

Course last updated on January 2017!


Huh? What is a Trading Robot?

A Trading Robot a set of programming code that analyse and trade the market on its own. Trading Robots allow you to trade the markets without human intervention!

What does this course offer?

This course teaches the insider knowledge to designing, testing and coding long term profitable robots. We do NOT promise that you will strike it rich overnight. We do not make ridiculous claims (like those you see in newspapers and online ads) that you will make $3722 every night.

This course WILL, however, offer you the years of experience we have in building Robots. You will understand the pitfalls and keys to success to design great robots. You will avoid the hundreds of mistakes we made in our journey.

This course does not only teach programming. Programming is just the tool we use to execute our ideas. The main essence of the course is the design theories behind the Trading Robots. These theories and knowledge come from years of industry practice.

At the end of the day you will acquire the ability to generate a trading idea, code the idea (within 1hour), test the idea, see the strength and flaws in the idea, improve and finally execute the idea.

Chapters - Full List (These are Sections NOT Lectures!)
<Course 1: Black Algo Trading – Build Your Trading Robot>

  1. Here's What You Are In For!
  2. Programming Basics 1: Variables and Conditional
  3. Robot 1: Adeline - Our First Robot!
  4. Uncommon Common Sense. Design Effective And Logical Robots
  5. Garbage In, Garbage Out. Understanding Data
  6. Programming Basics 2: Loops
  7. Robot 2: Belinda - Utilising Volatility!
  8. To Buy Big or Small? Position Sizing and Money Management
  9. Robot 2A: Belinda Upgraded (No Gambler's Ruin for Me!)
  10. Where To Start? Idea Generation and Expectations
  11. Programming Basics 3: Functions, Time and Self-Learning
  12. Relevant Statistics 101!
  13. Validating Your Robot: Backtesting!
  14. Programming Basics 4: Arrays And Indicators
  15. Robot 3: Clarissa
  16. What A Mess - Managing Trades, Orders and Positions
  17. Robot 4: Desiree
  18. Design Theories - Improving Robots By Manipulating Time, Entries and Exits
  19. Add A Twist To Your Orders - Advance Order Management
  20. Robot 5: Desiree 2.0
  21. Buff Up Your Robot Responsibly - Optimisation Without Curve Fitting
  22. Bonus Stuff!

<Course 2: BAT201 - Advanced Trading Robots and Crowd Manipulation (MQL4 + VBA)>

  1. Recap of What We Learnt
  2. Perfect Your Bet Sizing - Advanced Position Sizing Methods
  3. Robot 6: Elizabeth
  4. Programming Basics 5: Clean Up Your Codes! Simple Is Fast!
  5. Garbage In, Garbage Out Again. Advanced Data Cleaning (Part 1)
  6. Excel VBA - Using Excel Magic to Improve Our Trading
  7. Garbage In, Garbage Out Again. Advanced Data Cleaning (Part 2)
  8. I Like Colours And Shapes - Adding Graphics
  9. Robot 7: Faye
  10. Try And Try Again - Monte Carlo And Applications
  11. Not Rocket Science - Understanding Market Behaviour
  12. Breaking It Down - Testing Inefficiencies and Robots Separately
  13. Bonus Stuff!

<Course 3: BAT202 - Algorithmic Trading Robots: Quantifying Market Behaviour>

  1. Recap of What We Learnt
  2. Looking Outwards - Trading on External Events
  3. Robot 8: Grace
  4. Understanding Performance - High Returns Are Meaningless!
  5. When Robots Fail - How, Why And Is It My Fault?
  6. Robot 9: Haley
  7. Walking Forward - Advanced Optimisation
  8. Let's Academise This! - Advanced Statistics And Econometrics
  9. Robot 10: Iris
  10. I Want Numbers! - Quantifying Market Behaviour
  11. Ring Ring! Notify Yourself When Something Goes Wrong (Or Right)
  12. Robot 10A: Iris 2.0

<Course 4: BAT203 - Live Algo Trading: Managing an Army of Robots>

  1. Recap of What We Learnt
  2. Looking To The Future! - Advanced Optimisation 2.0
  3. Time For Equities, Commodities And Bonds
  4. Everything is Relative - Relative Value Strategies
  5. Robot 11: Judy
  6. Many Robots One System - Running A Portfolio Of Robots
  7. Robot 12: Kate
  8. Cash Is King! - Running Robots With Real Money
  9. Watch Her Well - Monitoring Your Robot(s)
  10. Buy This Robot, It Makes 100% A Month! - Evaluating Commercial Robots
  11. Bonus Stuff!

<Course 5: BAT302 - Machine Learning: Trading Robots That Think For Themselves>

  1. Skynet - Robots That Think For Themselves
  2. Robot 13: Lynda (Skynet)
  3. Bonus Stuff!

Note: This list may be subject to change.

Frequently Asked Questions

// I'm a complete beginner. Is this course suitable for me?

Yes, this course is designed for beginners. The course is prepared in a progressive manner. It entails a graphical, step-by-step approach with minimal technical jargon.
But of course, you will need to put in more effort than someone with a stronger background to master the content.

// I can't code! Is this course suitable for me?

Yes, this course is designed for those who are new at programming. We have a 24/7 support channel to assist you with coding issues!

// I can code! Is this course suitable for me?

If you can code MQL4, you can probably skip the coding lectures. The value you gain will come mainly from the lectures on Robot Design and Market Theories.

// What if I am unhappy with the course?

We would never want you to be unhappy! If you are unsatisfied with your purchase, contact Udemy in the first 30 days and they will give you a full refund. No questions asked.

// This is a Forex course?

No, it is not. Think of it as a general algorithmic trading course. The course content is not specific to any asset class. However, we use forex for most of our examples initially as it is beginner friendly. In the later chapters (of the later courses), we will talk about other asset classes.

// How long do I have access to the course?

How does lifetime access sound? After enrolling, you have unlimited access to this course for as long as you like - across any and all devices you own.

About the Course

  • Free: All software and data used are free! All robot testing and trading done in this course are done using virtual money!
  • Unconditional 30 days money-back guarantee – You have absolutely nothing to lose
  • Full lifetime access!
  • Access to all future lectures. Over 30 sections (150 lectures) to be added in the coming months. (Note that Course Price will rise as more sections are added)
  • 24/7 access to Luke Code Support (LCS). LCS is an email conduit where you can ask for help for any programming issues.

What are the requirements?

  • Computer, internet connection (Either Windows, Mac or Linux but Windows preferred)
  • Basic Excel

What am I going to get from this course?

  • Understand how Trading Robots are both an art and science
  • Build logical long-run money-making Trading Robots
  • Code a Trading Robot in less than 1 hour
  • Understand why badly planned Trading Robots fail
  • Learn how to adapt and survive the financial markets
  • Code in MQL4 and easily pick up C++ and JAVA
  • Free up plenty of time by automating trading
  • Start a side-job that doesn’t interfere with office hours
  • Increase your chances of employment in Algorithmic Trading firms
  • Understand the human element in automated trading
  • Differentiate a logical and profitable robot from a scam
  • Be a freelance coder (go do a few freelance jobs and earn back the cost of this course!)
  • Brag about a cool hobby at parties

Who is the target audience?

  • Those entering the workforce soon and want to explore their options
  • Those wanting to endeavour into trading as a side-job
  • Those wanting a guide who is on stand-by to assist them
  • Those in mid or quarter-life crises
  • Young adult and teens looking to trading as a career
  • Those looking to switch career and want to get up to date with algorithmic trading
  • Those wanting to understand advanced algorithmic trading and are looking for a starting point
  • Those looking for an interesting hobby
  • Who should not take this course: Those wanting to learn about High Frequency Trading. This course focuses on Low Frequency Trading
  • Who should NOT take this course: Those wanting a secret recipe to strike it rich overnight

What you get with this course?

Not for you? No problem.
30 day money back guarantee.

Forever yours.
Lifetime access.

Learn on the go.
Desktop, iOS and Android.

Get rewarded.
Certificate of completion.


Section 1: Here's What You Are In For!
What are Trading Robots? (And why should I build them?) (Part 1)
What are Trading Robots? (And why should I build them?) (Part 2)
The First Step - How To Start Your Journey?
2 pages
MT4 Installer Direct Download
Downloading Our Software (MT4)
MT4 for Mac
Introduction to MT4
MT4 Basic Guide
4 pages
Download Template
Structure of a Trading Robot (Part 1)
Structure of a Trading Robot (Part 2)
Structure of a Trading Robot (Part 3)
Why choose MT4 over other software?
3 pages
Our Holy Grail - Secret to Successful Trading Robots
1 page
Luke Code Support!
Hello and Thanks!
Section 2: Programming Basics: Variables And Conditions
The 3 Types of Code
1 page
Syntax - The ABCs of Coding (Part 1)
Syntax - The ABCs of Coding (Part 2)
Reserved Words - Words you cannot use!
1 page
Variables - The basic building blocks!
Download Code for Expressions
Expressions and Operations (Plus, Minus, Multiplication and Division)
Operations and Precedence - Who comes first?
Conditional - If this then that (Part 1)
Conditional - If this then that (Part 2)
Chapter 2 Summary
1 page
Our First Quiz - Let's play a game...
5 questions
Section 3: Robot 1: Adeline - Our First Robot!
Background to our Asset Class
5 pages
Chart Reading 101
Theory behind Robot Adeline
Download Codes for Adeline
Coding Adeline (Part 1)
Coding Adeline (Part 2)
Understanding Shift
1 page
Dry Run! - Our Robot Testing System (Part 1)
Dry Run! - Our Robot Testing System (Part 2)
3 Types of Testing Method (Simple)
Chapter 3 Summary
1 page
Bonus Robot Templates
Section 4: Uncommon Common Sense: Design Effective And Logical Robots
Trading Robot Development Guide - Everything You Need To Succeed (Part 1)
Trading Robot Development Guide - Everything You Need To Succeed (Part 2)
Trading Robot Development Guide - Everything You Need To Succeed (Part 3)
Pros and Cons of Trading Robots - Nothing is Perfect
2 pages
Calculating Long Term Expected Payout of a Robot
Useful Resources
Chapter 4 Summary
2 pages
Section 5: Garbage In, Garbage Out. Understanding Data
Data Sources and Storage
Data Management
2 pages
Download Dirty Data
Cleaning Data (Part 1)
Cleaning Data (Part 2)
Cleaning Data (Part 3)
Trading on Bad Ticks - Avoid the Scammers in the Markets
3 pages
We are giving away 3GB of data!
Our Second Quiz - Knowledge Is Power...
5 questions
Section 6: Programming Basics 2: Loops
Loops - Running a piece of code many times (Part 1)
Download Code for Loops
Loops - Running a piece of code many times (Part 2)
Section 7: Robot 2: Belinda - Utilising Volatility!
Quantifying Volatility - How Big are Average Price Movements?!
2 pages
Introducing our 2nd Robot: Belinda
Download Belinda
Coding and Testing Belinda
Section 8: To Buy Big Or Small? Position Sizing And Money Management
Enable Macros for Excel
Coin Flip Game - Understand Bet Sizing by Flipping Coins
Theory behind Bet Sizing (aka Position Sizing/Money Management)
Download Codes and Coin Flip game
Section 9: Robot 2A: Belinda 2.0 (No Gambler's Ruin for Me!)
Coding our Sizing Algorithm!
Upgrade time! - Adding Sizing Algos to Belinda
Sizing Algo for Deposit Currency
Brief Note - Sizing Algorithm for Forex vs CFDs!
Section 10: Where To Start? Idea Generation and Expectations
Expectation of Strategies and Equity Curves (Part 1)
Expectation of Strategies and Equity Curves (Part 2)
Preliminary Research - First step to building Robots (Part 1)
Preliminary Research - First step to building Robots (Part 2)
Strategy Creation Thought Process - A Closer look at Market Prudence
2 pages
Understanding Entries and Exits
Sources of Ideas!
2 pages
What are Leading and Lagging Indicators?
1 page
David vs Goliath – Can we outwit the big Funds?
2 pages
Section 11: Programming Basics 3: Functions, Time And Self-Learning
Still lost at programming? Self-Learning Methods
2 pages
Types of Errors! And Common Coding Problems!
1 page
Download Code
Debugging Demonstration - Understanding the Thought Process
Functions - Little Factories
Coding User-Defined Functions
When 2 lines cross - Creating a Cross Function
Understanding Time and Dates
1 page
Coding Practice!
2 pages

Students Who Viewed This Course Also Viewed

  • Loading
  • Loading
  • Loading

Instructor Biography

Lucas Liew, Developer and Trader

Lucas has been designing and building algorithmic trading robots since 2010. He worked at a proprietary trading firm and teaches programming for financial applications to Government of Singapore Investment Corporation (GIC), one of the largest sovereign wealth funds in the world.

Lucas does consulting for algorithmic trading projects. He has over 5 years of experience coaching in MQL4, MATLAB and VBA. He was the Head of the Quantitative Finance Society in Singapore Management University.

Lucas has been featured on Investopedia and is one of the most viewed writers in Algorithmic Trading on Quora.

Ready to start learning?
Take This Course