Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Join our fan page
You liked the script? Try it in the MetaTrader 5 terminal
- Views:
- 7999
- Rating:
- Published:
- 2019.09.25 17:24
- Updated:
- 2019.09.29 10:45
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
- A good architecture is extendable, supportable, and reusable.
- Patterns help build hq systems.
- Patterns are proven to be good by experience.
- Patterns are generic solitions for software engineering challenges.
- Choose your pattern, don't invent it.
- Most patterns are designed to manage changes of the architecture.
- Most patterns incapsulate variable aspects of the systems.
- Developers know patterns and effectively communicate with each other.
OOP CONCEPTS:
- Abstraction,
- Encapsulation,
- Polymorphism,
- Inheritance
RULES:
- Encapsulate changes
- Composition is better than inheritance.
- Engineer with interfaces, not real classes.
![Programming Patterns - Decorator](https://c.mql5.com/i/code/script.png)
A way of sub-classing more functional objects, dynamically.
![Sudoku](https://c.mql5.com/i/code/expert.png)
Classical Sudoku puzzle right in MetaTrader chart.
![Programming Patterns - Observer](https://c.mql5.com/i/code/script.png)
When the subject changes, it notifies and updates its observers, who know nothing about each other.
![Rma MACD](https://c.mql5.com/i/code/indicator.png)
Rma MACD