Developing MT5 EA which uses two sets of Moving Averages

MQL5 Experts

Specification

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

Responded

1
Developer 1
Rating
(380)
Projects
490
23%
Arbitration
59
54% / 25%
Overdue
56
11%
Loaded
2
Developer 2
Rating
(19)
Projects
23
9%
Arbitration
6
33% / 50%
Overdue
1
4%
Loaded
3
Developer 3
Rating
(630)
Projects
994
47%
Arbitration
33
36% / 36%
Overdue
98
10%
Free
Published: 6 codes
4
Developer 4
Rating
(2)
Projects
2
0%
Arbitration
0
Overdue
0
Free
Published: 1 code
5
Developer 5
Rating
(566)
Projects
655
33%
Arbitration
41
41% / 46%
Overdue
11
2%
Busy
6
Developer 6
Rating
(60)
Projects
87
29%
Arbitration
24
13% / 58%
Overdue
7
8%
Working
7
Developer 7
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
8
Developer 8
Rating
(2317)
Projects
2918
63%
Arbitration
123
44% / 25%
Overdue
429
15%
Loaded
9
Developer 9
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Working
10
Developer 10
Rating
(10)
Projects
15
13%
Arbitration
3
33% / 67%
Overdue
2
13%
Working
11
Developer 11
Rating
(19)
Projects
24
21%
Arbitration
0
Overdue
2
8%
Free
12
Developer 12
Rating
(190)
Projects
246
20%
Arbitration
22
50% / 18%
Overdue
0
Working
13
Developer 13
Rating
(39)
Projects
50
18%
Arbitration
6
33% / 50%
Overdue
0
Free
14
Developer 14
Rating
(16)
Projects
20
0%
Arbitration
10
0% / 80%
Overdue
6
30%
Free
15
Developer 15
Rating
(20)
Projects
22
14%
Arbitration
6
17% / 67%
Overdue
1
5%
Working
Published: 3 codes
16
Developer 16
Rating
(8)
Projects
9
0%
Arbitration
2
0% / 50%
Overdue
1
11%
Working
17
Developer 17
Rating
(618)
Projects
1428
59%
Arbitration
31
81% / 0%
Overdue
10
1%
Free
18
Developer 18
Rating
(636)
Projects
857
48%
Arbitration
29
38% / 17%
Overdue
63
7%
Working
19
Developer 19
Rating
(3)
Projects
1
0%
Arbitration
5
0% / 100%
Overdue
0
Free
20
Developer 20
Rating
(312)
Projects
559
35%
Arbitration
80
31% / 43%
Overdue
203
36%
Working
21
Developer 21
Rating
(36)
Projects
37
57%
Arbitration
1
100% / 0%
Overdue
1
3%
Working
Published: 5 codes
22
Developer 22
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
23
Developer 23
Rating
(6)
Projects
5
0%
Arbitration
2
50% / 50%
Overdue
2
40%
Free
24
Developer 24
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
25
Developer 25
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
26
Developer 26
Rating
(2656)
Projects
3374
68%
Arbitration
77
48% / 14%
Overdue
342
10%
Working
Published: 1 code
27
Developer 27
Rating
(30)
Projects
37
54%
Arbitration
2
50% / 50%
Overdue
3
8%
Free
28
Developer 28
Rating
(87)
Projects
247
80%
Arbitration
9
22% / 56%
Overdue
35
14%
Loaded
Published: 3 articles, 26 codes
29
Developer 29
Rating
(13)
Projects
20
40%
Arbitration
1
0% / 100%
Overdue
1
5%
Free
30
Developer 30
Rating
(271)
Projects
553
50%
Arbitration
57
40% / 37%
Overdue
227
41%
Working
31
Developer 31
Rating
(541)
Projects
818
62%
Arbitration
33
27% / 45%
Overdue
23
3%
Free
Published: 1 code
32
Developer 32
Rating
(442)
Projects
570
37%
Arbitration
106
39% / 33%
Overdue
17
3%
Free
33
Developer 33
Rating
(297)
Projects
476
40%
Arbitration
105
40% / 24%
Overdue
81
17%
Busy
Published: 2 codes
34
Developer 34
Rating
(16)
Projects
18
28%
Arbitration
0
Overdue
3
17%
Free
35
Developer 35
Rating
(3)
Projects
3
67%
Arbitration
0
Overdue
0
Working
36
Developer 36
Rating
(257)
Projects
263
30%
Arbitration
0
Overdue
3
1%
Free
Published: 2 codes
Similar orders
Due to price constraints, I am shifting what I would like. Would you be able to develop part of a strategy that automatically screens and selects stocks for trading? For example, screens for stocks up 20% with 500k volume for the day, and automatically begin trading them according to the strategy I already use. I use NinjaTrader to day trade my Interactive Brokers account and would like to add an automatic
Hello i need some to teach me step my step in an idiot terms and I will be willing to learn more and I am ready to pay for it any amount please if anyone can put me though i will be happy thank look forward to anyone responses
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 information

Budget
30+ USD
Deadline
to 5 day(s)

Customer

Placed orders3
Arbitrage count0