
Introduce multiple exit strategies for a single position within a multi-exit expert advisor, including trailing take profits and break-even, to adapt to changing market conditions.
Set up a multi-target expert advisor by configuring initialization and on-tick logic, customizing chart appearance, and defining inputs like symbol, timeframe, and slippage while tracking new bars and days.
Define a four-strategy exit constant and initialize trade and position info objects; declare digits, point, session high, session low, and session flag, then set point, digits, and deviation in points.
Create functions to identify the trading session and define breakout levels for pending orders. Calculate daily high and low, derive the range, and draw session lines to visualize breakout ranges.
Create functions to count total trades and total pending orders. Delete certain pending orders by filtering by symbol, magic number, and position type.
Calculate lot size based on account balance and risk inputs, using lot max, min, and step to normalize trades; test the multi-target expert advisor in the strategy tester for breakouts.
Create a multi-strategy trade system by building per-strategy comments, stop-loss and take-profit multipliers based on session range, and enter buy stop and sell stop orders with magic numbers.
Implement a break-even function for the third strategy in mql5 by calculating buy and sell break-even prices and moving the stop loss when price moves in favor.
This lesson adds a training function that implements a trailing stop loss for strategy four, managing positions with a 1:5 risk to reward, dynamic stop adjustments, and position modification.
Develop a trailing take profit for the second strategy in MQL5, incorporating break-even, trailing stop loss, position type checks, symbol validation, and range-based price thresholds.
Test a multi-target expert advisor to validate take profit, stop loss, and trailing stop and trailing take profit across strategies. Observe how market conditions and data shape profits and drawdowns.
Close this course by reflecting on the valuable knowledge shared and encouraging you to develop your own personal projects from what you've learned.
Wim Shrynemakers is one of the best and most recognized algorithmic systems designer and traders on the entire planet, with over 25 years of experience in algo trading. He is one of the top selling systems designers on the MQL5 marketplace, offering a lot of trading systems and signals based on those EAs.
He designs EAs that do not use any forms of Grid, hedging or martingale, astrology or even machine learning. Instead, his products are based on a brute edge in the market based on well researched and well-designed entry and trade management protocols.
In one of his interviews on YouTube on market masters by darwinex, he highlighted something which inspired me to create a course that shares the game changing concept that he shared in that interview.
In this course, I am going to guide you on how to create and code an algorithmic trading system using the MQL5 language, based on the Multiple Trade Management concept shared by Wim Shrynemakers in his interview.
Multiple Trade Management is the use of different methods to exit trades of the same position. It acts as a buffer for different market conditions, allowing your expert advisor to consolidate during harsh market periods and thrive when the market conditions suit it.
To demonstrate this concept, we shall design a trading system that uses the previous day’s range to calculate breakout levels for the new day. We shall then enter multiple breakout trades at each breakout level, with each trade having a different exit method that suits different market dynamics.
As we are going to code all these things using the MQL5 language, if you’re still familiarizing yourself with MQL5, don’t worry, as long as you understand the basics, this course is perfect for you.
I will patiently guide you through each and every step, ensuring you grasp the concepts behind each line of code. By the end of this course, you’ll have gained the skills necessary to code similar projects allowing you to develop EAs that use multiple trade management protocols that are dynamic to different market conditions.
So hit hard on the enrol button, now, and join me on this exciting journey of coding an expert advisor based on this incredible trade management logic.