MT5 EA Builder

MT5 EA Builder

13 May 2026, 14:48
Pablo Filipe Soares De Almeida
0
23

Developed by Pablo Filipe Soares de Almeida

Link: https://www.mql5.com/en/market/product/176620


MT5 EA Builder


Create Your Own Strategies Using Native MT5 Indicators

The "MT5 EA Builder" allows you to easily create your own trading strategy using native MT5 indicators in a simple way.
You can combine trend filters, oscillators, entry methods, stop loss, take profit, trailing stop, trading hours, and risk management in a practical way.

Main Features

  • Fully configurable through inputs (no recompilation required)
  • Support for the main native MetaTrader 5 indicators
  • 3 different entry methods (Candle Breakout, MA Cross, and Oscillator Signal)
  • Multiple Stop Loss and Take Profit options (including Risk:Reward and Opposite Signal)
  • Advanced Trailing Stop (Points, Money, MA, ATR, and Previous Candle)
  • Complete risk management system
  • Trading hours and trading days control
  • Smart lot calculation (Fixed, % of account, or Money)
  • Automatic closing using opposite oscillator signal

Available Indicators

The same indicators can be used in both the Trend Filter and the Oscillator Filter.

Indicator What It Measures Signal Logic Inside the EA
Moving Average Trend direction Price above/below the Moving Average
ADX Trend strength ADX > 20 + DI+ > DI- (bullish) / DI- > DI+ (bearish)
ATR Volatility Volatility expansion (current ATR > previous ATR)
Bulls Power Buying pressure Cross above zero line
Bears Power Selling pressure Cross above zero (bullish filter) / below zero (bearish filter)
Chaikin Oscillator Money flow / volume Zero line crossover
CCI Extreme levels Cross above -100 (buy) / below +100 (sell)
DeMarker Market exhaustion Cross above 0.30 (buy) / below 0.70 (sell)
Force Index Strength with volume Zero line crossover
MACD Momentum + trend Zero line crossover
Momentum Price acceleration Cross above/below 100
OsMA MACD histogram Zero line crossover
RSI Relative strength Cross above 30 (buy) / below 70 (sell)
Stochastic Momentum vs range Cross above 20 (buy) / below 80 (sell)
Williams %R Extreme levels Cross above -80 (buy) / below -20 (sell)

Important: All oscillator signals use confirmation crossovers, making the EA more robust against false signals.


The following indicators are available for both "Trend Filter" and "Oscillator":

  • "None" → No indicator selected.
  • "Moving Average" → Uses Moving Average to identify trend direction.
  • "ADX" → Uses ADX to detect trend strength.
  • "Average True Range" → Uses volatility expansion.
  • "Bears Power" → Measures seller strength.
  • "Bulls Power" → Measures buyer strength.
  • "Chaikin Oscillator" → Uses money flow momentum.
  • "Commodity Channel Index" → Detects overbought and oversold levels.
  • "DeMarker" → Measures market exhaustion.
  • "Force Index" → Uses price and volume strength.
  • "MACD" → Uses momentum and trend direction.
  • "Momentum" → Measures price acceleration.
  • "Moving Average of Oscillator" → MACD histogram momentum.
  • "Relative Strength Index" → RSI oscillator.
  • "Stochastic Oscillator" → Compares close price with recent range.
  • "Williams’ Percent Range" → Momentum oscillator.

How to create a strategy (Step-by-step)

1. Trend Filter

Use "Trend Filter - (Choose an)" to select an indicator for trend direction analysis.

Additional settings

  • "Period" → Indicator calculation period.
  • "Timeframe" → Timeframe used for the trend filter.



2. Oscillator Filter

Use "Oscillator - (Choose an)" to select an indicator for momentum or volatility confirmation.

Additional settings

  • "Period" → Oscillator calculation period.
  • "Timeframe" → Timeframe used for the oscillator.



3. Buy Entry Mode

Use "Buy Entry Mode" to define how buy trades are opened.

Options

  • "Candle High Break" → Buy when price breaks previous candle highs.
  • "Moving Average Cross" → Buy when fast MA crosses above slow MA.
  • "Selected Oscillator Signal" → Buy using oscillator signal conditions.

Additional settings

  • "Previous Candle Count (for Candle High Break)" → Number of candles used for breakout.
  • "Fast MA Period (for MA Cross)" → Fast Moving Average period.
  • "Slow MA Period (for MA Cross)" → Slow Moving Average period.
  • "MA Timeframe (for MA Cross)" → Timeframe used for MA cross.



4. Sell Entry Mode

Use "Sell Entry Mode" to define how sell trades are opened.

