Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Forex Risk Management & Position Sizing for Trading Robots
New
109 students

Forex Risk Management & Position Sizing for Trading Robots

Lot size calculator, portfolio drawdown, currency exposure, margin and stress tests for forex EAs on 13 pairs
Last updated 11/2026
English
ArabicGerman

What you'll learn

  • Forex risk management per pair: measure risk in dollars, the daily move of one lot, not the lot size
  • Position sizing with equal risk: a lot size calculator for every pair from one division, in a spreadsheet
  • Diversification: measure how much a portfolio of currency pairs cuts the max drawdown, on real trades
  • Find hidden currency exposure and currency correlation: read 30+ open positions as a few currency bets
  • Add a second trading system that softens the drawdown, and test it at equal risk
  • Measure max drawdown on equity with open positions, not only on closed trades
  • Monte Carlo drawdown: reshuffle trading days to see how deep the drawdown of the same results could be
  • Choose leverage and check margin level and stop-out for the busiest moment of the year
  • Stress test an account: higher costs, a 2% currency move and margin in a deep drawdown
  • Run an example MT5 expert advisor in the tester and compare it with the trade list
  • Pick a lot for your own account and write the stop rules before you start trading

Course content

14 sections • 74 lectures • 3h 4m total length
  • 0.1 Forex Portfolio Risk Management: What This Course Is and Is Not4:15

    The one question of the course: you have one account and many instruments on it. How much risk does each instrument add, how much can the account take, and how do you use the instruments themselves to cut the drawdown? What the course covers, and what it does not promise.

    The course kit. Download Kit.zip from lesson 0.2 (the same file is attached to lesson 12.5). It holds the real data of the course: every trade of the example portfolio on 13 currency pairs, the lot calculator, the hourly equity with open positions, the first month of the monitored account, and one example Expert Advisor for MetaTrader 5 (ZZTrend_Example.mq5, lessons 9.1–9.8), a teaching example, not a ready trading solution.

    You need MetaTrader 5 and any spreadsheet program; no Python. Every table comes twice, as .xlsx for Excel and as .csv. README.md lists every file with the lessons that use it, and glossary_and_checklist.txt has the glossary of lesson 0.2 and the final checklist on one page.

  • 0.2 Risk Management Glossary: Ten Words You Will Need4:02

    Ten words used throughout the course, defined once, plus three basics for complete beginners: lot, point, and bid and ask. The same list is in the kit as a one-page file.

  • 0.3 Diversification First: $9,000 of Separate Drawdowns, $1,600 Together3:36

    The result before the method: on the 13 pairs of the example, the worst drawdowns of each pair on its own add up to about $9,000, while all 13 together on one account drew down about $1,600. The rest of the course explains why, and how to get the same effect on your own account.

Requirements

  • Basic trading terms: what a lot, a pip and a currency pair are (lesson 0.2 recaps them)
  • A spreadsheet program: Excel, LibreOffice or Google Sheets; no programming is required
  • MetaTrader 5 (free) only for the example expert advisor lessons; a demo account is enough

Description

This course contains the use of artificial intelligence.

Forex risk management for a whole account, not for one trade. If you run a trading robot or an expert advisor on several currency pairs, the real questions are about the portfolio: how much risk each pair adds, what lot size each one should get, how deep the account drawdown can go, and how much margin the account needs at its busiest moment. This course answers them with numbers, on one real example.

The example is a trend robot trading 13 forex pairs on one account, tested on thirteen months of tick data with real commissions and swaps. Traded one by one, the worst drawdowns of the 13 pairs add up to 8,983 dollars. Traded together on one account, the worst drawdown was 1,597 dollars. The robot itself is not the point: it is the material on which every idea of risk management and position sizing is measured, so that you can apply them to any multi-instrument account and any system.

What you will measure. Why the same lot is not the same risk, and how position sizing with equal risk fixes it with one division per pair. How diversification across currency pairs removes most of the drawdown, and where it stops working: on one real day, 32 open positions turned out to be mostly one bet of about 144,000 dollars against the US dollar. How a second, weaker trading system made the portfolio better (profit-to-drawdown 21.9 together). Why the drawdown measured on closed trades (1,597 dollars) understates the drawdown your account feels with open positions (2,839 dollars). How leverage, margin level and stop-out really work, and how to stress test an account before real money goes on it.

In this course you will:

  • Measure the risk of each forex pair in dollars: the daily move of one lot, not the lot size

  • Position sizing with equal risk: a lot for every pair from one division, in a spreadsheet

  • Measure how much a portfolio of currency pairs cuts the drawdown, on real trades

  • Find the hidden currency exposure: read 30+ open positions as a few currency bets

  • Add a second trading system that softens the drawdown, and test it at equal risk

  • Measure max drawdown on equity with open positions, not only on closed trades

  • Reshuffle trading days to see how deep the drawdown of the same results could be

  • Choose leverage and check margin level and stop-out for the busiest moment of the year

  • Stress test an account: higher costs, a 2% currency move and margin in a deep drawdown

  • Run an example MT5 expert advisor in the tester and compare it with the trade list

  • Pick a lot for your own account and write the stop rules before you start trading

What this course is not. It is not a trading strategy and it makes no promise of profit. The example robot is shown so that the risk can be measured on real trades, not as a recommendation. Every number on screen comes from a file in the kit, and you can recompute it in a spreadsheet.

What is included:

  • 72 video lectures, 3 h 05 min, including 8 practice assignments with their walkthrough

  • A downloadable kit: the trade lists of the test and of the second system, a lot calculator, a snapshot of open positions with currency rates, hourly equity, the first month of the monitored account, and the example MT5 expert advisor with its source code

  • A one-page glossary and a 14-point checklist from an idea to a portfolio on an account

  • Subtitles in 10 languages

How the course is made. The research, the data, the trading system and the lecture content are my own. The narration uses an AI clone of my voice, and AI tools helped with editing, translation of the subtitles and checking. Every number and slide was checked against the files it comes from.

Disclaimer. This course is educational. Nothing in it is financial or investment advice, a recommendation to buy or sell any instrument, or a promise of any result. Trading carries a substantial risk of loss.

Who this course is for:

  • Traders who run an expert advisor or trading robot on several forex pairs on one account
  • Algorithmic traders who want position sizing and risk management for a whole portfolio
  • Manual traders with many open positions who want to see their real currency exposure
  • Developers of MT5 expert advisors who need lot sizing, margin checks and stress tests
  • Not for people looking for a profitable strategy, signals or a promise of returns