Skip to content
Forex Indicator System Thailand
Back to marketplace
TrendEAMedium

ADX EA (EMA and ADX trend entries)

EA that opens trend-following Buy/Sell when the EMA slopes the same way, ADX is strong enough and +DI/-DI agree, with SL and TP.

Download this EA for free

Download right away. Nothing to fill in.

Version
1.00
Published
11/21/2026
File size
16 KB

Open source, MIT License, by Santiago Cruz. See licences

Version history

  1. 1.00Current11/21/2026 · 16 KB

    First release on this site.

How to use

Attach it to the chart you want (no fixed timeframe) and enable Algo Trading. Adjust Lot, StopLoss and TakeProfit to the symbol and account size. The chart needs at least 60 bars or the EA alerts and does nothing.

StopLoss/TakeProfit are in pips; the code multiplies by 10 on 5- and 3-digit symbols. Check this fits your symbol (gold and indices have different point sizes from forex), then test in the Strategy Tester and on a demo account.

Parameters

NameDefaultDescription
StopLoss30Stop-loss in pips (on 5- or 3-digit symbols the code multiplies by 10 to get points).
TakeProfit100Take-profit in pips (multiplied by 10 on 5- or 3-digit symbols as well).
ADX_Period8ADX period.
MA_Period8Period of the EMA used for direction and the price filter.
EA_Magic12345Magic number of the orders the EA opens.
Adx_Min22Minimum ADX value that must be exceeded before an order is opened.
Lot0.1Lot size per order.

Defaults are the values shipped with the EA, not a recommendation. Results depend on the market and on each account. Past results do not guarantee future results. Trading carries a high risk of loss.

How to install

  1. Download the .ex5 file.
  2. In MT5, choose File > Open Data Folder.
  3. Copy the file into the MQL5\Experts folder.
  4. Right-click Expert Advisors in the Navigator window and choose Refresh (or restart MT5).
  5. Drag it onto a chart, adjust the Inputs, turn on Allow Algo Trading, then click OK.

Description

A simple trend-following EA that runs on the symbol and timeframe of its chart. It checks for a signal once, when a new bar opens. A Buy needs the EMA (default period 8) rising over its last three values, the previous bar's close above the EMA, ADX (period 8) above Adx_Min, and +DI above -DI. A Sell is the mirror image.

Every order carries a stop-loss and take-profit in pips (defaults 30 and 100). The EA does not open a second Buy while a Buy exists on that symbol (same for Sell), but it does not close trades on the opposite signal; positions end only at SL or TP.

Banners from the Exness partner programme

Exness banner: gold spreads*

FXIDTH is an independent IB partner of Exness. This channel is not owned or operated by Exness.*Spreads may fluctuate and widen due to factors including market volatility, news events, market open/close, and others.*Processing times may vary depending on the chosen payment method.