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

Candle Pattern EA /test – EA MetaTrader 5

Candle Pattern EA /test - expert for MetaTrader 5
This is a simple EA test code I made for adapting Candlepatterns.mqh found at https://www.mql5.com/en/code/291.  It has also another desired translation inside: The news template found at https://www.mql5.com/en/code/19138. Although it is not totally translated to MT5 as I am using MT4orders.mqh. Remember you must add MT4orders.mqh inside your include folder.  You can use it straight … Read more

Engulfing Pattern Plus One – indicator MetaTrader 5

Engulfing Pattern Plus One
The idea of the indicator Engulfing Pattern Plus One’: The current bar completely Engulfings the previous two bars. Absorption takes into account ‘High’ and ‘Low’ prices Rice. 1. Engulfing Pattern Plus One The pattern is displayed using ‘Arrow’ objects, and two rectangles are drawn on the chart manually – specifically, to visualize and explain how this … Read more