MT5 Expert Advisor: MACD histogram rule with trading-hours filter

MQL5 Asesores Expertos Fórex

Tarea técnica

I need an MT5 Expert Advisor (MQL5, full source code) that trades one simple rule based on the MACD histogram. All settings must be inputs.


Signal

- Timeframe input (default H1). Use closed bars only and act on the first tick of the new bar.

- MACD inputs: fast EMA, slow EMA, signal period (defaults 12, 26, 9).

- Signal line type input: SMA (like the built-in MT5 MACD) or EMA.

- Histogram = MACD line minus signal line.

- Histogram above 0: hold one long position. Below 0: hold one short position. Exactly 0: keep the current state.

- Allowed sides input: long and short / long only / short only. If a side is not allowed, stay flat instead.


Orders

- One position at a time per symbol and magic number. When the signal flips, close the current position and open the opposite one if that side is allowed.

- Fixed lot input. Optional stop loss and take profit in points (0 = off, default off).

- Must work on any symbol including metals, with broker symbol suffixes, on netting and hedging accounts, with the broker filling mode.


Trading hours

- Inputs: no-trade start hour and end hour in server time (same value for both = filter off).

- Inside the no-trade window the EA closes its position and does not open a new one. After the window it follows the signal again.


Restart safety

- After a restart, the EA finds its open position on the account by magic number and continues without opening a duplicate.


Delivery

- Commented .mq5 source that compiles with 0 errors and 0 warnings.

- No DLLs, no WebRequest, no license or account locks.

- A Strategy Tester report on XAUUSD H1, 2022-2025, 1 minute OHLC or better, showing trades.

- A short note listing the inputs.


Acceptance: I will run it in the Strategy Tester and check that entries and exits follow the histogram sign on closed bars, that no position is held inside the no-trade window, and that the allowed sides setting is respected.

Han respondido

