Chain of responsibility – behavioral design pattern – library MetaTrader 5

Chain of responsibility - behavioral design pattern - library for MetaTrader 5
//+——————————————————————+ //|                                        ChainOfResponsibility.mqh | //|                                    2019-2020, dimitri pecheritsa | //|                                                 792112@gmail.com | //+——————————————————————+ //| chain of responsibility — behavioral design pattern              | //+——————————————————————+ //   design patterns: elements of reusable object-oriented software //   gof > erich gamma, richard helm, ralph johnson, john vlissides //   published — 1994 //+——————————————————————+ //| intent                                                           | //+——————————————————————+ //   avoid coupling the sender of a … Read more

Command – behavioral design pattern – library MetaTrader 5

Command - behavioral design pattern - library for MetaTrader 5
//+——————————————————————+ //|                                                      Command.mqh | //|                                    2019-2020, dimitri pecheritsa | //|                                                 792112@gmail.com | //+——————————————————————+ //| command — behavioral design pattern                              | //+——————————————————————+ //   design patterns: elements of reusable object-oriented software //   gof > erich gamma, richard helm, ralph johnson, john vlissides //   published — 1994 //+——————————————————————+ //| intent                                                           | //+——————————————————————+ //   encapsulate a request as an object //    thereby letting … Read more

Interpreter – behavioral design pattern – library MetaTrader 5

Interpreter - behavioral design pattern - library for MetaTrader 5
//+——————————————————————+ //|                                                  Interpreter.mqh | //|                                    2019-2020, dimitri pecheritsa | //|                                                 792112@gmail.com | //+——————————————————————+ //| interpreter — behavioral design pattern                          | //+——————————————————————+ //   design patterns: elements of reusable object-oriented software //   gof > erich gamma, richard helm, ralph johnson, john vlissides //   published — 1994 //+——————————————————————+ //| intent                                                           | //+——————————————————————+ //   given a language, define a represention for its … Read more

Iterator – behavioral design pattern – library MetaTrader 5

Iterator - behavioral design pattern - library for MetaTrader 5
//+——————————————————————+ //|                                                201021_113117.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 //+——————————————————————+ //| iterator – behavioral design pattern                             | //+——————————————————————+ //   provide a way to access the elements of an aggregate … Read more

Mediator – behavioral design pattern – library MetaTrader 5

Mediator - behavioral design pattern - library for MetaTrader 5
//+——————————————————————+ //|                                                201028_095428.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 //+——————————————————————+ //| mediator – behavioral design pattern                             | //+——————————————————————+ //   define an object that encapsulates how a set of objects … Read more

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