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

Termos de Referência


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.

Respondido

1
Desenvolvedor 1
Classificação
(31)
Projetos
39
46%
Arbitragem
4
50% / 50%
Expirado
3
8%
Livre
2
Desenvolvedor 2
Classificação
(2)
Projetos
2
0%
Arbitragem
0
Expirado
1
50%
Livre
3
Desenvolvedor 3
Classificação
(24)
Projetos
35
40%
Arbitragem
9
22% / 33%
Expirado
5
14%
Carregado
Publicou: 8 artigos, 35 códigos
4
Desenvolvedor 4
Classificação
(170)
Projetos
203
47%
Arbitragem
5
20% / 60%
Expirado
3
1%
Livre
5
Desenvolvedor 5
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
6
Desenvolvedor 6
Classificação
(574)
Projetos
945
47%
Arbitragem
309
58% / 27%
Expirado
125
13%
Livre
7
Desenvolvedor 7
Classificação
(45)
Projetos
53
57%
Arbitragem
2
100% / 0%
Expirado
1
2%
Livre
Publicou: 5 códigos
8
Desenvolvedor 8
Classificação
(74)
Projetos
84
64%
Arbitragem
5
100% / 0%
Expirado
9
11%
Livre
9
Desenvolvedor 9
Classificação
(7)
Projetos
6
0%
Arbitragem
4
25% / 75%
Expirado
2
33%
Livre
10
Desenvolvedor 10
Classificação
(1)
Projetos
1
0%
Arbitragem
0
Expirado
0
Livre
11
Desenvolvedor 11
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
12
Desenvolvedor 12
Classificação
(372)
Projetos
463
56%
Arbitragem
24
58% / 17%
Expirado
32
7%
Trabalhando
13
Desenvolvedor 13
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
14
Desenvolvedor 14
Classificação
(298)
Projetos
478
40%
Arbitragem
105
40% / 24%
Expirado
82
17%
Carregado
Publicou: 2 códigos
15
Desenvolvedor 15
Classificação
Projetos
1
0%
Arbitragem
2
0% / 100%
Expirado
0
Livre
16
Desenvolvedor 16
Classificação
(5)
Projetos
6
50%
Arbitragem
0
Expirado
1
17%
Livre
17
Desenvolvedor 17
Classificação
(10)
Projetos
17
18%
Arbitragem
3
0% / 67%
Expirado
3
18%
Trabalhando
18
Desenvolvedor 18
Classificação
(2)
Projetos
2
0%
Arbitragem
0
Expirado
0
Livre
Publicou: 1 código
19
Desenvolvedor 19
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
20
Desenvolvedor 20
Classificação
(642)
Projetos
750
35%
Arbitragem
50
52% / 38%
Expirado
14
2%
Trabalhando
21
Desenvolvedor 21
Classificação
(4)
Projetos
7
57%
Arbitragem
1
100% / 0%
Expirado
0
Livre
22
Desenvolvedor 22
Classificação
(216)
Projetos
284
20%
Arbitragem
28
61% / 14%
Expirado
0
Livre
23
Desenvolvedor 23
Classificação
(3)
Projetos
3
0%
Arbitragem
0
Expirado
0
Livre
24
Desenvolvedor 24
Classificação
(271)
Projetos
553
50%
Arbitragem
57
40% / 37%
Expirado
227
41%
Trabalhando
25
Desenvolvedor 25
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
Pedidos semelhantes
Here's how it works: 👇 ✅ You fund your own MT4/MT5 account. ✅ You share the account password with us. ✅ We connect it to our trading robot – low risk, consistent growth. ✅ We split the profits equally (50/50). ✅ You can monitor everything
🚀 THE AIRAK PHASE 3: SUBSCRIPTION, PAYMENT, LICENSING & AFFILIATE SYSTEM Project: THE AIRAK Trading Assistant Development Phase: Phase 3 Project Owner: Kayemba Joseph Platform: MetaTrader 5 (MT5) 1. PROJECT OBJECTIVE Phase 3 is intended to transform THE AIRAK into a subscription-based trading software business. The system should allow customers to register, purchase subscriptions, receive automatically activated
PROJECT: ADVANCED MT4/MT5 EA OPTIMIZATION – AUTOMATED TRADING, DYNAMIC PROFIT LOCKING, AUTO LOT & PROFESSIONAL RISK MANAGEMENT Hello Developer, I already have an existing Expert Advisor (EA) for MetaTrader 4/5. It is currently running, but I need an experienced MQL4/MQL5 developer to fix its problems and improve its trading performance, execution, risk management, and reliability. I want to preserve the original
I want an advanced automated Expert Advisor (EA) trading robot developed for MetaTrader 5 (MT5), compatible with Exness trading accounts. The robot should have the following features: 1. AUTOMATED TRADING - Automatically execute BUY and SELL trades. - Identify strong trading opportunities. - Analyse market trends before entering trades. - Operate without requiring manual trade execution. 2. ADVANCED MARKET ANALYSIS -
Can you do a 5 year back test on /6e (fx euro). using 30 minute chart. Buy to open if macd histogram is above 0 line, or sell to open if macd histogram is below 0 line at 7:30 pm eastern standard time. Close position at 7:30 am next morning. Trade stays open for the entire 12 hour time. thanks, regarding backtest, forgot to mention $300 stop loss, and $500 take profit. Thank you
Hi! I have a general strategy concept, but I would like you to help develop and define the exact trading rules. The planned strategy is: * Instrument: MNQ futures * Platform: NinjaTrader 8 * M30 timeframe for identifying the main trend * M5 timeframe for trade entries * RSI and MACD indicators * Support and resistance levels * Fully automated entries and exits * Automatic Stop Loss, Take Profit and Trailing Stop *
Stanley 30 - 200 USD
I strictly need a trading robot to trade in stocks and forex. I am a beginner and woul like to trade in simple stocks and forex with the aim of growing my trade capital in the trade platform
Why is it difficult to get notifications from this website. Notifications seems stale, what’s happening? Also I noticed almost 90% of the jobs posted here are from people who aren’t ready for their work to be executed. Is it just me experiencing this or anyone else
Robert for life money's cash maximum 16mb the jobs future linuox Trading robots are programs, which operate according to underlying algorithms. An algorithm is a set of actions that need to be performed in response to certain events. For example, the most common task in algo trading is the identification of the "New bar" event . When the event occurs, the robot checks the emergence of trading signals and acts
MultiScalping 30+ USD
Je souhaite un robot avec une dizaine d'indicateurs sélectionnables en entrée et aussi en SL puis suiveurs. L'objectif de se robot est de me permettre de tester plusieurs backtest avec un ou plusieurs paramètres en M1. TOUS LES indicateurs sont sélectionnables avec: - oui/non - SL et Stop Suiveur - Croisement avec le prix - croisement de l'oscillateur à 0 - utilisation de l'une autre période (type M5 , ....) - retour

Informações sobre o projeto

Orçamento
80 - 120 USD
Prazo
para 5 dias