
Explore class methods in the param class, with getter and setter patterns for enum members, and see how instances remain independent while methods require an instance to be invoked.
Master inheritance and encapsulation by examining base and derived classes, public/private/protected inheritance, and how least privileges govern which members are inherited or hidden in Mql5.
Learn virtual methods and abstract classes in MQL5, illustrating how virtual dispatch calls the actual class method via base class pointers and how pure virtuals create abstract classes.
Extend the expert advisor class with a reverse strategy by deriving a new class, overriding signal entry, and testing reversed buy/sell signals in strategy tester.
Here, we will begin to cover some of the aspects of the MQL5 standard library that are most useful to expert advisor development. Using the standard library requires knowledge of OOP, which was covered previously in this course.
Explain the C array base class and its derived types—C array int, double, and obj—and how to add and get items using total and ath methods.
We have covered the basic class objects needed to further proceed with expert advisor development using the MQL5 Standard Library.
In this section, we will cover the class objects used to access miscellaneous trading information using the classes from the MQL5 Standard Library.
In this section, we have learned the class objects used to access miscellaneous trading information using the classes from the MQL5 Standard Library, which simply serve as alternatives to what we already know.
In this section, we will learn to dive deeper into the MQL5 Standard Library by learning to access the properties of orders, deals, and positions.
In this section, we have learned to how to use the MQL5 Standard Library to access the properties of orders, deals, and positions.
This is just a small section about CTrade, which is a class object from the MQL5 Standard Library, used to place orders on the market.
In this section, we learned about CTrade. In future sections, we will learn about CExpertTrade, which inherits from the former, that further streamlines the process of trading for our expert advisors.
In this section, we will learn about how to access chart data using the MQL5 Standard Library.
Explore the CIndicator base class, its CMA-derived indicators, and how to create, refresh, and retrieve data handles while managing memory and using include directives.
In this section, we have learned how to access chart data using the MQL5 Standard Library.
In this section, we will learn the top-level components that comprise an expert advisor, using the MQL5 Standard Library.
Explore see expert base, base for expert advisors and components, focusing on init and validation settings that configure symbol, time frame, every tick processing, and magic number, with boolean termination.
Explore the sea expert trailing hierarchy in mql5, including fixed pips, ma, and parabolic sar trailing stops; learn initialization, indicator setup, and validation steps for OnInit and OnTick.
In this section, we have learn the top-level components that comprise an expert advisor, using the MQL5 Standard Library. In the next section, we will learn how to put these all together using walkthrough videos.
Now would be the time to apply everything we have learned about the MQL5 Standard Library when it comes to developing expert advisors. Code with me as I walk you through the entire process.
This walkthrough demonstrates how to add a CExpertSignal filter to an MQL5 expert advisor by selecting signal AC, creating a dynamic instance, checking for success, and assigning a weight.
Add a money management class instance to your expert advisor by including the fixed risk module, creating and verifying the instance, and linking it with the expert's init flow.
Test the expert advisor, fix compiler warnings, rename variables, and resolve duplicates to ensure a clean compile. Then run the strategy tester, adjust period settings, and review trading results.
Generate an expert advisor with the expert advisor generator, configure name, symbol, time frame, and accelerator signal, and compile parabolic SAR 0.02/0.2 to test the generated expert advisor.
Now, you already have the knowledge and skills to start building your own expert advisors, using either OOP or the Standard Library, whichever methods suits you best. Good luck!
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
This course takes the programming skills of traders to the next level. It allows one to code expert advisors with even lesser lines of code, through object-oriented programming. Less time coding, more time for learning and trading.
By the end of this course, students would be able to code expert advisors from a higher level of abstraction than what procedural programming can possibly offer. Through the use of class files, one would be able to create a new expert advisor with just several lines of code. 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.