Adjustable MA (MA crossover EA)
EA that trades the crossover of two moving averages, with adjustable method, period and price
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.
Open source, MIT License, by Santiago Cruz. See licences
First release on this site.
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.
| Name | Default | Description |
|---|---|---|
| StopLoss | 30 | Stop-loss in pips (on 5- or 3-digit symbols the code multiplies by 10 to get points). |
| TakeProfit | 100 | Take-profit in pips (multiplied by 10 on 5- or 3-digit symbols as well). |
| ADX_Period | 8 | ADX period. |
| MA_Period | 8 | Period of the EMA used for direction and the price filter. |
| EA_Magic | 12345 | Magic number of the orders the EA opens. |
| Adx_Min | 22 | Minimum ADX value that must be exceeded before an order is opened. |
| Lot | 0.1 | Lot 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.
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

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.
EA that trades the crossover of two moving averages, with adjustable method, period and price
EA that places buy stop and sell stop orders outside an MA band built on High and Low prices
EMA crossover EA with ADX/RSI/session/spread filters, ATR-based SL/TP and a trailing stop