5 ema for crossovers

MQL5 Experts

Job finished

Execution time 5 minutes
Feedback from customer
great as always...and post handover of the project also he is always available to help
Feedback from employee
Nice client. Fast communication. Good description of specifications. I look forward to working with you again.

Specification

MT5 5-EMA + ATR Fixed-Money-Risk EA

I need an MT5 Expert Advisor running on the 5-minute chart using EMA(5) and ATR(14).

SHORT SETUP

  1. Use only completed 5-minute candles.
  2. A SHORT alert candle forms when the entire candle is above EMA(5), meaning even the LOW/wick does not touch the EMA.
  3. Mark that candle’s LOW as the SHORT trigger price.
  4. If another completed candle also stays completely above EMA(5), replace the old trigger with the LOW of the latest qualifying candle.
  5. When market price breaks below the latest trigger LOW, immediately open one SELL trade.
  6. If price touches/crosses EMA(5) before entry happens, cancel that setup and wait for a fresh qualifying alert candle.

LONG SETUP

  1. Exact opposite logic: a LONG alert candle forms when the entire candle is below EMA(5), meaning even its HIGH/wick does not touch EMA(5).
  2. Mark the latest qualifying candle’s HIGH as the trigger. When price breaks above it, open one BUY trade.

ATR STOP LOSS

  1. At the exact moment the trade is opened, read the current 5-minute ATR(14) and freeze this ATR value for that trade.
  2. For a SHORT trade, the stop-loss distance must equal that frozen ATR(14) and the SL is placed above the entry.
  3. For a LONG trade, the stop-loss distance must equal that frozen ATR(14) and the SL is placed below the entry.
  4. The frozen ATR must NOT change after the trade has opened.

FIXED MONEY LOSS / AUTOMATIC LOT SIZE

  1. Add an input called Risk Amount, entered in my account currency, e.g. AED 25 / AED 50 / AED 100.
  2. The EA must automatically calculate the lot size so that if the ATR stop-loss is hit, the planned loss is as close as possible to my Risk Amount without exceeding it.
  3. Example: if my Risk Amount is AED 50 and available broker lot sizes would produce either approximately AED 40 loss or AED 70 loss, always choose the lower AED 40 risk.
  4. Always round the calculated lot size DOWN to the nearest permitted broker lot/volume step. Never round upward beyond my selected Risk Amount.
  5. If the broker’s minimum lot would already risk more than my Risk Amount, do not take the trade.
  6. If available margin is insufficient, do not take the trade.
  7. Lot calculation must use the actual symbol contract/tick value and actual entry-to-SL distance so it works correctly on BTC, Gold, Nasdaq, Oil, etc.

TAKE PROFIT

  1. Add an input called TP ATR Multiplier.
  2. Take Profit distance must use the same ATR value that was frozen when the trade opened.
  3. Example settings: 10 = TP 10 × frozen ATR away from entry; 15 = 15 × ATR; 20 = 20 × ATR.
  4. For SHORT trades, TP is below entry. For LONG trades, TP is above entry.
  5. Allow TP ATR Multiplier = 0 to mean no automatic TP, because I may close the position manually.
  6. If I manually close a position, the EA must not reopen from the previous signal. It must wait for a completely fresh valid 5-EMA setup.

EXECUTION / SAFETY

  1. Only one EA position per symbol at a time.
  2. Repeated ticks around the trigger must never create duplicate trades.
  3. No martingale and no automatic increase in position size after losses.
  4. Use the current MT5 chart symbol (_Symbol) rather than hard-coded symbols, so it works with broker suffixes such as BTCUSDm, XAUUSDm, USTECm and USOILm.
  5. After an MT5/VPS restart, the EA must detect any existing trade correctly and must never duplicate it.

INPUTS

  • EMA Period = default 5
  • ATR Period = default 14
  • ATR SL Multiplier = default 1.0
  • Risk Amount in account currency
  • TP ATR Multiplier = e.g. 10 / 15 / 20 / 0 for manual exit
  • Enable Long = true/false
  • Enable Short = true/false
  • Enable Trading = true/false
  • Magic Number

ON-CHART DISPLAY

Show: Symbol, EMA value, ATR value, alert candle, trigger price, calculated SL, calculated lot size, planned monetary loss, TP and current state: WAITING / ARMED LONG / ARMED SHORT / POSITION OPEN.

DELIVERY

I require the editable .mq5 source code, compiled .ex5 file and basic instructions. It must work in MT5 Strategy Tester and Exness MT5 and must require no DLLs or external software.

One example you can also send him if he asks for clarification:

SELL entry = 30,000
ATR(14) at entry = 50 points
SL distance = 50 points → SL = 30,050
TP multiplier = 15 → TP distance = 750 points → TP = 29,250
ATR remains frozen at 50 for that entire trade.

And your AED 50 rule means the EA might deliberately risk AED 46 or AED 40 if the broker's available lot increments don't allow exactly AED 50. It should never intentionally choose AED 55/70 just to get closer to AED 50. That's worth keeping exactly as written.





Responded

