5 ema for crossovers

MQL5 Experts

Tâche terminée

Temps d'exécution 5 minutes
Commentaires du client
great as always...and post handover of the project also he is always available to help
Commentaires de l'employé
Nice client. Fast communication. Good description of specifications. I look forward to working with you again.

Spécifications

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.





Répondu

1
Développeur 1
Évaluation
(637)
Projets
1009
47%
Arbitrage
33
36% / 36%
En retard
99
10%
Gratuit
Publié : 6 codes
2
Développeur 2
Évaluation
(639)
Projets
747
34%
Arbitrage
49
53% / 39%
En retard
14
2%
Travail
3
Développeur 3
Évaluation
(295)
Projets
367
30%
Arbitrage
37
27% / 65%
En retard
10
3%
Travail
Publié : 10 codes
4
Développeur 4
Évaluation
(406)
Projets
524
24%
Arbitrage
62
58% / 24%
En retard
60
11%
Chargé
5
Développeur 5
Évaluation
(111)
Projets
184
25%
Arbitrage
25
16% / 76%
En retard
16
9%
Gratuit
6
Développeur 6
Évaluation
(3)
Projets
4
75%
Arbitrage
0
En retard
0
Gratuit
7
Développeur 7
Évaluation
(2)
Projets
2
50%
Arbitrage
0
En retard
1
50%
Gratuit
8
Développeur 8
Évaluation
(4)
Projets
10
60%
Arbitrage
0
En retard
0
Travail
9
Développeur 9
Évaluation
(188)
Projets
202
47%
Arbitrage
4
50% / 25%
En retard
1
0%
Travail
10
Développeur 10
Évaluation
(23)
Projets
33
39%
Arbitrage
9
22% / 33%
En retard
5
15%
Occupé
Publié : 8 articles, 35 codes
11
Développeur 11
Évaluation
(2352)
Projets
2958
63%
Arbitrage
125
44% / 26%
En retard
429
15%
Gratuit
12
Développeur 12
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
13
Développeur 13
Évaluation
(20)
Projets
26
38%
Arbitrage
6
33% / 50%
En retard
0
Gratuit
14
Développeur 14
Évaluation
(10)
Projets
12
33%
Arbitrage
0
En retard
2
17%
Travail
Publié : 1 code
15
Développeur 15
Évaluation
(1306)
Projets
1736
49%
Arbitrage
55
67% / 16%
En retard
38
2%
Gratuit
16
Développeur 16
Évaluation
(1)
Projets
1
0%
Arbitrage
1
0% / 100%
En retard
0
Gratuit
17
Développeur 17
Évaluation
(8)
Projets
8
0%
Arbitrage
2
50% / 0%
En retard
1
13%
Travail
18
Développeur 18
Évaluation
(45)
Projets
53
57%
Arbitrage
2
100% / 0%
En retard
1
2%
Gratuit
Publié : 5 codes
19
Développeur 19
Évaluation
(1)
Projets
1
0%
Arbitrage
0
En retard
0
Gratuit
20
Développeur 20
Évaluation
(16)
Projets
30
40%
Arbitrage
3
33% / 67%
En retard
7
23%
Travail
21
Développeur 21
Évaluation
(25)
Projets
33
18%
Arbitrage
6
50% / 33%
En retard
4
12%
Gratuit
22
Développeur 22
Évaluation
(14)
Projets
21
24%
Arbitrage
0
En retard
2
10%
Gratuit
Publié : 3 codes
23
Développeur 23
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
24
Développeur 24
Évaluation
(1)
Projets
1
0%
Arbitrage
0
En retard
1
100%
Gratuit
25
Développeur 25
Évaluation
(438)
Projets
649
53%
Arbitrage
35
63% / 20%
En retard
7
1%
Travail
26
Développeur 26
Évaluation
(55)
Projets
68
43%
Arbitrage
15
27% / 60%
En retard
1
1%
Travail
27
Développeur 27
Évaluation
(1)
Projets
1
0%
Arbitrage
0
En retard
0
Gratuit
28
Développeur 28
Évaluation
(853)
Projets
1471
72%
Arbitrage
122
29% / 48%
En retard
361
25%
Gratuit
Publié : 3 articles
29
Développeur 29
Évaluation
(60)
Projets
95
42%
Arbitrage
4
0% / 100%
En retard
4
4%
Travail
30
Développeur 30
Évaluation
(6)
Projets
7
14%
Arbitrage
1
0% / 100%
En retard
1
14%
Gratuit
31
Développeur 31
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
32
Développeur 32
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
33
Développeur 33
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
34
Développeur 34
Évaluation
(7)
Projets
9
67%
Arbitrage
0
En retard
0
Travail
Publié : 1 article, 2 codes
35
Développeur 35
Évaluation
(2678)
Projets
3428
68%
Arbitrage
78
49% / 14%
En retard
343
10%
Gratuit
Publié : 1 code
36
Développeur 36
Évaluation
(216)
Projets
283
20%
Arbitrage
28
57% / 14%
En retard
0
Travail
37
Développeur 37
Évaluation
(6)
Projets
8
38%
Arbitrage
2
50% / 50%
En retard
2
25%
Gratuit
38
Développeur 38
Évaluation
(83)
Projets
99
33%
Arbitrage
9
22% / 56%
En retard
5
5%
Travail
39
Développeur 39
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
40
Développeur 40
Évaluation
(81)
Projets
110
55%
Arbitrage
5
80% / 20%
En retard
5
5%
Travail
41
Développeur 41
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
42
Développeur 42
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
Publié : 1 code
43
Développeur 43
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
44
Développeur 44
Évaluation
(7)
Projets
6
0%
Arbitrage
4
25% / 75%
En retard
2
33%
Gratuit
45
Développeur 45
Évaluation
(2)
Projets
4
25%
Arbitrage
1
100% / 0%
En retard
1
25%
Gratuit
Publié : 3 codes
46
Développeur 46
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
47
Développeur 47
Évaluation
(42)
Projets
112
56%
Arbitrage
2
50% / 0%
En retard
3
3%
Gratuit
Publié : 1 code
48
Développeur 48
Évaluation
(12)
Projets
25
24%
Arbitrage
2
50% / 50%
En retard
2
8%
Gratuit
49
Développeur 49
Évaluation
(370)
Projets
460
55%
Arbitrage
24
58% / 17%
En retard
31
7%
Travail
50
Développeur 50
Évaluation
(4)
Projets
7
57%
Arbitrage
1
100% / 0%
En retard
0
Gratuit
51
Développeur 51
Évaluation
(1)
Projets
1
0%
Arbitrage
0
En retard
0
Gratuit
Publié : 4 codes
52
Développeur 52
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
53
Développeur 53
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
Publié : 5 codes
54
Développeur 54
Évaluation
(21)
Projets
25
36%
Arbitrage
1
0% / 0%
En retard
1
4%
Gratuit
55
Développeur 55
Évaluation
(25)
Projets
31
13%
Arbitrage
14
0% / 79%
En retard
9
29%
Gratuit
56
Développeur 56
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
57
Développeur 57
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
58
Développeur 58
Évaluation
(2)
Projets
3
33%
Arbitrage
0
En retard
2
67%
Travail
59
Développeur 59
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
60
Développeur 60
Évaluation
(10)
Projets
17
18%
Arbitrage
3
0% / 33%
En retard
3
18%
Chargé
61
Développeur 61
Évaluation
(78)
Projets
248
74%
Arbitrage
7
100% / 0%
En retard
1
0%
Gratuit
Publié : 2 articles, 1 code
62
Développeur 62
Évaluation
(1)
Projets
1
0%
Arbitrage
0
En retard
0
Gratuit
63
Développeur 63
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
64
Développeur 64
Évaluation
(31)
Projets
38
53%
Arbitrage
2
50% / 50%
En retard
3
8%
Gratuit
65
Développeur 65
Évaluation
(64)
Projets
145
46%
Arbitrage
21
38% / 24%
En retard
32
22%
Gratuit
66
Développeur 66
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
Commandes similaires
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

Informations sur le projet

Budget
150+ USD
Délais
de 1 à 3 jour(s)