Hedging EA with EMA 9

MQL5 Experts

Job finished

Execution time 2 days
Feedback from customer
I am super surprised from the skills Marco have, super intelligent and fast guy.... Always gonna be my first choice Thank you!
Feedback from employee
Fantastic customer!

Specification

We need to build hedging EA where only indicator for buy/sell is EMA 9 close

Inputs in settings 
EMA = Ema9 close
Lotsize = 0.01
TakeProfit = 1 USD
Commission = 0.2 USD


We will separate this strategy in 4 different cases 
Case 1 = 1 open trade
Case 2 = 3 open trades
Case 3 = 5 open trades
Case 4 = 6 open trades
FLOW
Case 1:
Buy trade: If one candle it come full OVER ema 9 we are entering in BUY position
Sell trade: If one candle it come full UNDER ema 9 we are entering in SELL position

We have TP=TakeProfit + commission, if trade reach that is closing and open new position in same direction

ELSE
CASE 2
If first signal does not reach TP, we are opening 2 new trades in opposite direction with same LotSize
Example we have 1 buy trade, then we open 2 x 1 Sell trades and making a BASKET of 1 buy and 2 sell positions 
IF we reach TP where TP = TakeProfit + (3 * commission ) trade is closing and we go on CASE 1
ELSE
CASE 3
If we have 1 buy, 2 x 1 sell trades and they did not reach TP level then we are opening 2 x 1 buy trade and making a basket of 3 buy and 1 sell positions where TP = TakeProfit + (5 * commission) if reach TP we are back in CASE 2
Else 
CASE 4
IF we have 1 buy, 2 x 1 sell, 2 x 1 buy and they did not reach TP level then we are opening only 1 SELL trade
and we are making 2 TP baskets
1 TP BUY BASKET where it have 3 Buy and 1 Sell trade
2 TP SELL BASKET where it have 3 sell and 1 buy trade

IF we reach 1st TP BASKET we are going back to case 3 with opening 3 x 1 buy trades
Else IF we reach 2nd TP BASKET we are going back to case 3 with opening 3 x 1 sell trades

Responded

