
Explore fundamentals of MQL5 by learning to build robots and indicators and manage trades. See how objects render buttons, text, lines, and shapes on charts and perform http web requests.
In this video, i show how to set up MT5, open the metaeditor and start a new EA. Please note that i placed my EA in Tutorials folder because i had already opened a Tutorials folder in my experts folder, so on your end it should be "Experts\Learn 1" except you have Tutorials folder in your experts folder
This a collection of MQL5 resources aimed at explaining the basics for those who are not familiar with the MT5 platform, some of them were gathered online
In this video, we take a look at the MQL5 EA code to understand its structure and the functions of the basic parts of the code
Please Read Resources before watching video and feel free to leave questions if you have any
Explore candle and trade operations in MQL5 by importing trade libraries, configuring parameters like magic numbers and take profit, and executing open and close trades with signals.
Learn how to manage trades in Mql5 by declaring external parameters, looping through traits to set take profit and stop loss, and modifying selected trades with a position ticket.
Implement a trailing stop in MQL5 by setting a trail stop threshold, adjusting stop loss behind profit, and validating buy and sell logic through testing.
Create a new custom indicator in the indicators folder, review default code, and learn how onCalculate runs on every candle with open, high, low, close, tick volume, and spread arrays.
Explore using our second custom indicator in MQL5, test signals, copy code snippets, adjust conditions, and view the red line to verify buy and sell signals.
Apply a time filter in MQL5 by declaring start and end times and using the time structure to compare current time against a trading window, with day-of-week constraints.
Learn how type casting in MQL5 handles converting numbers to strings and doubles to integers, and how explicit casts prevent data loss and compiler warnings.
Use the sleep function to time news checks in the news filter II, calculating minutes and seconds before the next release and converting to milliseconds.
Compute stop loss and take profit per trade by capping risk to a percentage of balance, and set the trade's volume accordingly using max lot, digits, and tick value.
Learn balance-based money management by calculating lot size from account balance and risk percent, using a check volume function and risk mode options like balance percent and auto lots.
There is an error in the code
' = ' was used in place of ' == '.
change the following to;
line 47: if(priceArray[i].type==BOOK_TYPE_BUY (...)
line 50: if(priceArray[i].type==BOOK_TYPE_SELL (...)
Learn to implement partial close strategies in MQL5, closing portions of trades at target values while leaving remaining lots open, with practical coding steps.
Plot Fibonacci retracement in MQL5 by selecting the high and low from the last fifty candles and drawing the lines using code with corresponding time and price points.
This course is aimed at making students very familiar with the most important aspects of the MQL5 programming language, it walks towards giving the student a strong foundation in the language, then it progresses through the more advanced concepts and ultimately allows the students to easily learn more on their own making them able to automate any MetaTrader 5 trading strategy they can think of.
The course takes the student from the beginner levels by showing them basic MQL5 concepts and later progresses through the more advanced features of the language like Objects Creation and manipulation, String operations, writing HTTP Web Requests and Advanced DLL calls.