
Meet an experienced forex trader and programmer who shares practical insights from years in prop trading, automation, backtesting, and mentoring, to guide your robot trading journey.
Learn programming for forex trading, from variables and control flow to OHLC arrays, then implement moving averages, RSI, and Bollinger bands to build an expert advisor with risk management.
Automate your forex trading to save time, scale across multiple pairs and strategies, and increase profit potential, while learning essential programming skills to build automated trading robots.
Discover updates about Bloom Creating in place of MGG and Bloom Trading, with social media handles; disregard MTV links and consult the YouTube channel and website for details.
Learn what expert advisers are and how to build forex trading robots on MetaTrader 4 that monitor markets, apply algorithmic criteria, and automatically enter or notify on trades.
Learn MQL4, the MetaTrader 4 language, to build expert advisors, custom indicators, scripts, and libraries, using the comprehensive MetaTrader documentation and MetaEditor.
Create and test forex code by building scripts that run once, then develop expert advisors that execute on every price update, and explore custom indicators and include files.
Create a test script in MetaTrader’s MetaEditor to print hello world using alerts, then learn to run, compile, and view results in the Experts tab.
Master how variables act as containers that store and label data, enabling you to reference values like price across your forex robot. Learn basic data types and the assignment operator.
Explore how variables are stored in memory, from RAM and memory addresses to bytes, doubles, and integers, and learn how memory allocation and garbage collection shape program behavior.
Master predefined variables that reflect the current chart state, including ask and bid prices, open, high, low, and volume, and learn to access their values and digits for precise pricing.
Explore arithmetic operations in code, mastering additions, subtraction, multiplication, division, modulo, and increment/decrement. Learn how integers, doubles, and string concatenation are used for trading calculations and pip/profit examples.
Demonstrates assignment operations like the equal sign, plus equal, minus equal, multiply equal, divide equal, and modulo equal, with practical coding examples of updating totals and profits.
Explore relational operations, including equality, not equal, and comparison operators, and apply them to simple trading rules such as day-based trades and bid price checks.
Learn how logical operations work, including not, or, and, with practical coding examples using true/false, price checks, stop loss, Bollinger Bands, and day of the week conditions.
Learn to spot fake profiles impersonating me on Instagram and YouTube, verify handles, and follow these rules: never message first, never share phone numbers or Bitcoin, and report scams.
Master if/else control flow for forex trading to act when conditions are true or not, using long vs short positions to compute stop losses and trigger alerts with day-of-week logic.
Explore switch statements by using a day-of-week example, switching over an integer variable, defining cases with break and default to automate actions based on the day.
Create reusable functions in a forex trading script, define return types and arguments, and call them for calculations like adding numbers and computing stop loss for long or short positions.
Explore MetaTrader functions to fetch account balance and information, perform math and indicator operations, and access chart, array, and file tools for forex automation.
Learn how include files enable code reuse in forex algorithmic trading by storing functions in a custom functions file and including it across projects.
Create our first useful function to compute the pip value for a currency pair, automatically handling digits and yen versus non-yen currencies across brokers.
Learn to code take-profit and stop-loss calculations for a forex robot, using buy or sell signals, entry price, and pip value to automate risk management and order placement.
Write two functions to compute take profit and stop loss, then replace hard-coded calculations with function calls to improve code reusability and debugging practice.
Implement take profit and stop loss for a forex robot by handling long and short positions with an isLong boolean, entry price, and pip-based calculations.
Learn how global variables extend across a script's scope by declaring stop loss and take profit outside the on start function, enabling access in other functions and ensuring consistent values.
Explore how input and external variables let you adjust stop loss and take profit from outside the code, show inputs, and decide when to use each.
Learn how to use arrays in trading, from one- and two-dimensional structures to multidimensional patterns, using zero-based indexing to access open, high, low, close, and volume in MetaTrader.
Master for loops to iterate data, index arrays, and loop through candles and bars in MetaTrader to extract time, open, high, low, close, and volume.
Explore how while loops work by evaluating a checked expression and repeating code until the condition becomes false, with practical comparisons to for loops and examples in trading scenarios.
Learn how the enum datatype and enumerations define fixed sets (like months or trading methods), assign integer values starting at zero, and use these enums in code and functions.
Learn to access and implement the moving average indicator in code, specifying symbol, timeframe, period, and apply price (default close), and retrieve its current value for automated forex trading.
Configure Bollinger Bands with a 20-period moving average midline and 2 standard deviations, extract upper, lower, and mid band values, and use them for automated buy, sell, or exit decisions.
Apply the RSI with a 14-period default, reading current and previous values via shifts. Trigger trades on a cross from below 30 to above 30, using 70/30 lines.
Build a Bollinger Bands forex robot using one standard deviation entries. Trade long below the lower band and short above the upper band, with take profit at the middle band.
Learn to code Bollinger bands (lower, upper, middle) with 1 and 4 standard deviations, using a 20-period, and implement buy/sell rules with stop loss and take profit.
Follow our updated social media handles for Bloom, the new company replacing MGG, as the old links are no longer valid; stay connected via the site for the latest updates.
Implement pre-order checks to ensure forex trading is allowed by auto-trading status, symbol, and time constraints, and alert users through a reusable is trading allowed function.
Identify your account type and minimum lot size, then retrieve contract size and trade limits via market info to determine appropriate order sizing.
Discover how to send forex orders with trading functions in a demo account, using market and limit orders, setting symbol, volume, price, slippage, stop loss, take profit.
Complete the order sending logic by implementing buy, sell, and short orders using Bollinger bands-based entry, stop loss, and take profit, then practice debugging in the next lecture.
Master error handling by inspecting rejected orders with get last error, interpreting codes such as 130 and 131, and using market info to meet broker stop loss rules.
Automate forex trading by coding order sends for buy and sell at ask price with stop loss, take profit, volume control, and error checks, using Bollinger bands to trigger entries.
Learn position sizing and risk management by calculating the optimal lot size to limit loss to two percent per trade, considering account currency, stop loss, and currency pair conversions.
Calculate the optimal lot size for each trade by linking account equity, max loss, and pips with currency conversion via market info and think value, enabling precise position sizing.
Apply position sizing with the optimal size function to calculate your trade amount for the Bollinger Bands algorithm, extending the stop loss, take profit, and order logic.
Calculate the optimal lot size with the function, using a 2% max risk and considering entry price and stop loss, then place orders at that size while users adjust inputs.
Create your first expert advisor (ea) and switch from scripts to a persistent strategy that runs on price updates. Implement on-init and on-tick handlers, print bid/ask, and enable auto trading.
Integrate the Bollinger Bands strategy into your expert advisor by calculating the upper and lower bands, determining entry signals, and setting stop loss, take profit, and orders on price updates.
Learn how to limit forex orders by using total orders and a unique magic number per expert adviser, ensuring one open order per strategy.
Update the expert advisor with the new code and implement a check for open orders by magic number to prevent duplicate orders, showing thorough testing in the forex environment.
Learn how to modify orders in forex trading using the order.modify function, updating take profit as indicators change while noting stop loss risks and the importance of the order ID.
Learn to auto update take profit and stop loss in a forex robot using order modify, handling open orders, and adjusting exits via midline for long or short positions.
In this course you will learn how to completely automate a Forex Trading Robot from scratch using the MQL4 Programming language.
You do not need any programming knowledge as we will learn all the basic programming concepts in the beginning of the course. The great thing about this course is that we view these programming concepts as they relate to trading, keeping the content extremely engaging.
We proceed by learning the ins and out of the MQL4 programming language. We see how to get live price updates, use most technical indicators in code, send and modify orders automatically and much much more.
We do all of this in a highly engaging manner as we code everything as we cover it. We also give you many assignments along the way making this an extremely practical and interactive course.
Once we have covered all the concepts necessary, we proceed by creating our fully automated trading robot. We backtest it to make sure it’s consistently profitable and see how to run it on a demo or live account.
All the codes created in the course are available to you.