
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 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.
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.
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.
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.
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 adviser based on the stochastic oscillator, using the main line and signal line buffers to generate buy and sell signals.
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.
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.