MT5 Expert Advisor – SMA Trend + Stochastic Reentry + ADX Filter

Specification

Expert Advisor Specification (Updated Version)
Platform: MetaTrader 5
Pair: XAUUSD
Strategy: Trend Following Scalping

1. Timeframe Settings
EA must allow user to choose timeframe for trend detection.
Input parameter:
Trend_Timeframe (ENUM_TIMEFRAME)
Examples:
M5
M10
M15
M30
H1
Default: M10
Entry timeframe = chart timeframe
Example: If EA attached on M3 chart → entry signals use M3.

2. Indicators
Trend Indicator
Simple Moving Average (SMA)
Periods:
SMA 20
SMA 50
SMA 100
Trend Conditions
BUY TREND
SMA20 > SMA50 > SMA100
SELL TREND
SMA20 < SMA50 < SMA100
These SMA calculations must use Trend_Timeframe.

3. Trend Strength Filter
Indicator: ADX
Settings: Period = 14
Conditions:
BUY allowed when
ADX > 20
+DI > -DI
SELL allowed when
ADX > 20
-DI > +DI
ADX must also use Trend_Timeframe.
Purpose: Avoid weak trend and sideways market.

4. Entry Indicator
Stochastic Oscillator
Settings:
%K = 5
%D = 3
Slowing = 3
Levels
Oversold = 20
Overbought = 80
Re-entry zones
BUY zone = 50 – 60
SELL zone = 40 – 50
Stochastic must use chart timeframe.

5. First Entry Rules
Wait for candle closed
BUY Entry
Conditions:
Trend = BUY
(SMA20 > SMA50 > SMA100)
ADX filter valid
ADX > 20 and +DI > -DI
Stochastic condition
Previous value below 20
Cross upward above 20
EA opens BUY trade
SELL Entry
Conditions:
Trend = SELL
(SMA20 < SMA50 < SMA100)
ADX filter valid
ADX > 20 and -DI > +DI
Stochastic condition
Previous value above 80
Cross downward below 80
EA opens SELL trade

6. Re-entry System
BUY Re-entry
Conditions:
Trend still BUY
Stochastic retraces into 50 – 60 zone
Stochastic crosses upward again
EA opens additional BUY trade
SELL Re-entry
Conditions:
Trend still SELL
Stochastic retraces into 40 – 50 zone
Stochastic crosses downward again
EA opens additional SELL trade

7. Trade Settings
Inputs:
Lot Size
(default 0.01)
Multiplier
(default 1.1)
Take Profit
(default 300 – 500 points for gold)
Stop Loss
(optional)
Minimum distance between trades
(default 500 points)

8. Hedging
EA must allow BUY and SELL positions at the same time.
If trend changes, EA can open opposite direction trades.

9. Trading Filters
Spread Filter
Example: Max spread allowed
Trading Time
Start Hour
End Hour

10. Safety Rules
EA must include:
Magic Number
Works in Strategy Tester
Compatible with live trading

11. Files Required
Programmer must deliver:
EX5 file
MQ5 source code

Responded

