
Learn the basic structure of an expert advisor, apply object oriented programming in MQL5, and implement a static take profit and stop loss from indicator signals within a semi-automated framework.
Set up MetaTrader 5 on Windows, install and open the editor, and create a new custom indicator template with color and formatting preferences to begin building MQL5 robots.
Learn to generate bullish and bearish signals with the TSA safety indicator through crossovers with the signal line, and use histograms and overbought/oversold levels to time entries and exits.
Develop MQL5 expert advisor that trades using tsa line and tsa signal line, entering buys when tsa is above signal and sells when below, with 140 take-profit and 46 stop-loss.
Build an MQL5 expert advisor template in the MetaEditor, defining stop loss, take profit, and lot size, with tsa line indicators and handles.
Initialize the expert advisor by obtaining and validating custom indicator handles, setting inputs, and standardizing digits for stop loss and take profit calculations; deinitialize by releasing handles.
OnTick function checks to gate trading: verify terminal allowed, connected, and symbol trading conditions; detect new bars to enter on bar change; define trading structures and reset trade requests.
Configure on-tick checks by setting series arrays and accessing the latest price, then copy and verify indicator values to generate reliable trading signals.
Check for an open position with position_total before trading and enable buy_condition and sell_condition only when no position exists and tsa line crosses the signal line.
Execute trades by building a market-order trade request and sending it for immediate execution. Normalize prices, set stop loss and take profit, and verify the order results.
Learn how to implement semi-automated trading triggers with an expert advisor in MQL5. Use buy and sell signals, input controls to gate orders, and validate strategies in the strategy tester.
Integrate a break-even function into an expert advisor by looping open positions, calculating break-even price from the opening price plus pips, and triggering stop-loss updates when profit targets are met.
Implement a trailing stop in MQL5 with a trading stop function that uses position info to set and update stop loss from open and current prices, including break-even adjustments.
Explore setting martingale parameters in an MQL5 expert advisor, including normal and reverse Nightingale matching, risk multipliers, and limits to control doubling losses.
Create a martingale sizing function in MQL5 that calculates a default lot using a Nightingale multiplier, validates against max/min symbol volume, and counts past wins and losses from history data.
Learn to implement martingale-based sizing in an MQL5 expert advisor, configuring buy and sell functions and volume via get size, then test performance in strategy tester for profit and drawdown.
Use ATR-based volatility to set stop loss distance and position size. Adjust risk by percentage of balance, equity, or fixed amounts with money management rules.
Implement atr money management in a mql5 expert advisor by creating input parameters, atr period, atr multiplier, risk, and fixed balance, with an atr handle.
Integrate ATR-based money management into MQL5 EAs by calculating stop loss from ATR, handling indicator handles, and evaluating fixed balance, equity, and percentage risk.
Create an expert advisor in MQL5 that uses the TSA indicator to enter on main line crosses and exit on opposite signals.
Develop a close-position function in MQL5 by inspecting open positions, determining buy or sell types, and applying a slippage-tolerant close with error reporting.
Implement close trade logic in mql5 by checking position status and closing on an opposite signal, and adjust take profit and stop loss to zero when needed.
“Robots don’t work in the financial market”, they say, “Never trade with indicators” they say, “Just draw lines and expect price to signal its movement by crossing them”, they say.
These are the talks of our Gurus or chart artists, that we respect so much because, they say cool things and teach us vague, complicated and highly subjective entry and exit protocols based on imaginary and impossible to quantify patterns in the market.
For those who are brave enough to anchor this into their skulls, Algorithmic trading now accounts for the majority of trades executed especially by financial institutions. The top traders in the World Cup Trading championships have demonstrated the power of algorithmic trading by dominating the competition over the years.
It is a fact that algorithmic trading is the future, that’s if the future isn’t there already. There is no escaping it, most of us are listening and following the dinosaurs that refuse to evolve based on non-founded theories about tools that enhance our trading.
We all understand that there are non-believers of the novelty of pharmaceutical drugs that still believe eating overpriced rare fruits and roots will treat their illnesses. Unfortunately, it is these non-empirical beliefs that people respect and follow, just to oppose a trend.
In this advanced MQL5 course, I will be upgrading your beginner knowledge to ensure that you become competent in many aspects of creating expert advisors with many different capabilities.
We shall learn all this through hands on projects that I will assign to you throughout this course.
Although some people may think that programming is difficult, I will explain all concepts in steps that are easy to follow and make sure that you are not left behind by responding to all questions that you may need answered.
All the resources, Expert advisors and Indicators used in this course will be freely available in the resources file that I shall add a download link to.
So click that enroll button, now , and lets begin learning how to create fully functional expert advisors.