
Explore an aggressive trend following strategy using trade management to ride big moves, entering on RSI below 30 and under the 100 period moving average, with a 70% drawdown cap.
Set up an aggressive mean-reversion expert advisor by creating the EA, configuring symbol, timeframe (M15), metric, and slippage, and implementing initialization, on-tick logic, and chart appearance.
Create and use the trade class to enter and manage trades, initialize symbol digits and point values, and count open trades by symbol and position type to regulate risk.
Learn to create an expert advisor by fetching indicator data, linking moving average and RSI with handles, and preparing buffers for the latest data. Implement buy and sell signals using a close below the moving average with RSI under 30, and a close above the moving average with RSI over 70.
Develop a function to compute the next entry price by enforcing a minimum trade distance, converting pips to points, and choosing prices from open positions for buy and sell entries.
Set risk parameters for the advisor by calculating the lot size for each trade. Use balance and the lot step to keep volumes within max and min limits.
Develop two functions to execute buy and sell trades based on signals, validate prices, manage cost averaging, and set lot sizes in MQL5.
Apply an aggressive trailing stop loss in an mql5 expert advisor to maximize profits, implement cost averaging, and lock in profits by dynamic stop adjustments.
Implement risk management to stop trading after a loss percentage, track the start balance, apply trailing stops, and close positions if equity drawdown hits maximum loss.
Test and debug the expert advisor with the strategy tester on eurodollar 15-minute chart from 2020 to 2025, ensuring zero latency. Observe trend trading with cost averaging trailing stop loss.
Apply a trend following framework to develop trading strategies and algorithmic tools with effective trade management. Build a solid foundation for your own trading projects and expert advisors.
In this course, I would like us to redefine trend following by revisiting it with a different perception. Trend following is a trading technique that involves entering trades anticipating that a new trend is developing, then staying in the new trend for as long as possible, hoping to get as much profit as possible from our position.
The traditional approach to trend following focuses mainly on entry points only and usually those are after a trend is confirmed. This has a downside in that waiting for confirmation from price to change direction will eat into the profits and also make it difficult to manage the trade as there might be less room for the price to move in the desired direction.
In this course, we shall address that challenge by making counter trend entries and use trade management to ensure that those counter trend trades turn into huge harvests. The strategy will use the Lotto type risk management, meaning that it is a high risk and very high reward strategy. As usual, I shall walk you through the entire coding process of the EA, ensuring that you understand each step of the strategy development process.
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 trading models based on the teachings of this course.
So hit hard on the enrol button, now, and join me on this exciting journey of coding a Lotto risk management based strategy.