
Learn how to use the include directive to link header files in MQL5, including angle brackets and quotes, managing include folders, subfolders, and same-directory headers for reliable builds.
Please download the following files under the Resources tab. These files will be used throughout the course.
First, create a folder named "MQL5Part2" under the Experts folder of your data folder.
Second, create a folder named "MQL5Part2" under the Include folder of your data folder.
The files are the following:
expert_advisor_template.mq5 - the main source code file template
functions.mqh - a collection of functions covered on Part 1
signal_template.mqh - base template for generation of signals
signal_functions.mqh
#1 should be installed under the MQL5Part2 folder of the Experts folder. #2, #3, and #4 should be installed under the MQL5Part2 folder of the Include folder.
Explore Enum Trade Signal in MQL5, detailing its four variants and how void and neutral signals differ, with void signaling a close call and neutral signals leaving the EA unchanged.
Explore how signal function, with a reference trade signal array and a current signal enumeration, expands the array and assigns the new signal to map signals for an expert advisor.
Develop an expert advisor in MQL5 based on a candlestick strategy using the signal template to emit buy signals when open<close and sell signals when open>close.
Develop an mql5 expert advisor by integrating the signal candle function and a bullish/bearish strategy based on the previous candlestick, ready for strategy tester in the next video.
Test the bullish and bearish E.A. in MQL5 part 2 using the strategy tester on an hourly chart with last month's data, applying every tick testing to analyze trades.
Create a marubozu signal in mql5 using a template-based function. Prepare open, high, low, and close data and enforce no-wick bullish and bearish conditions.
Build the Marubozu EA from the expert advisor template, include the signal function, use signal add to create signals, and prepare to test on strategy tester with the time frame.
Test the marubozu ea in the strategy tester with visual mode, using over two years of h1 data; initial sell after a bearish marubozu, then a buy, netting 0.1 lot.
Develop and save an mql5 expert advisor for a consecutive bars signal, integrate the signal and signal entry functions with start bar and end bar, and test in strategy tester.
Test the consecutive bars EA on the hourly chart using last year's data with visual mode. Three consecutive bullish or bearish candles trigger trades, entering long or short.
Build an expert advisor signal for the awesome oscillator in MQL5, using the signal template and indicator handle to trigger buy signals above zero and sell signals below zero.
Create an awesome oscillator expert advisor by using the include file, defining the signal awesome, and setting up the indicator handle and parameters in on init.
Test the awesome oscillator ea in strategy tester on an h1 chart using last year's data; it sells below zero, closes, then opens a long, reversing at zero.
Build an RSI based signal in MQL5 using the RSI indicator with a single buffer; buy on oversold below 20 and sell on overbought above 80 for the expert advisor.
Develop the RSI-based expert advisor by creating an RSI indicator handle, adding input parameters for RSI period and applied price, and integrating the signal function into the template.
Test an RSI-based expert advisor in the strategy tester. Use hourly chart with last year’s data in visual mode and adjust RSI to 20/80, noting a sell then a buy.
Implement a signal function for an sma-based expert adviser that compares moving average to close price to trigger buy when ma < close and sell when ma > close.
Create an expert advisor in MQL5 using a moving average indicator, configure the MA period, shift, method, and applied price, and integrate a signal function for testing.
Learn to build an expert advisor in MQL5 that generates buy and sell signals from the Heiken Ashi indicator, using the high Konarski buffers for open and close prices.
Create a Heiken Ashi expert advisor by including the high energy indicator, declaring a global handle, and wiring the custom indicator in on init and the signal entry.
Test the Heiken Ashi expert advisor in the strategy tester with visual mode, analyzing trades that enter on bullish or bearish Heiken Ashi bars and exit via take profit.
Create an expert adviser based on the stochastic oscillator, using the main line and signal line buffers to generate buy and sell signals.
Create a stochastic ea in mql5 by wiring the signal function, including the signal stochastic file, and defining input parameters (period, D period, slowing period, price field) for testing.
Test the stochastics expert advisor in strategy tester using last year's H1 data and every-tick sampling, then examine entry and reverse signals between main and signal lines.
Develop an expert advisor for mql5 that uses a moving average crossover with slow 26 and fast 12 periods to generate buy and sell signals.
build a fractals-based expert adviser that buys on a lower fractal and sells on an upper fractal, using two buffers (upper and lower) and index 3 to avoid repaint.
Test fractals in the expert advisor by applying a three-bar shift to detect upper and lower fractals on the h1 chart with last year's tick data and identify buy signals.
This course has everything you need to get the most in algorithmic trading, and with less code.
This course was designed with the trader in mind:
Low information diet - take only what you need to move on to the next section or lesson
Learn the rules of trading which you may use as well to enhance your own manual trading
Develop MQL5 programming skills and learn to apply to solve common problems in both manual and automated trading
Most expert advisors can be built by working on signals alone, since the other parts often need very little changes. This course teaches students how to do this: to code expert advisors by simply changing the signal being used.
By the end of this course, students would be able to independently generate almost any type of trading signal in an expert advisor. Students would be focusing more on signal generation based on candlestick data, standard indicators, and custom indicators. All of these come with easy-to-use header files, and expert and signal generation templates. One will no longer have to build everything from scratch--build complex expert advisors with less code.
This is programming course is aimed at making the life of the trader easier by enabling one to develop his or her own MQL5 programs, and augment his or her trading skills through automation. It also allows the trader to execute trading rules and tasks that can be cumbersome or time-consuming when executed manually.