Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Create Your First Trading Robot in Under an Hour MQL5 MA/RSI
New
51 students

Create Your First Trading Robot in Under an Hour MQL5 MA/RSI

Learn MQL5 basics by building a real MetaTrader 5 EA using Moving Average crossovers and RSI signals.
Last updated 9/2026
English
English [Auto],

What you'll learn

  • Build a complete MetaTrader 5 Expert Advisor from scratch using MQL5, from blank file to fully working robot.
  • Combine a Moving Average crossover with an RSI filter to generate buy and sell trade signals automatically.
  • Use indicator handles, buffers, and CopyBuffer() correctly to read MA and RSI values inside an EA.
  • Implement stop loss, take profit, and magic numbers so your EA manages its own trades safely on the chart.

Course content

1 section6 lectures44m total length
  • Intro and Installing Metatrader 54:49
  • Declaring Inputs and Global Variables8:53
  • OnInit() Function9:10
  • OnDeinit() Function2:05
  • OnTick() Function13:59
  • Backtesting5:59

Requirements

  • No prior coding experience required — just install MetaTrader 5 (free) and follow along step by step. Basic familiarity with trading concepts like buy/sell orders is helpful but not essential.

Description

Have you ever wanted to build your own automated trading robot but didn't know where to start? In this free, hands-on course, you'll learn how to build a complete Expert Advisor (EA) for MetaTrader 5 using MQL5 — from a blank file to a fully working trading robot — in under an hour.

We'll build "StarApp," an EA that combines two of the most widely used tools in technical trading: a Moving Average crossover and an RSI filter. You'll watch every line of code get written and explained in plain language, so even if you've never coded before, you'll understand exactly what's happening and why.

By the end of this course, you'll know how to:

  • Set up indicator handles for Moving Averages and RSI inside an EA

  • Read live indicator values using buffers and CopyBuffer()

  • Write buy and sell logic based on a crossover strategy confirmed by RSI

  • Add stop loss, take profit, and a magic number so your EA manages trades safely

  • Avoid duplicate trades on the same candle using time-based guards

This course is designed as a practical, code-first introduction to Expert Advisor development. Rather than abstract theory, you'll see a real, working strategy built step by step, using patterns you'll reuse in almost every EA you write going forward. Whether you're a trader who wants to automate your strategy or a beginner programmer curious about algorithmic trading, this course gives you a solid foundation and a working robot to show for it by the end.

No prior coding experience is required — just install MetaTrader 5 (free) and follow along.

Who this course is for:

  • This course is for traders who want to automate their strategies but don't know how to code, beginner MQL5 programmers who want a real working example instead of just theory, and anyone curious about how Expert Advisors actually work under the hood. It's also a great starting point if you're planning to build more advanced EAs later — this teaches you the core building blocks (indicators, buffers, trade execution) you'll reuse in almost every EA you write.