Developing MT5 EA which uses two sets of Moving Averages

MQL5 Experts

Spécifications

Hi

I need an EA that uses two sets of moving averages to execute trades.

One set of moving average will have two moving averages (FAST and SLOW moving averages) and the second sets as well. The moving averages of one set will share the same method but the two sets can use different methods among them.

The EA is to execute trades as follows:

Ø    Open a Long trade when the fast moving average of first set crosses above the slow moving average of the same set as long as the number of bars is not more than certain number after cross-over (See point A in the sketch).

Ø  The EA is to open only one trade in the same direction (i.e. No more than one Long or short trade at any given point in time).

 Ø  Close the long trade when the fast moving average of the second set crosses below the slow moving average of the second set (See point C in the sketch).

 Ø  Open a short trade when the fast moving average of the first set crosses below the slow moving average of the same set as long as the number of bars is not more than a certain number after cross-over (See point B in the sketch).

 Ø  The Short trade will close when the fast moving average of the second set crosses above the slow moving average of the same set (see point D in the sketch).

Note: Given that fast moving average of set 1 may cross down the slow moving average of the same set before the fast moving average of set 2 crosses down the moving average of set 2; this may prompt opening a short trade whilst the long trade is still open. We will therefore permit opening a short trade before the long trade may have closed and vice versa.

We will need to plot the moving average in different color with the moving average of 

the first set ploted as solid lines and moving averages of the second set plotted as Dash lines. Lets use Green for Fast moving average and Red for Slow moving averages.

Moving Average Indication

Répondu