Options

  • "Candle Low Break" → Sell when price breaks previous candle lows.
  • "Moving Average Cross" → Sell when fast MA crosses below slow MA.
  • "Selected Oscillator Signal" → Sell using oscillator signal conditions.

Additional settings

  • "Previous Candle Count (for Candle Low Break)" → Number of candles used for breakout.
  • "Fast MA Period (for MA Cross)" → Fast Moving Average period.
  • "Slow MA Period (for MA Cross)" → Slow Moving Average period.
  • "MA Timeframe (for MA Cross)" → Timeframe used for MA cross.



5. Lot Management

Use "Lot Management" to configure position size calculation.

Options

  • "Fixed" → Uses fixed lot size.
  • "Percent of Account" → Calculates lot size based on account risk percentage.
  • "Money" → Calculates lot size based on money amount risk.

Additional settings

  • "Lot Size (Fixed)" → Fixed trade volume.
  • "Risk Percent (Percent of Account)" → Risk percentage per trade.
  • "Money Amount (Money)" → Money amount used for risk calculation.



6. Stop Loss

Use "Stop Loss Type" to define stop loss calculation.

Options

  • "Points" → Fixed stop loss in points.
  • "Previous Candle" → Stop loss based on previous candle high or low.
  • "ATR x Multiplier" → Stop loss based on ATR volatility.
  • "None" → No stop loss.

Additional settings

  • "Stop Loss Points" → Stop loss distance in points.
  • "Candle Count (Previous Candle)" → Number of candles used for previous candle stop.
  • "ATR Period" → ATR period.
  • "ATR Multiplier" → ATR multiplier value.



7. Take Profit

Use "Take Profit Type" to define take profit calculation.

Options

  • "Fixed Points" → Fixed take profit in points.
  • "ATR x Multiplier" → Take profit based on ATR volatility.
  • "Risk Reward Based on Stop Loss" → Take profit based on Risk Reward ratio.
  • "Opposite Oscillator Signal" → Close position on opposite oscillator signal.
  • "None" → No take profit.

Additional settings

  • "Take Profit Points" → Take profit distance in points.
  • "ATR Period" → ATR period.
  • "ATR Multiplier" → ATR multiplier value.
  • "Risk Reward Ratio" → Risk Reward ratio.



8. Trailing Stop

Use "Trailing Stop Type" to automatically move stop loss while the trade is in profit.

Options

  • "Points" → Trailing stop using fixed points.
  • "Money" → Trailing stop using profit amount.
  • "Moving Average" → Trailing stop following Moving Average.
  • "ATR x Multiplier" → Trailing stop based on ATR volatility.
  • "Previous Candle" → Trailing stop based on the high/low of previous candles.
  • "None" → No trailing stop.

Additional settings

  • "Trailing Activation Points" → Profit points required to activate trailing.
  • "Trailing Distance Points" → Distance between price and stop loss.
  • "Trailing Activation Money" → Profit amount required to activate trailing.
  • "Trailing Distance Money" → Money distance for trailing.
  • "MA Period (Moving Average Trail)" → Moving Average period for trailing.
  • "ATR Period" → ATR period.
  • "ATR Multiplier" → ATR multiplier value.
  • "Previous Candle Count" → Number of previous candles to consider for trailing.
  • "Candle Buffer (Points)" → Extra safety buffer in points.



9. Risk Management

Controls account protection and trading limits.

Settings

  • "Max Daily Loss ($)" → Stops trading after reaching daily loss limit.
  • "Max Loss Per Trade ($) - 0 = unlimited" → Maximum allowed loss per trade.
  • "Max Daily Profit ($) - 0 = unlimited" → Stops trading after reaching daily profit target.
  • "Max Simultaneous Trades" → Maximum number of open positions.



10. Trading Time

Controls allowed trading hours.

Settings

  • "Start Hour (0-23)" and "Start Minute (0-59)" → Trading start time.
  • "End Hour (0-23)" and "End Minute (0-59)" → Trading end time.



11. Trading Days

Enable or disable trading days.

Settings

  • "Monday"
  • "Tuesday"
  • "Wednesday"
  • "Thursday"
  • "Friday"
  • "Saturday"
  • "Sunday"

All strategies are created directly from the EA inputs using standard MT5 indicators.



    Recommended Usage Tips

    • Conservative Strategy: Trend Filter (MA or ADX on H1) + Oscillator (RSI or Stochastic on M15) + Candle Break.
    • Aggressive Strategy: Oscillator Signal as entry + Opposite Oscillator as TP.
    • Scalping: Candle Break on M1/M5 + ATR Trailing Stop.
    • Swing Trading: Strong Trend Filter + Risk Reward 1:3 or higher.

    Author: Pablo Filipe Soares de Almeida

    Version: 2.0

    Product Link:
    https://www.mql5.com/en/market/product/176620