Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Expert Advisor Programming in MQL5 Part 3: OOP
Rating: 4.2 out of 5(20 ratings)
210 students

Expert Advisor Programming in MQL5 Part 3: OOP

Object-Oriented Expert Advisor Programming In MQL5
Created byEnrico Lambino
Last updated 10/2024
English
English [Auto],

What you'll learn

  • MQL5
  • Trading
  • Metatrader 5
  • FX
  • Object-Oriented Programming

Course content

9 sections • 81 lectures • 4h 22m total length
  • Introduction0:10
  • From Structures To Classes4:51

    Explore the basics of object oriented programming by comparing structures and classes, including converting a param struct to a param class and using public members.

  • From Structures to Classes: Exercise0:36
  • From Structures to Classes: Solution0:27
  • Class Members2:47

    Explore class members and the data they store, including primitive types, arrays, structures, and other class instances, while noting that a class cannot contain a member of itself.

  • Class Methods4:53

    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.

  • Class Methods: Exercise0:04
  • Class Methods: Solution1:05
  • Encapsulation7:02

    Explore encapsulation in object-oriented programming and how public, private, and protected access control shapes modularity. Learn when to use getters and setters to manage class members and maintain code integrity.

  • Encapsulation: Exercise0:04
  • Encapsulation: Solution1:05
  • Constructor and Destructor4:31
  • Constructor and Destructor: Exercise0:02
  • Constructor and Destructor: Solution1:06
  • External Method Definition3:53
  • External Method Definition: Exercise0:02
  • External Method Definition: Solution1:27
  • Initialization List2:52
  • Initialization List: Exercise0:08
  • Initialization List: Solution0:05
  • Dynamic Memory Allocation6:44

    Explore dynamic memory allocation for class objects, compare it with automatic allocation, and learn how pointers with new and delete control runtime object lifecycles.

  • Class Method Overloading2:44

    Explore class method overloading, including default and parametric constructors, and see how multiple constructors initialize class members during object instantiation.

  • Inheritance5:04

    Explore inheritance in object oriented programming by deriving trader and stock trader from a base person class to reuse features, while noting mql5 supports single but not multiple inheritance.

  • Inheritance and Encapsulation7:31

    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.

  • Polymorphism1:56
  • Polymorphism and Pointers3:29
  • Virtual Methods5:33

    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.

  • CheckPointer() and GetPointer()5:12

    Learn check pointer and get pointer in mql5 o o p, determine pointer types (invalid, automatic, dynamic), and safely manage class objects with new and delete.

  • Const Qualifier4:01

    Learn the const qualifier to prevent changes to class method arguments and class members in mql5, shown in constructors and get indicator data, with compiler errors guiding immutability.

  • Conclusion0:12

Requirements

  • Must be able to know the fundamentals of MQL5 programming
  • Trading experience is a plus, but not a requirement
  • Prior programming experience is a plus, but not a requirement
  • Some familiarity with procedural programming

Description

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:

  1. Low information diet - take only what you need to move on to the next section or lesson

  2. Learn the rules of trading which you may use as well to enhance your own manual trading

  3. 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.

Who this course is for:

  • Traders who want to learn how to code
  • Traders who know programming, but would like to switch to object-oriented programming
  • Traders who know object-oriented programming, but need some guidance on how to apply its concepts to trading