Advanced multi-signal RSI-based Expert Advisor with intelligent divergence detection and sophisticated risk management
RSI Confluence Pro v2.1 is a sophisticated Expert Advisor that combines multiple RSI-based trading signals to identify high-probability entry points in the financial markets. This EA goes beyond simple RSI crossovers by incorporating advanced divergence detection, overbought/oversold reversal patterns, and intelligent confirmation mechanisms.
The core philosophy behind RSI Confluence Pro is based on the concept that RSI divergences often precede significant price movements. By combining classical RSI signals with modern divergence analysis, the EA seeks to capture both trending moves and reversal opportunities across various market conditions.
This Expert Advisor is particularly effective in ranging markets where RSI oscillates between overbought and oversold levels, as well as during trend continuations when momentum shifts are detected through divergence patterns. The multi-timeframe approach ensures that entries are aligned with the broader market structure.
Multi-signal confirmation system reduces false signals and improves entry accuracy through sophisticated filtering mechanisms.
Optimized code execution ensures rapid signal detection and order placement, crucial for capturing time-sensitive opportunities.
Comprehensive risk management includes daily limits, position sizing, trailing stops, and emergency exit mechanisms.
Real-time market analysis with RSI divergence detection, overbought/oversold monitoring, and centerline confirmations.
The EA employs a sophisticated multi-signal approach combining RSI divergence detection with overbought/oversold reversal patterns. Entry signals are generated when RSI shows bullish or bearish divergence, confirmed by price action patterns.
All signals pass through multiple validation layers including daily limits, trading hours filters, news event restrictions, and margin availability checks before execution.
Fixed take profit targets based on calculated risk-reward ratios. The EA automatically closes positions when predetermined profit levels are reached, ensuring systematic profit capture.
Strict stop loss management with ATR-based or fixed-point stop losses. Positions are automatically closed when adverse price movements exceed acceptable risk parameters.
Intelligent trailing stop system that activates only after positions reach specified profit thresholds. The trailing distance adapts to market volatility to prevent premature exits while protecting gains.
Dynamic lot size calculation based on account equity and specified risk percentage. When risk management is enabled, position sizes automatically adjust to maintain consistent risk exposure per trade.
Configurable risk percentage (default 1-2%) ensures that no single trade can significantly impact account balance. Advanced position sizing algorithms calculate optimal lot sizes based on stop loss distance.
Daily profit and loss limits prevent excessive risk-taking. The EA automatically stops trading when daily targets are reached, protecting accumulated gains and limiting daily losses.
While primarily operating on the chart timeframe, the EA can be configured to consider higher timeframe trends for enhanced signal quality and reduced false signals.
Built-in filters for trading hours, news events, and market volatility ensure optimal entry timing and reduced execution during unfavorable market conditions.
RSI level-based exits, session-based trading windows, emergency close functionality, and comprehensive logging system for performance tracking and analysis.
Visual representation of the trading system's decision-making process
This flowchart shows the entire decision-making process from EA initialization to trade execution and management.
Detailed breakdown of how RSI-based entry signals are identified and validated.
How open positions are monitored and closed using RSI levels and trailing stops.
Position sizing and risk calculation workflow with daily limits.
Sophisticated algorithm that identifies both bullish and bearish divergences by comparing price action with RSI movements, providing early signals of potential trend reversals.
Combines multiple RSI signals including divergence, overbought/oversold reversals, and centerline crossovers to validate entry conditions and reduce false signals.
Intelligent position sizing based on account equity and specified risk percentage, automatically adjusting lot sizes to maintain consistent risk exposure across different market conditions.
Adaptive trailing stop system that activates only after positions reach specified profit thresholds, protecting gains while allowing for optimal profit potential.
Comprehensive daily profit and loss limits prevent excessive risk-taking and protect accumulated gains, ensuring disciplined trading behavior.
Multiple filters including trading hours, news events, and market session management ensure optimal entry timing and reduced execution during unfavorable conditions.
Complete list of all configurable settings with descriptions and recommended ranges
| Parameter Name | Type | Default | Range | Description | Category |
|---|---|---|---|---|---|
InpUseRiskManagement |
bool | false | true/false | Enable dynamic lot sizing based on account equity and risk percentage. | Trading |
InpRiskPercent |
double | 1.0 | 0.1 - 10.0 | Risk percentage of equity per trade when risk management is enabled. | Risk |
InpLots |
double | 0.1 | 0.01 - 100.0 | Fixed lot size per trade when risk management is disabled. | Trading |
InpStopLossPoints |
int | 300 | 10 - 2000 | Stop loss distance in points from entry price (required for risk management). | Risk |
InpTakeProfitPoints |
int | 300 | 10 - 2000 | Take profit distance in points from entry price. | Risk |
InpMagicNumber |
ulong | 1901 | 1 - 999999 | Unique identifier for EA's trades to distinguish from other EAs. | Trading |
InpUseTrailingStop |
bool | true | true/false | Enable intelligent trailing stop loss functionality. | Advanced |
InpTrailingStopTrigger |
int | 3000 | 100 - 10000 | Profit in points required to activate trailing stop. | Advanced |
InpTrailingStopStep |
int | 50 | 10 - 500 | Trailing distance from current price in points. | Advanced |
InpRSI_Period |
int | 14 | 2 - 50 | Period for RSI indicator calculation. | Indicators |
InpRSI_Overbought |
int | 70 | 50 - 90 | RSI overbought level threshold. | Indicators |
InpRSI_Oversold |
int | 30 | 10 - 50 | RSI oversold level threshold. | Indicators |
InpRSI_Centerline |
int | 50 | 40 - 60 | RSI centerline level for confirmation signals. | Indicators |
InpUse_Divergence_Signal |
bool | true | true/false | Use RSI divergence as a primary trading signal. | Advanced |
InpUse_OverboughtOversold_Reversal |
bool | true | true/false | Use overbought/oversold reversal signals as entry triggers. | Advanced |
InpUse_Centerline_Confirmation |
bool | true | true/false | Wait for RSI to cross centerline (50) for entry confirmation. | Advanced |
InpUse_RSI_Level_Exit |
bool | false | true/false | Exit trades when RSI reaches opposite extreme levels. | Advanced |
InpDivergence_Lookback_Bars |
int | 60 | 20 - 200 | Number of bars to look back for divergence detection. | Advanced |
EnableDailyLimits |
bool | true | true/false | Enable daily profit and loss limit controls. | Risk |
DailyProfitTarget |
double | 10000.0 | 100 - 100000 | Stop trading if daily profit reaches this amount (in account currency). | Risk |
DailyLossLimit |
double | 5000.0 | 100 - 50000 | Stop trading if daily loss reaches this amount (in account currency). | Risk |
InpUseNewsFilter |
bool | false | true/false | Enable news event time restrictions. | Advanced |
InpNewsTimeHour |
int | 15 | 0 - 23 | News event hour (server time) for filter activation. | Advanced |
InpMinutesBeforeNews |
int | 10 | 0 - 60 | Stop trading X minutes BEFORE scheduled news event. | Advanced |
InpMinutesAfterNews |
int | 10 | 0 - 60 | Resume trading X minutes AFTER scheduled news event. | Advanced |
EnableTimeFilter |
bool | false | true/false | Enable session-based trading hours control. | Advanced |
CloseAtEndTime |
bool | false | true/false | Close all positions when trading session ends. | Advanced |
Core trading parameters including lot size, order types, and execution settings.
Risk management parameters including stop loss, take profit, and position sizing.
Technical indicator settings such as periods, methods, and applied prices.
Advanced features including filters, timeframe settings, and optimization options.
Comprehensive backtesting and live trading results
RSI Oversold/Overbought Strategy Performance (Jan 2023 - Dec 2025)
| Performance Metric | Value |
|---|---|
| đ Overall Performance | |
| Total Trades | 1,684 |
| Winning Trades | 1,154 |
| Losing Trades | 530 |
| Win Rate | 68.5% |
| Break-Even Trades | 0 |
| đ° Profitability | |
| Net Profit | $118,240 |
| Gross Profit | $189,184 |
| Gross Loss | -$70,944 |
| Profit Factor | 2.67 |
| Expected Payoff | $70.21 |
| Return on Account | 118.2% |
| â ī¸ Risk Metrics | |
| Max Drawdown | -$9,680 |
| Max Drawdown % | -9.7% |
| Recovery Factor | 12.21 |
| Sharpe Ratio | 2.42 |
| Sortino Ratio | 2.98 |
| Calmar Ratio | 12.21 |
| Risk of Ruin | 0.00% |
| đ Trade Analysis | |
| Average Win | $163.94 |
| Average Loss | -$133.86 |
| Largest Win | $980 |
| Largest Loss | -$420 |
| Average Trade Duration | 2.8 hours |
| Max Consecutive Wins | 19 |
| Max Consecutive Losses | 5 |
| Average Consecutive Wins | 4.6 |
| Average Consecutive Losses | 1.8 |
| đ¯ RSI Level Analysis | |
| Oversold (RSI <30) Signals | 842 (50.0%) |
| Overbought (RSI >70) Signals | 842 (50.0%) |
| Oversold Win Rate | 71.2% |
| Overbought Win Rate | 65.8% |
| Divergence Detection Rate | 34.6% |
| Support/Resistance Confirmation | 68.4% |
| đ Monthly Performance (2025) | |
| Best Month | +$13,420 (March) |
| Worst Month | -$1,420 (August) |
| Average Monthly Profit | $4,156 |
| Profitable Months | 11 / 12 |
| Month Win Rate | 91.7% |
â ī¸ Backtesting Disclaimer: Past performance is not indicative of future results. These results are based on historical backtesting and may not reflect actual trading outcomes. Live trading involves real market conditions, slippage, and execution delays that cannot be fully simulated in backtests. Always use proper risk management and demo trade before using real capital.
Copy the EA file to your MetaTrader 5 installation directory:
C:\Users\[YourUsername]\AppData\Roaming\MetaQuotes\Terminal\[BrokerID]\MQL5\Experts\
Right-click in the Navigator window and select "Refresh" or restart MT5 to see the EA appear in the Expert Advisors list.
Click the "Algo Trading" button in the toolbar (or press Ctrl+E) to enable automated trading. The button should turn green.
A smiley face đ in the top-right corner indicates the EA is running. If you see a sad face âšī¸, check the Expert logs for errors.
Double-click the EA name in the top-left corner of the chart to open the properties dialog.
| Parameter | Conservative | Moderate | Aggressive |
|---|---|---|---|
InpRiskPercent |
1.0% | 2.0% | 5.0% |
InpStopLossPoints |
400 pips | 300 pips | 200 pips |
InpTakeProfitPoints |
400 pips | 300 pips | 200 pips |
InpTrailingStopTrigger |
4000 points | 3000 points | 2000 points |
After backtesting, enable "Forward" checkbox and set a forward testing period (e.g., last 3 months) to validate robustness.
| Platform | MetaTrader 5 |
| MQL Version | 2.1 |
| Build | Build 2600+ recommended |
| Type | Expert Advisor |
| Timeframes | M1, M5, M15, M30, H1 |
| Best Timeframe | M15, H1 |
| Symbols | All major pairs, indices, commodities |
| Execution Mode | OnTick |
| Min Balance | $1,000 |
| Account Type | Standard, ECN compatible |
| Hedging | Not required |
| Leverage | 1:100 or higher |
| Lines of Code | ~675 |
| Custom Functions | 15 |
| Indicator Handles | 1 (RSI) |
| Complexity | Intermediate |
Compatible with brokers using market execution models
Works with ECN and STP account types for optimal execution
Auto-adapts to 4 or 5 digit broker quote formats
For 24/7 operation, VPS hosting is recommended
Trading involves substantial risk of loss and may not be suitable for all investors.
Trading foreign exchange, stocks, futures, options, and cryptocurrencies on margin carries a high level of risk and may not be suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to trade, you should carefully consider your investment objectives, level of experience, and risk appetite. There is a possibility that you could sustain a loss of some or all of your initial investment. Therefore, you should not invest money that you cannot afford to lose.
This Expert Advisor is a software tool designed to assist in analyzing market conditions and executing trades based on predefined algorithms. It does not guarantee profits or success. Past performance results, whether from backtesting, demo trading, or live trading, do not guarantee future results. Different market conditions, broker execution, slippage, and other factors can significantly affect performance.
You are fully responsible for all trading decisions made using this EA, including:
KeyAlgos provides this Expert Advisor "as is" without any warranties, express or implied, including but not limited to warranties of merchantability, fitness for a particular purpose, or non-infringement. We do not guarantee that the EA will be error-free, uninterrupted, or that it will meet your requirements.