1
Développeur 1
Évaluation
(380)
Projets
490
23%
Arbitrage
59
54% / 25%
En retard
56
11%
Chargé
2
Développeur 2
Évaluation
(19)
Projets
23
9%
Arbitrage
6
33% / 50%
En retard
1
4%
Chargé
3
Développeur 3
Évaluation
(630)
Projets
994
47%
Arbitrage
33
36% / 36%
En retard
98
10%
Gratuit
Publié : 6 codes
4
Développeur 4
Évaluation
(2)
Projets
2
0%
Arbitrage
0
En retard
0
Gratuit
Publié : 1 code
5
Développeur 5
Évaluation
(566)
Projets
655
33%
Arbitrage
41
41% / 46%
En retard
11
2%
Occupé
6
Développeur 6
Évaluation
(60)
Projets
87
29%
Arbitrage
24
13% / 58%
En retard
7
8%
Travail
7
Développeur 7
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
8
Développeur 8
Évaluation
(2317)
Projets
2918
63%
Arbitrage
123
44% / 25%
En retard
429
15%
Chargé
9
Développeur 9
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
10
Développeur 10
Évaluation
(10)
Projets
15
13%
Arbitrage
3
33% / 67%
En retard
2
13%
Travail
11
Développeur 11
Évaluation
(19)
Projets
24
21%
Arbitrage
0
En retard
2
8%
Gratuit
12
Développeur 12
Évaluation
(190)
Projets
246
20%
Arbitrage
22
50% / 18%
En retard
0
Travail
13
Développeur 13
Évaluation
(39)
Projets
50
18%
Arbitrage
6
33% / 50%
En retard
0
Gratuit
14
Développeur 14
Évaluation
(16)
Projets
20
0%
Arbitrage
10
0% / 80%
En retard
6
30%
Gratuit
15
Développeur 15
Évaluation
(20)
Projets
22
14%
Arbitrage
6
17% / 67%
En retard
1
5%
Travail
Publié : 3 codes
16
Développeur 16
Évaluation
(8)
Projets
9
0%
Arbitrage
2
0% / 50%
En retard
1
11%
Travail
17
Développeur 17
Évaluation
(618)
Projets
1428
59%
Arbitrage
31
81% / 0%
En retard
10
1%
Gratuit
18
Développeur 18
Évaluation
(636)
Projets
857
48%
Arbitrage
29
38% / 17%
En retard
63
7%
Travail
19
Développeur 19
Évaluation
(3)
Projets
1
0%
Arbitrage
5
0% / 100%
En retard
0
Gratuit
20
Développeur 20
Évaluation
(312)
Projets
559
35%
Arbitrage
80
31% / 43%
En retard
203
36%
Travail
21
Développeur 21
Évaluation
(34)
Projets
35
60%
Arbitrage
1
100% / 0%
En retard
1
3%
Chargé
Publié : 5 codes
22
Développeur 22
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
23
Développeur 23
Évaluation
(6)
Projets
5
0%
Arbitrage
2
50% / 50%
En retard
2
40%
Gratuit
24
Développeur 24
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
25
Développeur 25
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
26
Développeur 26
Évaluation
(2656)
Projets
3374
68%
Arbitrage
77
48% / 14%
En retard
342
10%
Travail
Publié : 1 code
27
Développeur 27
Évaluation
(30)
Projets
37
54%
Arbitrage
2
50% / 50%
En retard
3
8%
Gratuit
28
Développeur 28
Évaluation
(87)
Projets
247
80%
Arbitrage
9
22% / 56%
En retard
35
14%
Chargé
Publié : 3 articles, 26 codes
29
Développeur 29
Évaluation
(13)
Projets
20
40%
Arbitrage
1
0% / 100%
En retard
1
5%
Gratuit
30
Développeur 30
Évaluation
(271)
Projets
553
50%
Arbitrage
57
40% / 37%
En retard
227
41%
Travail
31
Développeur 31
Évaluation
(541)
Projets
818
62%
Arbitrage
33
27% / 45%
En retard
23
3%
Gratuit
Publié : 1 code
32
Développeur 32
Évaluation
(442)
Projets
570
37%
Arbitrage
106
39% / 33%
En retard
17
3%
Gratuit
33
Développeur 33
Évaluation
(297)
Projets
476
40%
Arbitrage
105
40% / 24%
En retard
81
17%
Chargé
Publié : 2 codes
34
Développeur 34
Évaluation
(16)
Projets
18
28%
Arbitrage
0
En retard
3
17%
Gratuit
Commandes similaires
Hello traders, I am currently looking for a professional and experienced trading coach/mentor and would like to connect with individuals who offer structured coaching services. Before proceeding, I would appreciate clarity on the following: Your primary trading strategy (scalping, intraday, swing, or long-term investing) Markets you specialize in (Forex, crypto, indices, stocks, etc.) Availability of verified track
Hello traders, I am currently looking for a professional and experienced trading coach/mentor and would like to connect with individuals who offer structured coaching services. Before proceeding, I would appreciate clarity on the following: Your primary trading strategy (scalping, intraday, swing, or long-term investing) Markets you specialize in (Forex, crypto, indices, stocks, etc.) Availability of verified track
أحتاج إلى مبرمج محترف لبرمجة اكسبيرت تداول آلي لمنصة MetaTrader 5 يعمل على زوج الذهب XAUUSD فريم الدقيقة. الاستراتيجية المطلوبة: الدخول شراء عند تقاطع المتوسط المتحرك 10 مع 50 صعوداً + مؤشر RSI فوق مستوى 50. الدخول بيع عند التقاطع هبوطاً + مؤشر RSI تحت مستوى 50. إدارة رأس المال: اللوت 0.01 لكل 1000 دولار، وقف خسارة 100 نقطة، هدف ربح 200 نقطة، مع تريلنق ستوب يبدأ بعد 50 نقطة ربح. المطلوب: تسليم الكود مفتوح المصدر مع
Looking for experience profitable manual traders that will be willing to trade my live mt5 account for profit share. Requirements Must have at least 6 months of profitable months. Min 10 percent monthly Send me investor credentials for mt5 or mt4 account. Can be trading Any instruments. Must reply with mt5 credentials or will disregard
XAUUSD_Strategy_EA 80 - 120 USD
I need an MT5 Expert Advisor for XAUUSD. Strategy: BUY conditions: Price above EMA 50 RSI above 50 Recent high breakout Retest confirmation candle bullish SELL conditions: Price below EMA 50 RSI below 50 Recent low breakout Retest confirmation candle bearish Risk management: Risk per trade 1% Stop loss = recent swing high/low Take profit = Risk Reward 1:2 Extra features: Trailing stop option Breakeven option Max 4
more detailed requirements 1 Expert in MQL5, who can build with supertrend formula which can calculate the target time. For instance:When there is buy and sell in supertrend ,our target is of 20 points, that method should calculate the target with time
Hello i am looking for a profitable gold MT5 indicator that shows entry zones. Send trial when applying. Also provide screenshots. The indicator should give buy/sell entry points with SL and TP
Am looking for good programmer to help me to convert two Ex4 file into EA. The first indicator provide 9 tools signal and the second indicator is Candle stick strategy. Kindly see the attached file for proper explanation about the BOT. Below is discription 🔹 PART 1: Candle Structure Strategy (Daily / Weekly / Monthly) ✅ Core Idea You are trading alignment of higher timeframe direction with lower timeframe
Project Overview: I am looking for a professional MQL5 developer to build a high-performance Expert Advisor (EA) for MT5. The project requires high-level technical skills in integrating external indicators and managing complex trade exits. General Requirements: 1. Integration with external indicators via Buffers (iCustom). 2. Implementation of an advanced 5-Tier Trailing system based on Money/Points. 3. Custom Visual
Ihy 30 - 500 USD
Hello, I am looking for access to MT5 trading accounts connected to the market, either demo or live, for the purpose of monitoring and verifying trading performance. Investor (read-only) password access is sufficient, as I only need to log in through MetaTrader 5 to review trade history, risk management, and consistency of results over time. Kindly provide the necessary login details for any available accounts that

Informations sur le projet

Budget
30+ USD
Délais
à 5 jour(s)

Client

Commandes passées3
Nombre d'arbitrages0