Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Script | Programming Patterns - Strategy

MetaTrader Experts, Indicators, Scripts and Libraries

  • 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.
26722