Project Brief: Optimized & Modular RSI Divergence Detection Module (MQL5)

Tarea técnica


I am looking to develop a highly optimized and fully modular script in MQL5 specifically for detecting RSI Divergences. This script will serve as a foundational building block to be integrated into a larger, comprehensive Expert Advisor (EA) later. Therefore, execution speed, strict logic, and a clean codebase are my absolute top priorities.


Here are the core technical requirements for this project:

1. MQL5 Performance & Memory Management (Crucial):

Efficient Handle Creation: The RSI indicator handle must be strictly declared and initialized only once within the OnInit() function.

Optimized Data Retrieval: Use CopyBuffer() efficiently to fetch only the newly required data points per tick or per new bar.

Zero Memory Leaks: Under no circumstances should the indicator be re-called or recalculated from scratch on every OnTick(). The module must be extremely lightweight.

2. Customizable Divergence Selection (Important):

The algorithm must be capable of mathematically detecting BOTH Regular and Hidden divergences.

However, I require external input parameters (e.g., boolean variables like Enable_Regular_Div and Enable_Hidden_Div, or a dropdown Enum) that allow me to strictly control which signals are active and displayed. I must be able to select:

Only Regular Divergences

Only Hidden Divergences

Both simultaneously
This flexibility is critical for my backtesting and strategy optimization.

3. High-Efficiency Detection & Strict Confirmation:

Minimal Lag: The algorithm scanning for peaks and troughs must be mathematically optimized.

No Repainting: The divergence signals must be robust and definitively confirmed (e.g., strictly evaluated after the candle closes). Once a signal is printed or registered, it must not repaint or disappear.

4. Clean & Modular Architecture (Integration-Ready):

Encapsulation: The logic must be cleanly separated into modular functions or classes.

No Global Variable Conflicts: Avoid using loosely defined global variables that could clash when I include this .mqh file or logic into my master EA.

Clear Inputs: All customizable parameters (RSI Period, applied price, peak/trough lookback periods, and the divergence type toggles mentioned above) must be clearly defined as input variables.

5. Documentation:

Please include professional, brief comments explaining the core logic, especially around the loops used for identifying the historical pivots/fractals for the divergence.

Please review these requirements and let me know your approach to ensuring the code remains as fast and modular as requested.

Han respondido

