
Explore using the RSI indicator to gauge currency momentum with an eight-currency dashboard; learn counter-trend signals, cost averaging, and stop loss within a strategy tester.
Learn to set up a multi currency cherry-picking expert advisor in MQL5 by organizing files, defining general inputs (metric, maximum slippage), and configuring chart appearance and efficient new bar detection.
Create and use RSI inputs to obtain RSI values in MQL5, building a function that copies RSI buffers, handles multiple symbols, and accesses the most recent data.
Define eight currencies with preprocessor directives, initialize euro, usd, pound, aud, nzd, cad, jpy, chf symbols, and build arrays for currency names and positions, preparing the advisor’s traded symbols.
Calculate and normalize rsi values for euro, usd, gbp, chf, aud, and nzd currency pairs in mql5 using a tuple-based function, averaging seven values and inverting usd quotes.
Declare trade objects from the trade/trade.mq file to enter and manage trades in the expert advisor, and attach a magic number with deviation in points for slippage.
Define global panel parameters for the trading dashboard by creating constants for panel description, developer name, colors, positions, and object name prefixes for RSI values.
Create functions to manage trading symbols by combining the highest and lowest RSI currencies into a pair. Maintain a dynamic symbols to trade list based on RSI signals.
Create a dashboard panel that displays currency rsi values, illustrating the expert advisor's core logic with build blocks and chart labels.
Apply a format number function to convert doubles to strings with controlled decimals and proper comma separators, ensuring clean RSI values display reliably on the dashboard.
Update the dashboard by calculating currency rsi values, ranking them, and updating on-screen texts with two-decimal values; generate and apply symbols to trade from the ranked list.
Develop two functions to count open trades in MQL5, one for a specific symbol and one for all symbols, using position info, symbol checks, and magic number filters.
Develop buy and sell entry signals using RSI thresholds of 25 and 75, triggering entries as RSI crosses these levels and at candlestick close, via boolean functions for symbol-based signals.
Calculate and normalize trade volume in an MQL5 expert advisor using functions: format lot, initial lot from balance, and subsequent lots from open trades, enforcing max positions and stop loss.
Develop a function to compute the next entry price for a symbol with multiple trades, using position type and f symbol, plus a cost averaging stop loss.
Manage symbols with open positions by maintaining a dynamic open symbols array, implementing find symbol index, and updating open symbols during on trade transaction to enable cost averaging.
Execute normal and cost-averaging trades in an MQL5 expert advisor, using symbol-specific buy and sell signals, max position checks, and dynamic entry logic across multiple symbols.
Develop two core functions for MQL5 advanced expert advisors: calculate the cost averaging sale price using a weighted average and implement a trailing stop loss to protect profits.
Debug and test a cherry-picking market scanner expert advisor in MQL5, using the tester, removing objects, and evaluating performance across currency pairs with RSI signals.
Thank you for joining this course; reflect on what you've learned and develop your own personal projects from this journey.
Larry Williams is a legend in the trading world. He is the record holder in the World Trading Championships, and to prove how good his trading edge is, his students and followers of his trading methods have won the world trading championships multiple times. Larry Williams did not just trade one chart; he preached the importance of scanning the entire market to find absolute market tops and bottoms across a basket of assets.
But how can we apply this legendary psychology to modern algorithmic trading?
We are going to build a sophisticated Market analyzer that will scan through all the major pairs to identify potential strengths and weaknesses in the market using the MQL5 algorithmic trading language. When most traders look at a chart, they usually speculate the movement of price using information from that currency pair only. However, smart money focuses its attention to thef the individual currencies behind the pairs to predict the volatility of a currency pair.
In this course, you will learn how to code an EA that scans all 8 major currencies in real-time. We will calculate the "Average RSI" index for every currency to identify extreme divergences. When one currency is exhausted (that’s if its index RSI value is above 75) and another is beaten down (below 25), our EA matches them to form the ultimate potential reversal pair.
However, we don't just jump in to trade that currency, we shall code patience by enabling the Expert advisor to wait for the RSI to cross back through the levels to confirm the trend reversal before making our trade entries.
Hence in this course, you will learn advanced MQL5 techniques, such as storing these potential setups in dynamic arrays and waiting for the trade trigger the moment the RSI crosses back to confirm the entry.
To manage our trades, we shall implement a smart Cost Averaging system. Unlike risky grids, we will code Hard Stoploss to strictly cap our risk which gets triggered after a specific distance from our first trade. This will ensure that we are not pressured to time our entries and also not incur too much loss when the trade setup is invalidated. When the markets move in our favour, we shall lock in our profits using a dynamic Trailing Stoploss, allowing us to stay in the trade for as long as possible while also protecting our profits.
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 that 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 Expert Advisors that scan various markets to isolate potential strengths and weaknesses in individual currency pairs to speculate market reversals with confidence.
So hit hard on the enrol button, now, and join me on this exciting journey of coding an expert advisor based on a more holistic market analysis technique.