5 ema for crossovers

MQL5 Experts

Trabalho concluído

Tempo de execução 5 minutos
Comentário do cliente
great as always...and post handover of the project also he is always available to help
Comentário do desenvolvedor
Nice client. Fast communication. Good description of specifications. I look forward to working with you again.

Termos de Referência

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.





Respondido

1
Desenvolvedor 1
Classificação
(637)
Projetos
1009
47%
Arbitragem
33
36% / 36%
Expirado
99
10%
Livre
Publicou: 6 códigos
2
Desenvolvedor 2
Classificação
(639)
Projetos
747
34%
Arbitragem
49
53% / 39%
Expirado
14
2%
Trabalhando
3
Desenvolvedor 3
Classificação
(295)
Projetos
367
30%
Arbitragem
37
27% / 65%
Expirado
10
3%
Trabalhando
Publicou: 10 códigos
4
Desenvolvedor 4
Classificação
(406)
Projetos
524
24%
Arbitragem
62
58% / 24%
Expirado
60
11%
Carregado
5
Desenvolvedor 5
Classificação
(111)
Projetos
184
25%
Arbitragem
25
16% / 76%
Expirado
16
9%
Livre
6
Desenvolvedor 6
Classificação
(3)
Projetos
4
75%
Arbitragem
0
Expirado
0
Livre
7
Desenvolvedor 7
Classificação
(2)
Projetos
2
50%
Arbitragem
0
Expirado
1
50%
Livre
8
Desenvolvedor 8
Classificação
(4)
Projetos
10
60%
Arbitragem
0
Expirado
0
Trabalhando
9
Desenvolvedor 9
Classificação
(188)
Projetos
202
47%
Arbitragem
4
50% / 25%
Expirado
1
0%
Trabalhando
10
Desenvolvedor 10
Classificação
(23)
Projetos
33
39%
Arbitragem
9
22% / 33%
Expirado
5
15%
Ocupado
Publicou: 8 artigos, 35 códigos
11
Desenvolvedor 11
Classificação
(2352)
Projetos
2958
63%
Arbitragem
125
44% / 26%
Expirado
429
15%
Livre
12
Desenvolvedor 12
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
13
Desenvolvedor 13
Classificação
(20)
Projetos
26
38%
Arbitragem
6
33% / 50%
Expirado
0
Livre
14
Desenvolvedor 14
Classificação
(10)
Projetos
12
33%
Arbitragem
0
Expirado
2
17%
Trabalhando
Publicou: 1 código
15
Desenvolvedor 15
Classificação
(1306)
Projetos
1736
49%
Arbitragem
55
67% / 16%
Expirado
38
2%
Livre
16
Desenvolvedor 16
Classificação
(1)
Projetos
1
0%
Arbitragem
1
0% / 100%
Expirado
0
Livre
17
Desenvolvedor 17
Classificação
(8)
Projetos
8
0%
Arbitragem
2
50% / 0%
Expirado
1
13%
Trabalhando
18
Desenvolvedor 18
Classificação
(45)
Projetos
53
57%
Arbitragem
2
100% / 0%
Expirado
1
2%
Livre
Publicou: 5 códigos
19
Desenvolvedor 19
Classificação
(1)
Projetos
1
0%
Arbitragem
0
Expirado
0
Livre
20
Desenvolvedor 20
Classificação
(16)
Projetos
30
40%
Arbitragem
3
33% / 67%
Expirado
7
23%
Trabalhando
21
Desenvolvedor 21
Classificação
(25)
Projetos
33
18%
Arbitragem
6
50% / 33%
Expirado
4
12%
Livre
22
Desenvolvedor 22
Classificação
(14)
Projetos
21
24%
Arbitragem
0
Expirado
2
10%
Livre
Publicou: 3 códigos
23
Desenvolvedor 23
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
24
Desenvolvedor 24
Classificação
(1)
Projetos
1
0%
Arbitragem
0
Expirado
1
100%
Livre
25
Desenvolvedor 25
Classificação
(438)
Projetos
649
53%
Arbitragem
35
63% / 20%
Expirado
7
1%
Trabalhando
26
Desenvolvedor 26
Classificação
(55)
Projetos
68
43%
Arbitragem
15
27% / 60%
Expirado
1
1%
Trabalhando
27
Desenvolvedor 27
Classificação
(1)
Projetos
1
0%
Arbitragem
0
Expirado
0
Livre
28
Desenvolvedor 28
Classificação
(853)
Projetos
1471
72%
Arbitragem
122
29% / 48%
Expirado
361
25%
Livre
Publicou: 3 artigos
29
Desenvolvedor 29
Classificação
(60)
Projetos
95
42%
Arbitragem
4
0% / 100%
Expirado
4
4%
Trabalhando
30
Desenvolvedor 30
Classificação
(6)
Projetos
7
14%
Arbitragem
1
0% / 100%
Expirado
1
14%
Livre
31
Desenvolvedor 31
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
32
Desenvolvedor 32
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
33
Desenvolvedor 33
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
34
Desenvolvedor 34
Classificação
(7)
Projetos
9
67%
Arbitragem
0
Expirado
0
Trabalhando
Publicou: 1 artigo, 2 códigos
35
Desenvolvedor 35
Classificação
(2678)
Projetos
3428
68%
Arbitragem
78
49% / 14%
Expirado
343
10%
Livre
Publicou: 1 código
36
Desenvolvedor 36
Classificação
(216)
Projetos
283
20%
Arbitragem
28
57% / 14%
Expirado
0
Trabalhando
37
Desenvolvedor 37
Classificação
(6)
Projetos
8
38%
Arbitragem
2
50% / 50%
Expirado
2
25%
Livre
38
Desenvolvedor 38
Classificação
(83)
Projetos
99
33%
Arbitragem
9
22% / 56%
Expirado
5
5%
Trabalhando
39
Desenvolvedor 39
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
40
Desenvolvedor 40
Classificação
(81)
Projetos
110
55%
Arbitragem
5
80% / 20%
Expirado
5
5%
Trabalhando
41
Desenvolvedor 41
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
42
Desenvolvedor 42
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
Publicou: 1 código
43
Desenvolvedor 43
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
44
Desenvolvedor 44
Classificação
(7)
Projetos
6
0%
Arbitragem
4
25% / 75%
Expirado
2
33%
Livre
45
Desenvolvedor 45
Classificação
(2)
Projetos
4
25%
Arbitragem
1
100% / 0%
Expirado
1
25%
Livre
Publicou: 3 códigos
46
Desenvolvedor 46
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
47
Desenvolvedor 47
Classificação
(42)
Projetos
112
56%
Arbitragem
2
50% / 0%
Expirado
3
3%
Livre
Publicou: 1 código
48
Desenvolvedor 48
Classificação
(12)
Projetos
25
24%
Arbitragem
2
50% / 50%
Expirado
2
8%
Livre
49
Desenvolvedor 49
Classificação
(370)
Projetos
460
55%
Arbitragem
24
58% / 17%
Expirado
31
7%
Trabalhando
50
Desenvolvedor 50
Classificação
(4)
Projetos
7
57%
Arbitragem
1
100% / 0%
Expirado
0
Livre
51
Desenvolvedor 51
Classificação
(1)
Projetos
1
0%
Arbitragem
0
Expirado
0
Livre
Publicou: 4 códigos
52
Desenvolvedor 52
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
53
Desenvolvedor 53
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
Publicou: 5 códigos
54
Desenvolvedor 54
Classificação
(21)
Projetos
25
36%
Arbitragem
1
0% / 0%
Expirado
1
4%
Livre
55
Desenvolvedor 55
Classificação
(25)
Projetos
31
13%
Arbitragem
14
0% / 79%
Expirado
9
29%
Livre
56
Desenvolvedor 56
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
57
Desenvolvedor 57
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
58
Desenvolvedor 58
Classificação
(2)
Projetos
3
33%
Arbitragem
0
Expirado
2
67%
Trabalhando
59
Desenvolvedor 59
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
60
Desenvolvedor 60
Classificação
(10)
Projetos
17
18%
Arbitragem
3
0% / 33%
Expirado
3
18%
Carregado
61
Desenvolvedor 61
Classificação
(78)
Projetos
248
74%
Arbitragem
7
100% / 0%
Expirado
1
0%
Livre
Publicou: 2 artigos, 1 código
62
Desenvolvedor 62
Classificação
(1)
Projetos
1
0%
Arbitragem
0
Expirado
0
Livre
63
Desenvolvedor 63
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
64
Desenvolvedor 64
Classificação
(31)
Projetos
38
53%
Arbitragem
2
50% / 50%
Expirado
3
8%
Livre
65
Desenvolvedor 65
Classificação
(64)
Projetos
145
46%
Arbitragem
21
38% / 24%
Expirado
32
22%
Livre
66
Desenvolvedor 66
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
Pedidos semelhantes
Description: Hello, I need a professional, high-quality optimization of the"Ultimate SMC" Expert Advisor for MetaTrader 5. The primary objective is to create robust and safe configuration files(.set files) tailored specifically to pass the Funding Pips prop firm challenge using a cosnservative risk model. Assets and Timeframes:1.Currency Pairs: EURUSD and GBPUSD (Upon completion, I require 2 separate,independent .set
​​ Title: ​Create a Combined Indicator from 3 EX4 Indicators + Fully Automatic Trading EA (MT4) ​ Description: ​Hello, ​I need an experienced MQL4 developer to build a custom trading system based on 3 existing .ex4 indicators. ​ Project Requirements: ​ Combined Custom Indicator: ​Read and merge signals from 3 specified .ex4 indicators via buffer reading (iCustom). ​Generate a consolidated BUY or SELL arrow/signal
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

Informações sobre o projeto

Orçamento
150+ USD
Prazo
de 1 para 3 dias