This
article shows you how to build an Object-Oriented Expert Advisor from
scratch, from conceiving a theoretical trading idea to programming a
MQL5 EA that makes that idea real in the empirical world. Learning by
doing is IMHO a solid approach to succeed, so I am showing a practical
example in order for you to see how you can order your ideas to finally
code your Forex robots. My goal is also to invite you to adhere the OO
principles.
Building a complete object-oriented EA that actually works is in my
humble opinion a challenging task which requires many skills all put
together: logical reasoning, divergent thinking, capacity for analysis
and synthesis, imagination, etc. Let's say that if the automated trading
system that we have to solve was a game of chess, its trading idea
would be the chess strategy. And the execution of the chess strategy
through tactics would be the programming of the robot through the use of
technical indicators, chart figures, fundamental economic ideas and
conceptual axioms.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
New article Another MQL5 OOP class has been published at mql5.com:
This article shows you how to build an Object-Oriented Expert Advisor from scratch, from conceiving a theoretical trading idea to programming a MQL5 EA that makes that idea real in the empirical world. Learning by doing is IMHO a solid approach to succeed, so I am showing a practical example in order for you to see how you can order your ideas to finally code your Forex robots. My goal is also to invite you to adhere the OO principles.
Building a complete object-oriented EA that actually works is in my humble opinion a challenging task which requires many skills all put together: logical reasoning, divergent thinking, capacity for analysis and synthesis, imagination, etc. Let's say that if the automated trading system that we have to solve was a game of chess, its trading idea would be the chess strategy. And the execution of the chess strategy through tactics would be the programming of the robot through the use of technical indicators, chart figures, fundamental economic ideas and conceptual axioms.
Author: Jordi Bassaganas