1
Developer 1
Rating
(253)
Projects
316
29%
Arbitration
34
26% / 65%
Overdue
10
3%
Free
2
Developer 2
Rating
(33)
Projects
38
21%
Arbitration
5
0% / 60%
Overdue
0
Free
3
Developer 3
Rating
(142)
Projects
151
41%
Arbitration
3
33% / 33%
Overdue
1
1%
Working
4
Developer 4
Rating
(1)
Projects
3
0%
Arbitration
0
Overdue
0
Free
5
Developer 5
Rating
(9)
Projects
13
8%
Arbitration
3
33% / 67%
Overdue
1
8%
Working
6
Developer 6
Rating
(509)
Projects
977
74%
Arbitration
27
19% / 67%
Overdue
101
10%
Free
Published: 1 article, 6 codes
7
Developer 7
Rating
(258)
Projects
396
28%
Arbitration
69
19% / 49%
Overdue
121
31%
Free
8
Developer 8
Rating
(2)
Projects
0
0%
Arbitration
5
0% / 60%
Overdue
0
Free
9
Developer 9
Rating
(22)
Projects
21
10%
Arbitration
4
25% / 75%
Overdue
0
Free
10
Developer 10
Rating
(1)
Projects
2
0%
Arbitration
2
0% / 50%
Overdue
0
Free
11
Developer 11
Rating
(328)
Projects
510
19%
Arbitration
33
45% / 30%
Overdue
34
7%
Loaded
12
Developer 12
Rating
(3)
Projects
4
25%
Arbitration
0
Overdue
0
Free
13
Developer 13
Rating
(1)
Projects
1
0%
Arbitration
1
0% / 0%
Overdue
0
Free
14
Developer 14
Rating
(3)
Projects
2
50%
Arbitration
1
0% / 100%
Overdue
0
Free
15
Developer 15
Rating
(6)
Projects
6
0%
Arbitration
2
50% / 0%
Overdue
1
17%
Free
16
Developer 16
Rating
(4)
Projects
8
0%
Arbitration
3
33% / 67%
Overdue
4
50%
Free
17
Developer 17
Rating
(3)
Projects
4
0%
Arbitration
1
0% / 0%
Overdue
0
Free
18
Developer 18
Rating
(1)
Projects
1
0%
Arbitration
0
Overdue
0
Free
19
Developer 19
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
20
Developer 20
Rating
(18)
Projects
26
0%
Arbitration
4
0% / 100%
Overdue
5
19%
Free
21
Developer 21
Rating
(75)
Projects
80
6%
Arbitration
46
11% / 54%
Overdue
7
9%
Working
22
Developer 22
Rating
(1)
Projects
2
50%
Arbitration
1
0% / 100%
Overdue
1
50%
Free
23
Developer 23
Rating
(296)
Projects
475
40%
Arbitration
105
40% / 24%
Overdue
80
17%
Busy
Published: 2 codes
24
Developer 24
Rating
(162)
Projects
287
34%
Arbitration
18
22% / 61%
Overdue
42
15%
Working
25
Developer 25
Rating
(311)
Projects
557
35%
Arbitration
79
32% / 43%
Overdue
202
36%
Working
26
Developer 26
Rating
(390)
Projects
416
30%
Arbitration
74
19% / 72%
Overdue
52
13%
Working
27
Developer 27
Rating
(361)
Projects
644
26%
Arbitration
92
72% / 14%
Overdue
12
2%
Working
Published: 1 code
28
Developer 28
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
29
Developer 29
Rating
(206)
Projects
333
35%
Arbitration
66
12% / 58%
Overdue
87
26%
Free
30
Developer 30
Rating
(16)
Projects
18
28%
Arbitration
0
Overdue
3
17%
Free
31
Developer 31
Rating
(77)
Projects
243
74%
Arbitration
7
100% / 0%
Overdue
1
0%
Free
Published: 1 article
32
Developer 32
Rating
(574)
Projects
945
47%
Arbitration
309
58% / 27%
Overdue
125
13%
Free
Similar orders
SMC ORDER BLOCK 30 - 60 USD
I want already build FULLY AUTOMATED order block MT5 XAUUSD HTF H4 ENTRY LTF M15 - Show result on live account. m15 ob entry in the direction of h4 ob bias the developper to provide source code in the end
I need an MT5 Expert Advisor built as a high-precision volumizer for Forex. Its core purpose is to generate controlled trading volume for rebates, while still maintaining low-risk account growth. I am not looking for aggressive profit chasing. I am looking for a stable, intelligent EA that can produce volume in a disciplined way without damaging the account. The ideal system should trade major currency pairs, avoid
1. IF price forms: - Higher highs + higher lows → TREND = BUY - Lower highs + lower lows → TREND = SELL ELSE → NO TRADE 2. IF: - Trend = BUY - Price retraces to support zone - Bullish engulfing candle forms - TDI green crosses above red (optional) THEN: - Execute BUY 3. IF: - Trend = SELL - Price retraces to resistance - Bearish engulfing forms - TDI confirms THEN: - Execute SELL 4. Risk per trade = 1% of account Lot
I need a high frequency trading robot for gold in one or 5 minute timeframe the robot should have spread filter where it should only open trades below a set spread should have news filter to allow trading during fundal news or not the robot should have input in number of minutes to close all open trades and remove pending orders before fundamental news as part of news filter. It should also have the number of minutes
Hello! I want to programm EA that uses volume profile indicator, but I am not sure if this is possible. Only experienced programmers please, I will not select a programmer who did only few jobs. Before starting I need to make sure you understand everything and that this is for sure technically possible
Hello, I am looking for a professional trading system including: 1- Trading Bot (Expert Advisor): - Good profit performance - High security and strong risk management - Works efficiently during high market volatility (news and strong movements) - Works on all pairs (Forex + Gold) 2- Signal Indicator: - Provides clear Buy and Sell signals - Includes Take Profit and Stop Loss - No repaint (signals must not change or
Hi, I’m looking for a top-tier, profit-optimized EA that has the potential to scale trading returns significantly. My goal is to maximize growth over time. Can you help develop a bespoke EA that could potentially scale to high six or seven figures
Max amount grid 30+ USD
max amount grid step for magic number do keep deleting .only when it is in negative floating .but when it is profit allow to go over the max and replays to grid step
Apply with a screen of your work . Symbol Specific Logic . Live Chart Optimization Check the Core logic . [back tests as well] Change points to pips . Create buffer for the zone

Project information

Budget
30+ USD