1
Desarrollador 1
Evaluación
(637)
Proyectos
1009
47%
Arbitraje
33
36% / 36%
Caducado
99
10%
Libre
Ha publicado: 6 ejemplos
2
Desarrollador 2
Evaluación
(466)
Proyectos
817
49%
Arbitraje
75
21% / 51%
Caducado
143
18%
Trabaja
3
Desarrollador 3
Evaluación
(10)
Proyectos
17
18%
Arbitraje
3
0% / 33%
Caducado
3
18%
Trabajando
4
Desarrollador 4
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
5
Desarrollador 5
Evaluación
(7)
Proyectos
9
67%
Arbitraje
0
Caducado
0
Libre
Ha publicado: 1 artículo, 2 ejemplos
6
Desarrollador 6
Evaluación
(188)
Proyectos
202
47%
Arbitraje
4
50% / 25%
Caducado
1
0%
Trabaja
7
Desarrollador 7
Evaluación
(23)
Proyectos
33
39%
Arbitraje
9
22% / 33%
Caducado
5
15%
Ocupado
Ha publicado: 8 artículos, 35 ejemplos
8
Desarrollador 8
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
9
Desarrollador 9
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
10
Desarrollador 10
Evaluación
(406)
Proyectos
524
24%
Arbitraje
62
58% / 24%
Caducado
60
11%
Trabajando
11
Desarrollador 11
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
12
Desarrollador 12
Evaluación
(2)
Proyectos
2
50%
Arbitraje
0
Caducado
1
50%
Libre
13
Desarrollador 13
Evaluación
Proyectos
1
0%
Arbitraje
0
Caducado
0
Libre
Ha publicado: 4 ejemplos
14
Desarrollador 14
Evaluación
(564)
Proyectos
861
61%
Arbitraje
33
27% / 45%
Caducado
24
3%
Libre
Ha publicado: 1 ejemplo
15
Desarrollador 15
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
16
Desarrollador 16
Evaluación
(1)
Proyectos
1
0%
Arbitraje
0
Caducado
0
Libre
Ha publicado: 4 ejemplos
17
Desarrollador 17
Evaluación
(1)
Proyectos
1
100%
Arbitraje
0
Caducado
0
Libre
Ha publicado: 7 ejemplos
18
Desarrollador 18
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
19
Desarrollador 19
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
20
Desarrollador 20
Evaluación
(1)
Proyectos
1
0%
Arbitraje
1
0% / 100%
Caducado
0
Libre
21
Desarrollador 21
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
22
Desarrollador 22
Evaluación
(1)
Proyectos
1
0%
Arbitraje
0
Caducado
0
Libre
Ha publicado: 6 ejemplos
23
Desarrollador 23
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
Ha publicado: 5 ejemplos
24
Desarrollador 24
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
25
Desarrollador 25
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
26
Desarrollador 26
Evaluación
(54)
Proyectos
102
23%
Arbitraje
12
25% / 17%
Caducado
13
13%
Libre
27
Desarrollador 27
Evaluación
(119)
Proyectos
169
38%
Arbitraje
9
78% / 22%
Caducado
15
9%
Libre
28
Desarrollador 28
Evaluación
(2352)
Proyectos
2958
63%
Arbitraje
125
44% / 26%
Caducado
429
15%
Libre
29
Desarrollador 29
Evaluación
(101)
Proyectos
141
52%
Arbitraje
5
40% / 60%
Caducado
0
Trabaja
30
Desarrollador 30
Evaluación
(265)
Proyectos
315
74%
Arbitraje
16
75% / 0%
Caducado
6
2%
Trabajando
31
Desarrollador 31
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
32
Desarrollador 32
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
Solicitudes similares
Custom MT5 Expert Advisor – Developer Specification 1. Project Objective Develop a fully autonomous, custom MetaTrader 5 Expert Advisor (EA) using native MQL5. The EA must independently analyze financial markets, generate its own trading signals, evaluate opportunities, execute trades, and manage open positions without requiring an external signal provider, another trading bot, or manual intervention. The EA must
نازدك 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
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
CyberShadow AI 30 - 300 USD
I want a bot that’s trades using smc strategy having stop loss and take profit.I want it to be able to trade with small account I want a disciplined robot but a strong one to I also what it to trade using trend line and locate point of interest
I need an EA for MetaTrader 5 called AI Forex Robot V100. It must trade automatically on EURUSD and GBPUSD, M15 timeframe. Strategy: - Buy when fast EMA crosses above slow EMA and RSI is above 50 - Sell when fast EMA crosses below slow EMA and RSI is below 50 - Only 1 trade at a time - Stop Loss: 50 pips, Take Profit: 100 pips - Lot size: 0.01, with option to change in settings - Must have trailing stop and news
PROJECT: EXISTING MT5 EA MODIFICATION – XAUUSD SLIPPAGE REDUCTION 1. Project Objective I already have a fully developed MT5 Expert Advisor (.mq5 source code). I am looking for an experienced MQL5 developer who can optimize my existing EA to achieve the lowest possible execution slippage on a REAL LIVE trading account. My primary and only objective is to zero slippage. I am not looking for a new trading strategy or
Elektra Trading Robot 100 - 200 USD
Elektra Trading Robot is an automated Forex trading system designed to analyze market conditions execute trades according to predefined trading strategies. It aims to identify potential trading opportunities, manage trading positions, and apply risk management rules to help protect trading capital. The robot is designed for real-account trading and focuses on consistency, disciplined execution, and efficient trade
I need an already developed EA with proven ability to grow small accounts for day trading. It can trade any specific instrument like gold, EURUSD or more than one instrument. Any strategy is welcomed, including scalping in lower timeframes A test version is required before concluding the deal or being selected. Only those with ready products apply No fake EAs needed
Forex Hunter MT5 30 - 250 USD
ثبت طلبك في مواصفات البوت الثاني كذا: الجودة والأمان أهم من السعر، وما يدخل إلا إذا الفرصة قوية، مع حماية عند الخسائر وانقطاع الاتصال وارتفاع السبريد، وتشغيل مستمر على سيرفر، مع اختبارات إلزامية قبل أي تشغيل حقيقي. بهذه الصيغة يصير يشتغل وأنت مرتاح بالِك، لكنه يوقف تلقائيًا وقت عطلة السوق أو أي خلل. بس أكون واضح معك: ما في بوت يضمن عدم الخسارة، خصوصًا بالمضاربات السريعة، هدفنا نقلل المخاطر ونمنع الخسائر غير المنضبطة
I'm looking for an experienced MQL5 developer to create a Opening Range Breakout EA. The EA should identify the high and low of a configurable trading session and open trades when price breaks out of this range. It should include configurable Stop Loss, Take Profit, fixed lot size, break-even option and trading hours. Full mq5 required

Información sobre el proyecto

Presupuesto
40 - 60 USD
Plazo límite de ejecución
de 1 a 3 día(s)

Cliente

Encargos realizados1
Número de arbitrajes0