Classic 2 Moving Averages crossover EA – EA MetaTrader 5

inputs
This is a classic trading strategy based on two Moving Averages crossover. Buys when fast MA crosses slow MA from below and sells when fast MA crosses slow MA from above. This code can be used in both MetaTrader5 and MetaTrader4. Just change the file extension from .mq5 to .mq4 and compile the file in MetaEditor. This

Programming Patters – Builder (classic) – script MetaTrader 5

Programming Patters - Builder (classic) - script for MetaTrader 5
/*********************************************************************                                                            MQL5 Script                                                 Copyright 2019, dmipec                                                       792112@gmail.com Classic Builder Programming Pattern    This pattern was published in the “Design Patterns: Elements of    Reusable Object-Oriented Software”, 1st Edition, by Erich Gamma    (Author), Richard Helm (Author), Ralph Johnson (Author), John    Vlissides (Author), Grady Booch (Foreword). These authors are    collectively known as Gang

Classic Moving Averages with colors – indicator MetaTrader 5

Moving Averages colored
The five classic moving averages are present: Simple moving average Exponential moving average Smoothed moving average Linear weighted moving average Smoothed moving average The indicator displays a colored moving average. It has three parameters: Period calculation period Method calculation method Price applied prise used for calculation This version is faster and code is more flexible