Elmex Moving Average algo
- Experts
- Olesia Lukian
- Versione: 1.43
- Aggiornato: 5 maggio 2025
Introduction: The History of a Time-Tested Strategy The Moving Average Crossover strategy is one of the oldest and most respected technical analysis methods in financial markets, dating back to the 1930s when traders first began using moving averages to smooth price data. Richard Donchian, often referred to as the "Father of Trend Following," was among the first to popularize the use of moving average crossovers in the 1960s. This strategy gained further prominence when it was incorporated into the famous Turtle Trading system developed by Richard Dennis and William Eckhardt in the 1980s.
What makes this strategy endure through decades is its elegant simplicity combined with remarkable effectiveness. By tracking the relationship between a faster moving average (responsive to recent price changes) and a slower moving average (representing longer-term trends), traders can objectively identify trend changes and potential trading opportunities.
Strategy Overview The Moving Average Crossover EA implements this classic strategy in an automated, precise manner:
- Signal Generation:
- Buy Signal: When the Fast Moving Average crosses above the Slow Moving Average
- Sell Signal: When the Fast Moving Average crosses below the Slow Moving Average
- Exit Logic:
- Positions are automatically closed when an opposite signal occurs
- Additional protection through customizable Stop Loss and Take Profit levels
EA Setup and Configuration
Moving Average Settings
- Fast MA Period: Determines the responsiveness of the faster moving average (default: 12)
- Slow MA Period: Sets the period for the longer-term trend indicator (default: 26)
- MA Method: Choose between Simple, Exponential, Smoothed, or Linear Weighted methods
- Applied Price: Select which price point to use (Close, Open, High, Low, etc.)
Trade Parameters
- Lot Size: Fixed trading volume for each position
- Exit on Opposite Signal: Option to enable/disable closing positions on opposite signals
Stop Loss & Take Profit Settings
- Use SL/TP: Option to completely enable/disable Stop Loss and Take Profit (this need to be on if you desire point stop loss and take profit or atr base sl and tp)
- SL/TP Method: Choose between Fixed Points, ATR-Based, or Percentage-Based calculation methods
- ATR Period: Define lookback period for volatility calculation (default: 14)
- ATR SL Multiplier: Set risk relative to market volatility (default: 1.5)
- ATR TP Multiplier: Set profit targets relative to volatility (default: 2.5)
- Fixed Take Profit: Target profit in points (when using Fixed Points method)
- Fixed Stop Loss: Maximum acceptable loss in points (when using Fixed Points method)
- TP Percentage: Target profit as percentage of entry price (when using Percentage method)
- SL Percentage: Maximum acceptable loss as percentage of entry price (when using Percentage method)
Trailing Stop Settings
- Use Trailing Stop: Option to enable/disable the trailing stop feature
- Trailing Stop Method: Choose between Fixed Points, ATR-Based, or Percentage-Based calculation
- TS Points Trigger: Profit in points before trailing activation (for Fixed Points method)
- TS Points Distance: Distance in points between price and trailing stop (for Fixed Points method)
- TS ATR Trigger: ATR multiplier for trailing activation threshold (for ATR-Based method)
- TS ATR Distance: ATR multiplier for trailing stop distance (for ATR-Based method)
- TS Percent Trigger: Profit percentage before trailing activation (for Percentage method)
- TS Percent Distance: Distance percentage for trailing stop (for Percentage method)
Symbol Settings
- Multi-Symbol Mode: Option to trade multiple instruments simultaneously
- Symbol List: Define instruments to trade, separated by semicolons (e.g., "EURUSD;USDJPY;GBPUSD")
Additional Features
- Time Filter: Option to restrict trading to specific hours
- EA Comment: Custom comment for trade identification
- Magic Number: Unique identifier for the EA's trades
- Auto Filling Type Detection: Automatically selects optimal order filling mode for your broker
Important Note This EA has undergone several improvements since its initial release:
V1.0: Initial release with core moving average crossover strategy
V1.2: Added ATR-based dynamic Stop Loss/Take Profit and Multi-Symbol Trading capabilities
V1.41: Added flexible SL/TP toggle, exit on opposite signal option, and automatic broker compatibility
V1.42: Implemented advanced trailing stop system with three calculation methods (Fixed Points, ATR-Based, Percentage) and customizable activation thresholds
This is just the beginning - we have planned a series of free updates that will add advanced features, so please comment&review ^^
Past performance is not indicative of future results. Please test thoroughly on a demo account before live trading.

Started using it and works really well, I will try with a funded account