1
Developer 1
Rating
(637)
Projects
1009
47%
Arbitration
33
36% / 36%
Overdue
99
10%
Free
Published: 6 codes
2
Developer 2
Rating
(639)
Projects
747
34%
Arbitration
49
53% / 39%
Overdue
14
2%
Working
3
Developer 3
Rating
(295)
Projects
367
30%
Arbitration
37
27% / 65%
Overdue
10
3%
Working
Published: 10 codes
4
Developer 4
Rating
(406)
Projects
524
24%
Arbitration
62
58% / 24%
Overdue
60
11%
Loaded
5
Developer 5
Rating
(111)
Projects
184
25%
Arbitration
25
16% / 76%
Overdue
16
9%
Free
6
Developer 6
Rating
(3)
Projects
4
75%
Arbitration
0
Overdue
0
Free
7
Developer 7
Rating
(2)
Projects
2
50%
Arbitration
0
Overdue
1
50%
Free
8
Developer 8
Rating
(4)
Projects
10
60%
Arbitration
0
Overdue
0
Working
9
Developer 9
Rating
(188)
Projects
202
47%
Arbitration
4
50% / 25%
Overdue
1
0%
Working
10
Developer 10
Rating
(23)
Projects
33
39%
Arbitration
9
22% / 33%
Overdue
5
15%
Busy
Published: 8 articles, 35 codes
11
Developer 11
Rating
(2352)
Projects
2958
63%
Arbitration
125
44% / 26%
Overdue
429
15%
Free
12
Developer 12
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
13
Developer 13
Rating
(20)
Projects
26
38%
Arbitration
6
33% / 50%
Overdue
0
Free
14
Developer 14
Rating
(10)
Projects
12
33%
Arbitration
0
Overdue
2
17%
Working
Published: 1 code
15
Developer 15
Rating
(1306)
Projects
1736
49%
Arbitration
55
67% / 16%
Overdue
38
2%
Free
16
Developer 16
Rating
(1)
Projects
1
0%
Arbitration
1
0% / 100%
Overdue
0
Free
17
Developer 17
Rating
(8)
Projects
8
0%
Arbitration
2
50% / 0%
Overdue
1
13%
Working
18
Developer 18
Rating
(45)
Projects
53
57%
Arbitration
2
100% / 0%
Overdue
1
2%
Free
Published: 5 codes
19
Developer 19
Rating
(1)
Projects
1
0%
Arbitration
0
Overdue
0
Free
20
Developer 20
Rating
(16)
Projects
30
40%
Arbitration
3
33% / 67%
Overdue
7
23%
Working
21
Developer 21
Rating
(25)
Projects
33
18%
Arbitration
6
50% / 33%
Overdue
4
12%
Free
22
Developer 22
Rating
(14)
Projects
21
24%
Arbitration
0
Overdue
2
10%
Free
Published: 3 codes
23
Developer 23
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
24
Developer 24
Rating
(1)
Projects
1
0%
Arbitration
0
Overdue
1
100%
Free
25
Developer 25
Rating
(438)
Projects
649
53%
Arbitration
35
63% / 20%
Overdue
7
1%
Working
26
Developer 26
Rating
(55)
Projects
68
43%
Arbitration
15
27% / 60%
Overdue
1
1%
Working
27
Developer 27
Rating
(1)
Projects
1
0%
Arbitration
0
Overdue
0
Free
28
Developer 28
Rating
(853)
Projects
1471
72%
Arbitration
122
29% / 48%
Overdue
361
25%
Free
Published: 3 articles
29
Developer 29
Rating
(60)
Projects
95
42%
Arbitration
4
0% / 100%
Overdue
4
4%
Working
30
Developer 30
Rating
(6)
Projects
7
14%
Arbitration
1
0% / 100%
Overdue
1
14%
Free
31
Developer 31
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
32
Developer 32
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
33
Developer 33
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
34
Developer 34
Rating
(7)
Projects
9
67%
Arbitration
0
Overdue
0
Working
Published: 1 article, 2 codes
35
Developer 35
Rating
(2678)
Projects
3428
68%
Arbitration
78
49% / 14%
Overdue
343
10%
Free
Published: 1 code
36
Developer 36
Rating
(216)
Projects
283
20%
Arbitration
28
57% / 14%
Overdue
0
Working
37
Developer 37
Rating
(6)
Projects
8
38%
Arbitration
2
50% / 50%
Overdue
2
25%
Free
38
Developer 38
Rating
(83)
Projects
99
33%
Arbitration
9
22% / 56%
Overdue
5
5%
Working
39
Developer 39
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
40
Developer 40
Rating
(81)
Projects
110
55%
Arbitration
5
80% / 20%
Overdue
5
5%
Working
41
Developer 41
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
42
Developer 42
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Published: 1 code
43
Developer 43
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
44
Developer 44
Rating
(7)
Projects
6
0%
Arbitration
4
25% / 75%
Overdue
2
33%
Free
45
Developer 45
Rating
(2)
Projects
4
25%
Arbitration
1
100% / 0%
Overdue
1
25%
Free
Published: 3 codes
46
Developer 46
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
47
Developer 47
Rating
(42)
Projects
112
56%
Arbitration
2
50% / 0%
Overdue
3
3%
Free
Published: 1 code
48
Developer 48
Rating
(12)
Projects
25
24%
Arbitration
2
50% / 50%
Overdue
2
8%
Free
49
Developer 49
Rating
(370)
Projects
460
55%
Arbitration
24
58% / 17%
Overdue
31
7%
Working
50
Developer 50
Rating
(4)
Projects
7
57%
Arbitration
1
100% / 0%
Overdue
0
Free
51
Developer 51
Rating
(1)
Projects
1
0%
Arbitration
0
Overdue
0
Free
Published: 4 codes
52
Developer 52
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
53
Developer 53
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Published: 5 codes
54
Developer 54
Rating
(21)
Projects
25
36%
Arbitration
1
0% / 0%
Overdue
1
4%
Free
55
Developer 55
Rating
(25)
Projects
31
13%
Arbitration
14
0% / 79%
Overdue
9
29%
Free
56
Developer 56
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
57
Developer 57
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
58
Developer 58
Rating
(2)
Projects
3
33%
Arbitration
0
Overdue
2
67%
Working
59
Developer 59
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
60
Developer 60
Rating
(10)
Projects
17
18%
Arbitration
3
0% / 33%
Overdue
3
18%
Loaded
61
Developer 61
Rating
(78)
Projects
248
74%
Arbitration
7
100% / 0%
Overdue
1
0%
Free
Published: 2 articles, 1 code
62
Developer 62
Rating
(1)
Projects
1
0%
Arbitration
0
Overdue
0
Free
63
Developer 63
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
64
Developer 64
Rating
(31)
Projects
38
53%
Arbitration
2
50% / 50%
Overdue
3
8%
Free
65
Developer 65
Rating
(64)
Projects
145
46%
Arbitration
21
38% / 24%
Overdue
32
22%
Free
66
Developer 66
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Similar orders
EA the profit 30+ USD
I need a robot that trade on command and stop-loss and take profit when need to , able to trade on all plate form follow profitable strategies or signal , want a winning streak with fast profits making
Hi I'm looking for this EA or Similar EA with optimizated set file. This bot is an automated trading robot, operating 24/7, and capable of trading all currency pairs. Compatible with all brokers. Features: Analysis of price action charts, trends, and support and resistance levels on any timeframe. The bot integrates stop-loss (SL), stop-loss (TP), and trailing stop-loss (SL) orders. Works on MT5 getshared . c o m
I wish to create 2 different Tradingview strategies to MT5 ea-s! Anyone? One is based on Heiken Ashi...the other based on different combination of my strategy. It is for 1 minute charts
نازدك 30+ USD
Specify your Requirements Specification here point by point. Try to describe your requirements briefly and clearly, so that your potential developer is able to correctly assess its complexity and cost, as well as the required execution time. A bad or too generic description will result in your order being ignored, or you will spend a lot of time negotiating the details with each applicant. Remember: It is better to
**IMPORTANT: PLEASE DISREGARD THE PREVIOUS SPECIFICATION TITLED "FULL TRADING PLATFORM – APPLICATION FLOW REQUIREMENTS."** I no longer need the complete trading platform outlined in my previous **"FULL TRADING PLATFORM – APPLICATION FLOW REQUIREMENTS"** specification. Originally, I considered building a complete trading platform with educational materials, training systems, user accounts, subscription features
I have indicators on my Trading view which will create zones automatically on H4 Candle confirmation. I am getting an alert also that specific zone is created. I want them to shift in automated trading like once zone is created, limits should be place automatically on basis of that zone with given lot size, number of layers and with TP and SL. I have checked on AI to convert this in auto but they need zone in numbers
I am looking for an experienced MQL5 developer to recreate my existing MT5 Expert Advisor (DSTR Novaa). I have the original compiled EX5 file, Vantage MT5 live trading history and original Strategy Tester report. Required Trading Logic: EMA Period: 3. BUY when price crosses below EMA 3. SELL when price crosses above EMA 3. Starting Lot: 0.01 (configurable). Martingale Multiplier: 2.0. Maximum Martingale Cycle: 9
I need an ready-made MT5 profitable EA for Gold. 5/7% daily I need. Before applying please make sure you have one with proven ROI, Drawdown and Live performace result. I will Pay $500 for it but I need as I want. Must needs to supply Source code if I like it. Before I purchase I will test 7 days on my live account. If It's okay then apply othersie please pass this project. Hope you will respect the time for both of
I need a EA to test many EAS all in one to see the results For back testing I've got the EA I want to see the combined EAS what is the results
Hello, I need a high-quality, reliable, and well-coded Expert Advisor (EA) for MetaTrader 5. The code must be clean, without errors, and optimized for safe trading. The robot needs to trade based on basic technical indicators. Every trade must have a strict Stop Loss and Take Profit for risk management. Please apply only if you are an experienced MT5 developer with a high rating and clean coding history. Best

Project information

Budget
150+ USD
Deadline
from 1 to 3 day(s)