5 ema for crossovers

MQL5 EA

명시

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.





응답함

1
개발자 1
등급
(636)
프로젝트
1008
47%
중재
33
36% / 36%
기한 초과
99
10%
작업중
게재됨: 6 코드
2
개발자 2
등급
(623)
프로젝트
727
34%
중재
47
49% / 40%
기한 초과
14
2%
작업중
3
개발자 3
등급
(285)
프로젝트
357
29%
중재
37
27% / 65%
기한 초과
10
3%
작업중
4
개발자 4
등급
(399)
프로젝트
517
24%
중재
61
57% / 25%
기한 초과
60
12%
작업중
5
개발자 5
등급
(111)
프로젝트
183
25%
중재
25
16% / 76%
기한 초과
16
9%
무료
6
개발자 6
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
7
개발자 7
등급
(1)
프로젝트
1
0%
중재
0
기한 초과
0
무료
8
개발자 8
등급
(3)
프로젝트
9
67%
중재
0
기한 초과
0
작업중
9
개발자 9
등급
(182)
프로젝트
196
46%
중재
4
50% / 25%
기한 초과
1
1%
로드됨
10
개발자 10
등급
(20)
프로젝트
28
39%
중재
8
25% / 38%
기한 초과
2
7%
로드됨
게재됨: 8 기고글, 35 코드
11
개발자 11
등급
(2348)
프로젝트
2954
63%
중재
125
44% / 26%
기한 초과
429
15%
무료
12
개발자 12
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
13
개발자 13
등급
(20)
프로젝트
26
38%
중재
6
33% / 50%
기한 초과
0
무료
14
개발자 14
등급
(9)
프로젝트
11
27%
중재
0
기한 초과
2
18%
작업중
게재됨: 1 코드
15
개발자 15
등급
(1305)
프로젝트
1735
49%
중재
55
67% / 16%
기한 초과
38
2%
무료
16
개발자 16
등급
프로젝트
0
0%
중재
0
기한 초과
0
작업중
17
개발자 17
등급
(8)
프로젝트
8
0%
중재
2
50% / 0%
기한 초과
1
13%
작업중
18
개발자 18
등급
(45)
프로젝트
53
57%
중재
2
100% / 0%
기한 초과
1
2%
무료
게재됨: 5 코드
19
개발자 19
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
20
개발자 20
등급
(16)
프로젝트
30
40%
중재
3
33% / 67%
기한 초과
7
23%
작업중
21
개발자 21
등급
(25)
프로젝트
33
18%
중재
6
50% / 33%
기한 초과
4
12%
무료
22
개발자 22
등급
(14)
프로젝트
21
24%
중재
0
기한 초과
2
10%
무료
게재됨: 3 코드
23
개발자 23
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
24
개발자 24
등급
(1)
프로젝트
1
0%
중재
0
기한 초과
1
100%
무료
25
개발자 25
등급
(436)
프로젝트
645
53%
중재
35
63% / 20%
기한 초과
6
1%
로드됨
26
개발자 26
등급
(54)
프로젝트
67
42%
중재
15
27% / 60%
기한 초과
1
1%
작업중
27
개발자 27
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
28
개발자 28
등급
(851)
프로젝트
1464
72%
중재
122
29% / 48%
기한 초과
358
24%
로드됨
게재됨: 3 기고글
29
개발자 29
등급
(59)
프로젝트
93
43%
중재
4
0% / 100%
기한 초과
4
4%
작업중
30
개발자 30
등급
(6)
프로젝트
7
14%
중재
1
0% / 100%
기한 초과
1
14%
무료
31
개발자 31
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
비슷한 주문
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

프로젝트 정보

예산
150+ USD
기한
에서 1  3 일

고객

(1)
넣은 주문2
중재 수0