Memento – behavioral design pattern – library MetaTrader 5

Memento - behavioral design pattern - library for MetaTrader 5
//+——————————————————————+ //|                                                201104_114239.mq5 | //|                                    2019-2020, dimitri pecheritsa | //|                                                 792112@gmail.com | //+——————————————————————+ //   from: design patterns: elements of reusable object-oriented software //   by gof: erich gamma, richard helm, ralph johnson, john vlissides //   published in 1994 //+——————————————————————+ //| memento – behavioral design pattern                              | //+——————————————————————+ //   without violating encapsulation, capture and externalize an object’s //internal state so … Read more

observer (push) – behavioral design pattern – library MetaTrader 5

observer (push) - behavioral design pattern - library for MetaTrader 5
//+——————————————————————+ //|                                                201111_091814.mq5 | //|                                    2019-2020, dimitri pecheritsa | //|                                                 792112@gmail.com | //+——————————————————————+ // //   observer (push) – behavioral design pattern // //   from: design patterns: elements of reusable object-oriented software //   by gof: erich gamma, richard helm, ralph johnson, john vlissides //   published in 1994 // //   intent // //   define a one-to-many dependency between objects … Read more

observer (pull model) – behavioral design pattern – library MetaTrader 5

observer (pull model) - behavioral design pattern - library for MetaTrader 5
//+——————————————————————+ //|                                                201111_104313.mqh | //|                                    2019-2020, dimitri pecheritsa | //|                                                 792112@gmail.com | //+——————————————————————+ // //   observer (pull model) – behavioral design pattern // //   from: design patterns: elements of reusable object-oriented software //   by gof: erich gamma, richard helm, ralph johnson, john vlissides //   published in 1994 // //   intent // //   define a one-to-many dependency between … Read more

state – behavioral design pattern – library MetaTrader 5

state - behavioral design pattern - library for MetaTrader 5
//+——————————————————————+ //|                                                        State.mq5 | //|                                    2019-2020, dimitri pecheritsa | //|                                                 792112@gmail.com | //+——————————————————————+ // //   state – behavioral design pattern //   //   from: design patterns: elements of reusable object-oriented software //   by gof: erich gamma, richard helm, ralph johnson, john vlissides //   published in 1994 // //   intent // //   allow an object to alter its behavior … Read more

strategy – behavioral design pattern – library MetaTrader 5

strategy - behavioral design pattern - library for MetaTrader 5
//+——————————————————————+ //|                                                     Strategy.mq5 | //|                                    2019-2020, dimitri pecheritsa | //|                                                 792112@gmail.com | //+——————————————————————+ // //   strategy – behavioral design pattern // //   from: design patterns: elements of reusable object-oriented software //   by gof: erich gamma, richard helm, ralph johnson, john vlissides //   published in 1994 // //   intent // //   define a family of algorithms, encapsulate … Read more

template method – behavioral design pattern – library MetaTrader 5

template method - behavioral design pattern - library for MetaTrader 5
//+——————————————————————+ //|                                               TemplateMethod.mq5 | //|                                    2019-2020, dimitri pecheritsa | //|                                                 792112@gmail.com | //+——————————————————————+ // //   template method – behavioral design pattern // //   from: design patterns: elements of reusable object-oriented software //   by gof: erich gamma, richard helm, ralph johnson, john vlissides //   published in 1994 // //   intent //   //   define the skeleton of an … Read more

visitor – behavioral design pattern – library MetaTrader 5

visitor - behavioral design pattern - library for MetaTrader 5
//+——————————————————————+ //|                                                      Visitor.mq5 | //|                                    2019-2020, dimitri pecheritsa | //|                                                 792112@gmail.com | //+——————————————————————+ // //   visitor – behavioral design pattern // //   from: design patterns: elements of reusable object-oriented software //   by gof: erich gamma, richard helm, ralph johnson, john vlissides //   published in 1994 // //   intent //   //   represent an operation to be performed on … Read more