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

MQL5 Experts Forex

Spécifications

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.

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
(466)
Projets
817
49%
Arbitrage
75
21% / 51%
En retard
143
18%
Travail
3
Développeur 3
Évaluation
(10)
Projets
17
18%
Arbitrage
3
0% / 33%
En retard
3
18%
Chargé
4
Développeur 4
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
5
Développeur 5
Évaluation
(7)
Projets
9
67%
Arbitrage
0
En retard
0
Gratuit
Publié : 1 article, 2 codes
6
Développeur 6
Évaluation
(188)
Projets
202
47%
Arbitrage
4
50% / 25%
En retard
1
0%
Travail
7
Développeur 7
Évaluation
(23)
Projets
33
39%
Arbitrage
9
22% / 33%
En retard
5
15%
Occupé
Publié : 8 articles, 35 codes
8
Développeur 8
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
9
Développeur 9
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
10
Développeur 10
Évaluation
(406)
Projets
524
24%
Arbitrage
62
58% / 24%
En retard
60
11%
Chargé
11
Développeur 11
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
12
Développeur 12
Évaluation
(2)
Projets
2
50%
Arbitrage
0
En retard
1
50%
Gratuit
13
Développeur 13
Évaluation
Projets
1
0%
Arbitrage
0
En retard
0
Gratuit
Publié : 4 codes
14
Développeur 14
Évaluation
(564)
Projets
861
61%
Arbitrage
33
27% / 45%
En retard
24
3%
Gratuit
Publié : 1 code
15
Développeur 15
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
16
Développeur 16
Évaluation
(1)
Projets
1
0%
Arbitrage
0
En retard
0
Gratuit
Publié : 4 codes
17
Développeur 17
Évaluation
(1)
Projets
1
100%
Arbitrage
0
En retard
0
Gratuit
Publié : 7 codes
18
Développeur 18
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
19
Développeur 19
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
20
Développeur 20
Évaluation
(1)
Projets
1
0%
Arbitrage
1
0% / 100%
En retard
0
Gratuit
21
Développeur 21
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
22
Développeur 22
Évaluation
(1)
Projets
1
0%
Arbitrage
0
En retard
0
Gratuit
Publié : 6 codes
23
Développeur 23
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
Publié : 5 codes
24
Développeur 24
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
25
Développeur 25
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
26
Développeur 26
Évaluation
(54)
Projets
102
23%
Arbitrage
12
25% / 17%
En retard
13
13%
Gratuit
27
Développeur 27
Évaluation
(119)
Projets
169
38%
Arbitrage
9
78% / 22%
En retard
15
9%
Gratuit
28
Développeur 28
Évaluation
(2352)
Projets
2958
63%
Arbitrage
125
44% / 26%
En retard
429
15%
Gratuit
29
Développeur 29
Évaluation
(101)
Projets
141
52%
Arbitrage
5
40% / 60%
En retard
0
Travail
30
Développeur 30
Évaluation
(265)
Projets
315
74%
Arbitrage
16
75% / 0%
En retard
6
2%
Chargé
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
Commandes similaires
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

Informations sur le projet

Budget
40 - 60 USD
Délais
de 1 à 3 jour(s)

Client

Commandes passées1
Nombre d'arbitrages0