1
Desarrollador 1
Evaluación
(19)
Proyectos
24
38%
Arbitraje
3
67% / 33%
Caducado
1
4%
Trabaja
2
Desarrollador 2
Evaluación
(2)
Proyectos
2
0%
Arbitraje
0
Caducado
1
50%
Libre
3
Desarrollador 3
Evaluación
(5)
Proyectos
7
14%
Arbitraje
3
33% / 0%
Caducado
0
Trabaja
Ha publicado: 3 artículos, 30 ejemplos
4
Desarrollador 4
Evaluación
(168)
Proyectos
201
48%
Arbitraje
5
20% / 60%
Caducado
2
1%
Trabaja
5
Desarrollador 5
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
6
Desarrollador 6
Evaluación
(574)
Proyectos
945
47%
Arbitraje
309
58% / 27%
Caducado
125
13%
Libre
7
Desarrollador 7
Evaluación
(40)
Proyectos
43
58%
Arbitraje
1
100% / 0%
Caducado
1
2%
Libre
Ha publicado: 5 ejemplos
8
Desarrollador 8
Evaluación
(74)
Proyectos
84
64%
Arbitraje
5
100% / 0%
Caducado
9
11%
Libre
9
Desarrollador 9
Evaluación
(6)
Proyectos
5
0%
Arbitraje
3
33% / 67%
Caducado
2
40%
Trabaja
10
Desarrollador 10
Evaluación
(1)
Proyectos
1
0%
Arbitraje
0
Caducado
0
Libre
11
Desarrollador 11
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
12
Desarrollador 12
Evaluación
(362)
Proyectos
435
54%
Arbitraje
21
52% / 14%
Caducado
30
7%
Trabajando
13
Desarrollador 13
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
14
Desarrollador 14
Evaluación
(298)
Proyectos
477
40%
Arbitraje
105
40% / 24%
Caducado
81
17%
Trabajando
Ha publicado: 2 ejemplos
15
Desarrollador 15
Evaluación
Proyectos
1
0%
Arbitraje
2
0% / 100%
Caducado
0
Libre
16
Desarrollador 16
Evaluación
(5)
Proyectos
6
50%
Arbitraje
0
Caducado
1
17%
Libre
17
Desarrollador 17
Evaluación
(5)
Proyectos
9
11%
Arbitraje
2
0% / 50%
Caducado
2
22%
Trabaja
18
Desarrollador 18
Evaluación
(2)
Proyectos
2
0%
Arbitraje
0
Caducado
0
Libre
Ha publicado: 1 ejemplo
19
Desarrollador 19
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
20
Desarrollador 20
Evaluación
(572)
Proyectos
664
32%
Arbitraje
42
45% / 45%
Caducado
12
2%
Trabajando
21
Desarrollador 21
Evaluación
(1)
Proyectos
3
33%
Arbitraje
0
Caducado
0
Trabaja
22
Desarrollador 22
Evaluación
(198)
Proyectos
254
20%
Arbitraje
22
50% / 18%
Caducado
0
Trabajando
23
Desarrollador 23
Evaluación
(3)
Proyectos
3
0%
Arbitraje
0
Caducado
0
Libre
24
Desarrollador 24
Evaluación
(271)
Proyectos
553
50%
Arbitraje
57
40% / 37%
Caducado
227
41%
Trabaja
25
Desarrollador 25
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
Solicitudes similares
am looking for an experienced MQL5 developer to create a professional Expert Advisor (EA) for the MT5 platform based on Elliott Wave Theory. Project Requirements Develop an automated trading EA for MetaTrader 5 (MT5) Strategy must detect and trade Elliott Wave patterns automatically EA should identify impulsive and corrective wave structures Include configurable entry and exit conditions Support Buy and Sell trades
Project Overview We have a highly optimized, production-ready custom cTrader cBot built for a fast-paced Renko breakout strategy (specifically trading XAUUSD/Gold). The core system architecture, structural mapping, and breakout logic are flawless. We are seeking an expert C# algorithmic developer for a targeted engagement to refine the execution mechanics and add an advanced trade management module. This is not a
SNIPER X AI 30 - 200 USD
I really need a developer Who can help me to create my SNIPER X AI - Elite AI Trading System Overview SNIPER X AI BOT is an AI-assisted trading system for Forex, Crypto, Stocks, Indices, and Gold. Currency: USD,RAND,KWD, POUND,EURO Core Features AI Scalping, Sniper Entries, Auto Buy/Sell, Smart Risk Management, Telegram Alerts, Mobile Monitoring, VPS Deployment. Supported Platforms MetaTrader 4, MetaTrader 5, Exness
Emmanuel bot 30 USD
No thank you just choose for me I need to be automatically buy and sell and take a profit only that is enough for me thank you so much my name is Emmanuel kabale
Limzy 30+ USD
//+------------------------------------------------------------------+ //| HighPerformanceEA.mq5 | //| Copyright 2026, AI Developer | //| https://www.mql5.com | //+------------------------------------------------------------------+ #property copyright "Copyright 2026" #property link " https://www.mql5.com " #property version "1.00" #property strict //
I need an experienced MQL5 developer to build a professional XAUUSD scalping Expert Advisor. The trading logic is already fully defined and will be shared privately with selected developers. Requirements Fast execution suitable for scalping Dynamic lot sizing Strict risk management Clean and optimized MQL5 code Compatible with MetaTrader 5 Additional Rules No repainting logic No delayed execution Avoid duplicate
Prepare expert for xauusd live chart [ expert is not executing xauusd trades , just printing the logic on the chart ] . Deletion and cleaning code ( subject to if required ) . Integration of candles with present logic, Since expert is coming out from an arbitration subject : Before project start , review the code if it is clean and ready for the developer to continue with previous developer's technical debt -thereby
Hello, I am looking for an experienced developer who can build a professional EA suitable for long-term prop firm account passing and account management. I am NOT interested in risky strategies such as martingale, grid, or aggressive recovery systems. My main priorities are: very low and stable drawdown, strong and consistent risk management, strict news filter, long-term sustainability, realistic and stable monthly
Need a Profitable with a good trading system or strategy. would test the product first Looking for a professional MT5 Expert Advisor based on smart strategies. The EA should include session filters, risk management, trailing stop, multi-pair support, and low drawdown protection. I need a consistent, high-probability automated trading system optimized for long-term profitability and funded account compliance
Junior EA 30+ USD
1. EA for MT5, hedging allowed. 2. Entry: 50 EMA crosses 200 EMA on H1. Buy on bullish cross, sell on bearish. 3. SL: 100 pips, TP: 200 pips. No trailing stop. 4. Lot size: 0.01 fixed. Max 3 trades at once. 5. Trade only 08:00-18:00 GMT. No trades if spread > 20 points. 6. Inputs: EMA periods, SL, TP, lot size, start/end time

Información sobre el proyecto

Presupuesto
80 - 120 USD
Plazo límite de ejecución
a 5 día(s)