Watch how to download trading robots for free

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

dmipec

Views:
873
Rating:
votes: 9
Published:
2019.09.25 17:24
Updated:
2019.09.29 10:45
a_strategy.mq5 (15.54 KB)view


  • 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