5 ema for crossovers

MQL5 Esperti

Specifiche

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.





Con risposta

1
Sviluppatore 1
Valutazioni
(636)
Progetti
1008
47%
Arbitraggio
33
36% / 36%
In ritardo
99
10%
In elaborazione
Pubblicati: 6 codici
2
Sviluppatore 2
Valutazioni
(623)
Progetti
727
34%
Arbitraggio
47
49% / 40%
In ritardo
14
2%
In elaborazione
3
Sviluppatore 3
Valutazioni
(285)
Progetti
357
29%
Arbitraggio
37
27% / 65%
In ritardo
10
3%
In elaborazione
4
Sviluppatore 4
Valutazioni
(399)
Progetti
517
24%
Arbitraggio
61
57% / 25%
In ritardo
60
12%
In elaborazione
5
Sviluppatore 5
Valutazioni
(111)
Progetti
183
25%
Arbitraggio
25
16% / 76%
In ritardo
16
9%
Gratuito
6
Sviluppatore 6
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
7
Sviluppatore 7
Valutazioni
(1)
Progetti
1
0%
Arbitraggio
0
In ritardo
0
Gratuito
8
Sviluppatore 8
Valutazioni
(3)
Progetti
9
67%
Arbitraggio
0
In ritardo
0
In elaborazione
9
Sviluppatore 9
Valutazioni
(182)
Progetti
196
46%
Arbitraggio
4
50% / 25%
In ritardo
1
1%
Caricato
10
Sviluppatore 10
Valutazioni
(20)
Progetti
28
39%
Arbitraggio
8
25% / 38%
In ritardo
2
7%
Caricato
Pubblicati: 8 articoli, 35 codici
11
Sviluppatore 11
Valutazioni
(2348)
Progetti
2954
63%
Arbitraggio
125
44% / 26%
In ritardo
429
15%
Gratuito
12
Sviluppatore 12
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
13
Sviluppatore 13
Valutazioni
(20)
Progetti
26
38%
Arbitraggio
6
33% / 50%
In ritardo
0
Gratuito
14
Sviluppatore 14
Valutazioni
(9)
Progetti
11
27%
Arbitraggio
0
In ritardo
2
18%
In elaborazione
Pubblicati: 1 codice
15
Sviluppatore 15
Valutazioni
(1305)
Progetti
1735
49%
Arbitraggio
55
67% / 16%
In ritardo
38
2%
Gratuito
16
Sviluppatore 16
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
In elaborazione
17
Sviluppatore 17
Valutazioni
(8)
Progetti
8
0%
Arbitraggio
2
50% / 0%
In ritardo
1
13%
In elaborazione
18
Sviluppatore 18
Valutazioni
(45)
Progetti
53
57%
Arbitraggio
2
100% / 0%
In ritardo
1
2%
Gratuito
Pubblicati: 5 codici
19
Sviluppatore 19
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
20
Sviluppatore 20
Valutazioni
(16)
Progetti
30
40%
Arbitraggio
3
33% / 67%
In ritardo
7
23%
In elaborazione
21
Sviluppatore 21
Valutazioni
(25)
Progetti
33
18%
Arbitraggio
6
50% / 33%
In ritardo
4
12%
Gratuito
22
Sviluppatore 22
Valutazioni
(14)
Progetti
21
24%
Arbitraggio
0
In ritardo
2
10%
Gratuito
Pubblicati: 3 codici
23
Sviluppatore 23
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
24
Sviluppatore 24
Valutazioni
(1)
Progetti
1
0%
Arbitraggio
0
In ritardo
1
100%
Gratuito
25
Sviluppatore 25
Valutazioni
(436)
Progetti
645
53%
Arbitraggio
35
63% / 20%
In ritardo
6
1%
Caricato
26
Sviluppatore 26
Valutazioni
(54)
Progetti
67
42%
Arbitraggio
15
27% / 60%
In ritardo
1
1%
In elaborazione
27
Sviluppatore 27
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
28
Sviluppatore 28
Valutazioni
(851)
Progetti
1464
72%
Arbitraggio
122
29% / 48%
In ritardo
358
24%
Caricato
Pubblicati: 3 articoli
29
Sviluppatore 29
Valutazioni
(59)
Progetti
93
43%
Arbitraggio
4
0% / 100%
In ritardo
4
4%
In elaborazione
30
Sviluppatore 30
Valutazioni
(6)
Progetti
7
14%
Arbitraggio
1
0% / 100%
In ritardo
1
14%
Gratuito
31
Sviluppatore 31
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
Ordini simili
I need a developer who can write me a XML file for a dbot robot to trade any deriv option instruments and trading mode A market analyser is needed. Let it automatically scan the market and choose the instrument and with the best input parameters for a given trading mode and show the predicted win rate as shown in the videos below; https://vt.tiktok.com/ ZSb14aoAA/ https://vt.tiktok.com/ ZSb1bFBkA/
I need an experienced MQL5 developer for a two-step MT5 project. STEP 1 — Data Module Create a standalone .mqh data-acquisition module with a 10,000-tick buffer . Requirements: Use CopyTicks() . Do not assume OnTick() = one tick. Recover ticks between processing cycles. Do not use time_msc as a unique tick identifier. Process ticks sequentially. Use an efficient ring/circular buffer. Provide reliable access to the
Bobolink 1 30+ USD
I need a trading robot that can automatically analyse the market, identify trading opportunities, manage trades, and use clear risk controls. The robot should be reliable, easy to monitor, and suitable for testing before real trading
I am looking for an experienced MQL5 developer to research, develop, and integrate a Smart Early Exit system into my existing XAUUSD EA. The EA is already fully functional. The objective of this job is not to redesign the strategy or modify the entry logic , but to improve how losing trades are managed. The Early Exit system should identify trades that are showing signs of genuine deterioration and close them before
VEE STRATEGY ROBOT 30 - 200 USD
//+------------------------------------------------------------------+ //| M5 Trend Pullback EA | //| Exness / MT5 | //| Forex + XAUUSD | //| Risk: 0.5% per trade | //+------------------------------------------------------------------+ #property strict #property version "1.00" #property description "M5 EMA50/EMA200 + RSI + ATR Trend Pullback EA" #include <Trade/Trade.mqh> CTrade trade;
Purpose Develop a transparent and conservative Expert Advisor for MetaTrader 5. Profit is not guaranteed; acceptance is based on correct implementation, risk controls and reproducible testing. 1. Platform and instruments - Native MQL5 Expert Advisor for MetaTrader 5. - Symbols: EURUSD and USDJPY. - Working timeframe: H1. Higher-timeframe trend filter: H4. - Must support standard broker symbol suffixes/prefixes and
Please may someone assist me with the indicator attached, it has a SERIOUS BUG issue in the sense that when I load it, and activate the template (attached as well) MT4 ALWAYS freezes and then eventually disconnects automatically, ALL THE TIME. It even gets worse to an extent that after disconnecting a number of times mt4 ends up not loading anymore, UNTIL I remove the indicator. Please I WILL NEED A DEMO (FOR A DAY)
I’m looking for an experienced NinjaTrader 8 developer to build an automated strategy using the Imbalance Profile Lidar indicator by ninZa.co on MNQ DEC26 with a 3000-volume chart . Requirements: Enter Long when a blue absorption dot appears below price with an absorption value. Enter Short when a pink absorption dot appears above price with an absorption value. Stop loss: 15 ticks behind the signal dot price . Take
Ola, Tenho um Bot mas parou de funcionar, preciso de programador que desenvolva o mesmo configurações. Envio o antigo bot para pegar as configurações e realizar outro modelo. Hello, I have a bot that has stopped working, and I need a programmer to develop one with the same settings. I can send the old bot so you can extract the settings and build a new version
I have a simple EA that trades based on pending orders I need it to be converted to cTrader am looking for expert developer that have experience in ctrader that can convert metatrader 5 robot to ctrader

Informazioni sul progetto

Budget
150+ USD
Scadenze
da 1 a 3 giorno(i)

Cliente

(1)
Ordini effettuati2
Numero di arbitraggi0