Specifiche
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.
Con risposta
1
Valutazioni
Progetti
24
38%
Arbitraggio
3
67%
/
33%
In ritardo
1
4%
In elaborazione
2
Valutazioni
Progetti
2
0%
Arbitraggio
0
In ritardo
1
50%
Gratuito
3
Valutazioni
Progetti
7
14%
Arbitraggio
3
33%
/
0%
In ritardo
0
In elaborazione
Pubblicati: 3 articoli, 30 codici
4
Valutazioni
Progetti
201
48%
Arbitraggio
5
20%
/
60%
In ritardo
2
1%
In elaborazione
5
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
6
Valutazioni
Progetti
945
47%
Arbitraggio
309
58%
/
27%
In ritardo
125
13%
Gratuito
7
Valutazioni
Progetti
43
58%
Arbitraggio
1
100%
/
0%
In ritardo
1
2%
Gratuito
Pubblicati: 5 codici
8
Valutazioni
Progetti
84
64%
Arbitraggio
5
100%
/
0%
In ritardo
9
11%
Gratuito
9
Valutazioni
Progetti
5
0%
Arbitraggio
3
33%
/
67%
In ritardo
2
40%
In elaborazione
10
Valutazioni
Progetti
1
0%
Arbitraggio
0
In ritardo
0
Gratuito
11
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
12
Valutazioni
Progetti
435
54%
Arbitraggio
21
52%
/
14%
In ritardo
30
7%
Caricato
13
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
14
Valutazioni
Progetti
477
40%
Arbitraggio
105
40%
/
24%
In ritardo
81
17%
Caricato
Pubblicati: 2 codici
15
Valutazioni
Progetti
1
0%
Arbitraggio
2
0%
/
100%
In ritardo
0
Gratuito
16
Valutazioni
Progetti
6
50%
Arbitraggio
0
In ritardo
1
17%
Gratuito
17
Valutazioni
Progetti
9
11%
Arbitraggio
2
0%
/
50%
In ritardo
2
22%
In elaborazione
18
Valutazioni
Progetti
2
0%
Arbitraggio
0
In ritardo
0
Gratuito
Pubblicati: 1 codice
19
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
20
Valutazioni
Progetti
664
32%
Arbitraggio
42
45%
/
45%
In ritardo
12
2%
Caricato
21
Valutazioni
Progetti
3
33%
Arbitraggio
0
In ritardo
0
In elaborazione
22
Valutazioni
Progetti
254
20%
Arbitraggio
22
50%
/
18%
In ritardo
0
Caricato
23
Valutazioni
Progetti
3
0%
Arbitraggio
0
In ritardo
0
Gratuito
24
Valutazioni
Progetti
553
50%
Arbitraggio
57
40%
/
37%
In ritardo
227
41%
In elaborazione
25
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
Ordini simili
Expert Advisor Based on Elliott Wave Theory
500 - 5000 USD
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
Informazioni sul progetto
Budget
80 - 120 USD
Scadenze
a 5 giorno(i)