Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Scripts

Programming Patterns - Strategy - script for MetaTrader 5

Views:
7835
Rating:
(14)
Published:
2019.09.25 17:24
Updated:
2019.09.29 10:45
a_strategy.mq5 (15.54 KB) view
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 Programming Patterns - Decorator

    A way of sub-classing more functional objects, dynamically.

    Sudoku Sudoku

    Classical Sudoku puzzle right in MetaTrader chart.

    Programming Patterns - Observer Programming Patterns - Observer

    When the subject changes, it notifies and updates its observers, who know nothing about each other.

    Rma MACD Rma MACD

    Rma MACD