1
Developer 1
Rating
(393)
Projects
547
40%
Arbitration
30
57% / 3%
Overdue
57
10%
Free
Published: 11 codes
2
Developer 2
Rating
(9)
Projects
13
8%
Arbitration
3
33% / 67%
Overdue
1
8%
Free
3
Developer 3
Rating
(18)
Projects
22
9%
Arbitration
6
33% / 50%
Overdue
1
5%
Working
4
Developer 4
Rating
(22)
Projects
21
10%
Arbitration
4
25% / 75%
Overdue
0
Free
5
Developer 5
Rating
(51)
Projects
69
35%
Arbitration
4
25% / 75%
Overdue
0
Free
6
Developer 6
Rating
(213)
Projects
364
32%
Arbitration
34
41% / 29%
Overdue
108
30%
Free
Published: 1 code
7
Developer 7
Rating
(531)
Projects
805
62%
Arbitration
33
27% / 45%
Overdue
23
3%
Free
Published: 1 code
8
Developer 8
Rating
(30)
Projects
37
54%
Arbitration
2
50% / 50%
Overdue
3
8%
Free
9
Developer 9
Rating
(265)
Projects
596
35%
Arbitration
64
20% / 58%
Overdue
147
25%
Working
Published: 1 article, 22 codes
10
Developer 10
Rating
(22)
Projects
29
3%
Arbitration
4
25% / 0%
Overdue
3
10%
Working
11
Developer 11
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
12
Developer 12
Rating
(309)
Projects
555
35%
Arbitration
79
32% / 42%
Overdue
201
36%
Working
13
Developer 13
Rating
(12)
Projects
16
13%
Arbitration
4
50% / 25%
Overdue
4
25%
Working
14
Developer 14
Rating
(6)
Projects
4
0%
Arbitration
5
0% / 100%
Overdue
0
Free
15
Developer 15
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
16
Developer 16
Rating
(2)
Projects
4
0%
Arbitration
2
0% / 0%
Overdue
1
25%
Working
17
Developer 17
Rating
(1278)
Projects
1702
49%
Arbitration
52
71% / 12%
Overdue
38
2%
Working
18
Developer 18
Rating
(442)
Projects
698
34%
Arbitration
33
70% / 9%
Overdue
22
3%
Working
19
Developer 19
Rating
(94)
Projects
115
23%
Arbitration
21
29% / 52%
Overdue
8
7%
Working
20
Developer 20
Rating
(60)
Projects
87
29%
Arbitration
24
13% / 58%
Overdue
7
8%
Working
21
Developer 21
Rating
(6)
Projects
5
0%
Arbitration
2
50% / 50%
Overdue
2
40%
Free
22
Developer 22
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
23
Developer 23
Rating
(64)
Projects
83
28%
Arbitration
9
33% / 56%
Overdue
9
11%
Free
Published: 1 code
24
Developer 24
Rating
(3)
Projects
7
57%
Arbitration
1
0% / 100%
Overdue
1
14%
Working
25
Developer 25
Rating
(79)
Projects
137
51%
Arbitration
5
80% / 0%
Overdue
6
4%
Working
26
Developer 26
Rating
(375)
Projects
481
23%
Arbitration
59
54% / 25%
Overdue
55
11%
Loaded
27
Developer 27
Rating
(32)
Projects
32
63%
Arbitration
1
0% / 0%
Overdue
1
3%
Working
Published: 5 codes
28
Developer 28
Rating
(304)
Projects
310
69%
Arbitration
2
100% / 0%
Overdue
0
Free
Published: 1 code
29
Developer 29
Rating
(505)
Projects
972
74%
Arbitration
27
19% / 67%
Overdue
100
10%
Loaded
Published: 1 article, 6 codes
30
Developer 30
Rating
Projects
0
0%
Arbitration
1
0% / 100%
Overdue
0
Working
31
Developer 31
Rating
(270)
Projects
552
49%
Arbitration
57
40% / 37%
Overdue
227
41%
Working
32
Developer 32
Rating
(3)
Projects
1
100%
Arbitration
3
0% / 100%
Overdue
0
Free
33
Developer 33
Rating
(618)
Projects
1428
59%
Arbitration
31
81% / 0%
Overdue
10
1%
Free
Similar orders
I want robot that can help me trade and make some money so that I can be able to learn from it while I'm still in depot account now.Is how it gonna help me with some money
Articles How to create Requirements Specification for ordering an indicator 76 MetaQuotes 51 380 Table of Contents How can algo trading make a trader's live easier? Supplement text with images and videos Useful programs for creating Requirements Specification Formulating the Requirements Specification as an algorithm Requirements Specification Examples What can I specify in the Requirements Specification? Indicator
Hello, I have two requests: First: Feature Modification Request Currently, the EA places only one pending order at a time. I want to modify this to place two opposite pending orders (Buy Stop and Sell Stop) simultaneously, with the distance between them aligned with the existing Breakeven and Trailing Stop settings in the bot. How it should work: The EA places a Buy Stop above current price and a Sell Stop
I need a custom MT5 expert advisor (EA) designed to mirror trades between two different broker accounts (Master and Slave) running on the same local PC. My primary objective is Synchronous Execution to avoid being exposed to the market due to price mismatches. Core Requirements: Symbol-Agnostic: The EA must automatically copy trades for any symbol I trade (Forex, Gold, Indices, etc.) without needing to hardcode
Hello, I need a professional MT5 Expert Advisor for currency trading. PAIRS: EURUSD, GBPUSD, USDJPY, USDCHF TIMEFRAME: M15 STRATEGY: - EMA 8 cross EMA 21 (entry signal) - EMA 50 for trend filter - RSI 14 confirmation (Buy > 52, Sell < 48) - No trade if RSI > 75 or < 25 SESSION: London + New York only 07:00 to 17:00 GMT No weekend trading TRADE MANAGEMENT: - Lot size: 0.06 - Take Profit: $15 per trade - Stop Loss: $8
I need a MetaTrader 5 Expert Advisor (EA) for Forex trading. Account size: $1000 Requirements: 1. The EA should work only on Forex pairs. 2. Automatic Buy and Sell trades. 3. Lot size starting from 0.04. 4. Stop Loss and Take Profit settings. 5. Only one trade at a time. 6. Works on pairs like EURUSD, GBPUSD, USDJPY etc. 7. Risk management suitable for a $1000 account. 8. Easy settings for lot size, SL, TP and risk
I want to design an EA that can identify key Supports and Resistances. This should be able to work on any timeframe from 1 minute to 1 hour (i.e 1 minute, 5 minutes, 15 minutes and 1 hour time frames.) The EA should be able to determine a Fibonacci retracement from a support and the next resistance point in an uptrend and vice versa (i.e the EA should be able to determine a Fibonacci retracement from a resistance and
Product Requirements Document (PRD) Project Title: Liquidity Sniper Semi-EA (Fibonacci & SMC Based) Platform: MetaTrader 5 (MQL5) Target Asset: XAUUSD (High Volatility) / M5 Timeframe 1. EA Operating Concept (Semi-Automated) Human-Machine Collaboration: The trader manually draws a standard Fibonacci Retracement object on the M15 chart to define the market structure (setting the 1.0 and 0.0 anchor points). EA's Role
Short Description: I am seeking an experienced MQL4 developer to build a high-frequency Asymmetric Salami Grid EA . This is a sophisticated volatility harvester, not a basic martingale. Key Features to Implement: Virtual Grid Execution: No pending orders; all logic handled in-memory via OnTick . Asymmetric Lot Sizing: Trend-side degression vs. Counter-trend progression . Salami Partial Liquidation: XX% of profits
I am seeking an experienced MQL5 developer to build a high-precision Gold (XAUUSD) scalping Expert Advisor. The objective is to achieve a Profit Factor (PF) of 2.0 or higher with a focus on institutional logic rather than retail lagging indicators.The EA must be designed to pass a "100% Real Ticks" backtest (Exness/Dukascopy data) over a 30-day period with a $500 initial deposit.Core Requirements & Strategy

Project information

Budget
100 - 150 USD
Deadline
from 1 to 5 day(s)