MetaTrader 5 Expert Advisor v2.1

RSI Confluence Pro

Advanced multi-signal RSI-based Expert Advisor with intelligent divergence detection and sophisticated risk management

RSI Trading Strategy Type
M1-H1 Timeframes
Moderate Risk Level
Multi-Market Markets

Overview

What It Does

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.

  • Combines multiple RSI-based signals for enhanced accuracy
  • Advanced bullish and bearish divergence detection
  • Intelligent risk management with dynamic position sizing
  • Adaptable to various market conditions and timeframes

Key Highlights

đŸŽ¯

Precision

Multi-signal confirmation system reduces false signals and improves entry accuracy through sophisticated filtering mechanisms.

⚡

Speed

Optimized code execution ensures rapid signal detection and order placement, crucial for capturing time-sensitive opportunities.

đŸ›Ąī¸

Protection

Comprehensive risk management includes daily limits, position sizing, trailing stops, and emergency exit mechanisms.

📊

Analysis

Real-time market analysis with RSI divergence detection, overbought/oversold monitoring, and centerline confirmations.

Methodology & Core Logic

đŸŸĸ

Entry Strategy

Signal Generation

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.

Confirmation Methods

  • RSI centerline crossover confirmation (50 level)
  • Multi-timeframe trend alignment
  • Volume and volatility filters
  • Market session validation

Filtering Mechanism

All signals pass through multiple validation layers including daily limits, trading hours filters, news event restrictions, and margin availability checks before execution.

🔴

Exit Strategy

Profit Taking

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.

Loss Limitation

Strict stop loss management with ATR-based or fixed-point stop losses. Positions are automatically closed when adverse price movements exceed acceptable risk parameters.

Trailing Mechanism

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.

đŸ›Ąī¸

Risk Management

Position Sizing

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.

Risk 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.

Account Protection

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.

âš™ī¸

Advanced Features

Multi-Timeframe Analysis

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.

Market Condition Filters

Built-in filters for trading hours, news events, and market volatility ensure optimal entry timing and reduced execution during unfavorable market conditions.

Special Mechanisms

RSI level-based exits, session-based trading windows, emergency close functionality, and comprehensive logging system for performance tracking and analysis.

Logic Flow Diagrams

Visual representation of the trading system's decision-making process

Complete Trading Logic Flow

This flowchart shows the entire decision-making process from EA initialization to trade execution and management.

flowchart TD Start([EA Initialization]) --> Init{Initialize
Successfully?} Init -->|No| Error[Display Error
& Exit] Init -->|Yes| CheckMarket{Market
Open?} CheckMarket -->|No| Wait1[Wait for
Market Open] Wait1 --> CheckMarket CheckMarket -->|Yes| CheckSession{Within Trading
Hours?} CheckSession -->|No| Wait2[Wait Outside
Session] Wait2 --> CheckSession CheckSession -->|Yes| CheckNews{News Event
Nearby?} CheckNews -->|Yes| Wait3[Wait for News
to Pass] Wait3 --> CheckNews CheckNews -->|No| CheckExisting{Existing
Positions?} CheckExisting -->|Yes| ManagePos[Manage Existing
Positions] ManagePos --> CheckExit{Exit Signal
or Target?} CheckExit -->|SL Hit| CloseLoss[Close Position
with Loss] CheckExit -->|TP Hit| CloseProfit[Close Position
with Profit] CheckExit -->|Trailing| AdjustSL[Adjust Trailing
Stop Loss] CheckExit -->|Continue| CheckExisting CheckExisting -->|No| MaxPos{Max Positions
Reached?} MaxPos -->|Yes| CheckExisting MaxPos -->|No| ScanSignal[Scan for
Entry Signals] ScanSignal --> CheckRSILevel{RSI in
Valid Range?} CheckRSILevel -->|No| CheckExisting CheckRSILevel -->|Yes| CheckDivergence{Divergence
Detected?} CheckDivergence -->|Bullish| CheckPriceLow{Price Makes
Lower Low?} CheckDivergence -->|Bearish| CheckPriceHigh{Price Makes
Higher High?} CheckDivergence -->|No| CheckReversal{Reversal
Signal?} CheckPriceLow -->|Yes| CheckRSIBull{RSI Makes
Higher Low?} CheckPriceHigh -->|Yes| CheckRSIBear{RSI Makes
Lower High?} CheckReversal -->|No| CheckExisting CheckRSIBull -->|Yes| CheckConfirm{Centerline
Confirmation?} CheckRSIBear -->|Yes| CheckConfirm CheckReversal -->|Yes| CheckRSIChange{RSI Crosses
50 Level?} CheckRSIChange -->|Yes| CheckConfirm CheckRSIChange -->|No| CheckExisting CheckConfirm -->|No| CheckExisting CheckConfirm -->|Yes| CheckRisk{Risk
Acceptable?} CheckRisk -->|No| CheckExisting CheckRisk -->|Yes| CheckMargin{Sufficient
Margin?} CheckMargin -->|No| CheckExisting CheckMargin -->|Yes| CalcSize[Calculate
Position Size] CalcSize --> SendOrder[Send Market
Order] SendOrder --> OrderSuccess{Order
Successful?} OrderSuccess -->|No| LogError[Log Error] OrderSuccess -->|Yes| SetSLTP[Set Stop Loss
& Take Profit] SetSLTP --> SendAlert[Send Alert/
Notification] LogError --> CheckExisting SendAlert --> CheckExisting CloseLoss --> UpdateStats[Update
Statistics] CloseProfit --> UpdateStats AdjustSL --> CheckExisting UpdateStats --> CheckExisting Error --> End([EA Stopped]) style Start fill:#00d4ff,stroke:#00d4ff,stroke-width:3px,color:#000 style SendOrder fill:#00ff88,stroke:#00ff88,stroke-width:3px,color:#000 style CloseLoss fill:#ff0055,stroke:#ff0055,stroke-width:2px,color:#fff style CloseProfit fill:#00ff88,stroke:#00ff88,stroke-width:2px,color:#000 style Error fill:#ff0055,stroke:#ff0055,stroke-width:2px,color:#fff style End fill:#7b2cbf,stroke:#7b2cbf,stroke-width:3px,color:#fff style CheckRSILevel fill:#151932,stroke:#00d4ff,stroke-width:2px style CheckDivergence fill:#151932,stroke:#00d4ff,stroke-width:2px style CheckReversal fill:#151932,stroke:#00d4ff,stroke-width:2px style CheckRisk fill:#151932,stroke:#ffaa00,stroke-width:2px style CheckMargin fill:#151932,stroke:#ffaa00,stroke-width:2px

RSI Signal Detection Process

Detailed breakdown of how RSI-based entry signals are identified and validated.

flowchart LR Start([New Candle]) --> GetData[Fetch RSI
Indicator Data] GetData --> CheckOscillation{RSI in
Oscillation Range?} CheckOscillation -->|No| NoSignal[No Signal
Detected] CheckOscillation -->|Yes| CheckDiv{Divergence
Enabled?} CheckDiv -->|Yes| AnalyzeDiv[Analyze Price vs
RSI Divergence] CheckDiv -->|No| CheckRev{Reversal
Enabled?} AnalyzeDiv --> DivType{Divergence
Type?} DivType -->|Bullish| CheckBull[Bullish Divergence
Check] DivType -->|Bearish| CheckBear[Bearish Divergence
Check] CheckBull --> PriceLower{Price Makes
Lower Lows?} CheckBear --> PriceHigher{Price Makes
Higher Highs?} PriceLower -->|Yes| RSIHigher{RSI Makes
Higher Lows?} PriceHigher -->|Yes| RSILower{RSI Makes
Lower Highs?} PriceLower -->|No| CheckRev PriceHigher -->|No| CheckRev RSIHigher -->|Yes| DivSignal([Divergence
Signal Found]) RSILower -->|Yes| DivSignal CheckRev -->|Yes| ReversalCheck[Check Overbought/
Oversold Conditions] CheckRev -->|No| NoSignal ReversalCheck --> OBOSCheck{OB/OS
Reversal?} OBOSCheck -->|Bullish| RSIExitOS{RSI Exits
Oversold?} OBOSCheck -->|Bearish| RSIExitOB{RSI Exits
Overbought?} RSIExitOS -->|Yes| CenterlineCheck{Crosses
Centerline?} RSIExitOB -->|Yes| CenterlineCheck CenterlineCheck -->|Yes| RevSignal([Reversal
Signal Found]) CenterlineCheck -->|No| NoSignal DivSignal --> Confirmation{Additional
Confirmation?} RevSignal --> Confirmation NoSignal --> End([End]) Confirmation -->|Yes| ConfirmChecks[Validate Signals] Confirmation -->|No| ValidSignal([Valid Signal
Confirmed]) ConfirmChecks --> Filter1{Trend
Alignment?} ConfirmChecks --> Filter2{Volume
Confirmation?} ConfirmChecks --> Filter3{Timeframe
Agreement?} Filter1 -->|Yes| ValidSignal Filter2 -->|Yes| ValidSignal Filter3 -->|Yes| ValidSignal Filter1 -->|No| Reject[Reject Signal] Filter2 -->|No| Reject Filter3 -->|No| Reject ValidSignal --> DetermineSide{Long or
Short?} DetermineSide -->|Long| BuySignal([Buy Signal]) DetermineSide -->|Short| SellSignal([Sell Signal]) Reject --> End style Start fill:#00d4ff,stroke:#00d4ff,stroke-width:2px,color:#000 style DivSignal fill:#00ff88,stroke:#00ff88,stroke-width:3px,color:#000 style RevSignal fill:#00ff88,stroke:#00ff88,stroke-width:3px,color:#000 style BuySignal fill:#00ff88,stroke:#00ff88,stroke-width:3px,color:#000 style SellSignal fill:#ff0055,stroke:#ff0055,stroke-width:3px,color:#fff style NoSignal fill:#7b2cbf,stroke:#7b2cbf,stroke-width:2px,color:#fff style End fill:#7b2cbf,stroke:#7b2cbf,stroke-width:2px,color:#fff

Exit Strategy & Position Management

How open positions are monitored and closed using RSI levels and trailing stops.

flowchart TD Start([Position Open]) --> Monitor[Monitor Position
Status] Monitor --> CheckSL{Stop Loss
Hit?} CheckSL -->|Yes| CloseSL[Close at
Stop Loss] CheckSL -->|No| CheckTP{Take Profit
Hit?} CheckTP -->|Yes| CloseTP[Close at
Take Profit] CheckTP -->|No| CheckRSIExit{RSI Exit
Enabled?} CheckRSIExit -->|No| CheckTrail{Trailing Stop
Enabled?} CheckRSIExit -->|Yes| CheckCurrentRSI[Get Current
RSI Value] CheckCurrentRSI --> PosType{Position
Type?} PosType -->|Long| CheckRSIOB{RSI >=
Overbought?} PosType -->|Short| CheckRSIOS{RSI <=
Oversold?} CheckRSIOB -->|Yes| CloseRSI[Close by RSI
Overbought] CheckRSIOS -->|Yes| CloseRSI[Close by RSI
Oversold] CheckRSIOB -->|No| CheckTrail CheckRSIOS -->|No| CheckTrail CheckRSIExit -->|No| CheckTrail CheckTrail -->|No| CheckTime{Max Time
in Trade?} CheckTrail -->|Yes| CheckTrigger{Profit >
Trigger?} CheckTrigger -->|No| CheckTime CheckTrigger -->|Yes| CalculateTrail[Calculate New
Trailing Stop] CalculateTrail --> UpdateSL[Update Stop Loss
to Trailing Level] UpdateSL --> CheckTime CheckTime -->|Yes| CloseTime[Close by
Time Exit] CheckTime -->|No| CheckSession{Session
Ending?} CheckSession -->|Yes| CloseSession[Close All
Positions] CheckSession -->|No| Monitor CloseSL --> LogLoss[Log Loss
Statistics] CloseTP --> LogWin[Log Win
Statistics] CloseRSI --> LogRSI[Log RSI Exit
Statistics] CloseTime --> LogTime[Log Time Exit
Statistics] CloseSession --> LogSession[Log Session Close
Statistics] LogLoss --> End([Position Closed]) LogWin --> End LogRSI --> End LogTime --> End LogSession --> End style Start fill:#00d4ff,stroke:#00d4ff,stroke-width:2px,color:#000 style CloseSL fill:#ff0055,stroke:#ff0055,stroke-width:3px,color:#fff style CloseTP fill:#00ff88,stroke:#00ff88,stroke-width:3px,color:#000 style CloseRSI fill:#ffaa00,stroke:#ffaa00,stroke-width:3px,color:#000 style CloseTime fill:#7b2cbf,stroke:#7b2cbf,stroke-width:2px,color:#fff style CloseSession fill:#ffaa00,stroke:#ffaa00,stroke-width:2px,color:#000 style End fill:#00d4ff,stroke:#00d4ff,stroke-width:2px,color:#000

Risk Management System

Position sizing and risk calculation workflow with daily limits.

flowchart TD Start([Entry Signal
Validated]) --> CheckDaily{Daily Limits
Enabled?} CheckDaily -->|Yes| CheckReset{New Day
Reset?} CheckDaily -->|No| GetEquity[Get Account
Equity] CheckReset -->|Yes| ResetLimits[Reset Daily
Limit Flags] CheckReset -->|No| CheckHit{Limits Already
Hit Today?} ResetLimits --> GetEquity CheckHit -->|Yes| DenyTrade([Trade Denied:
Daily Limit]) CheckHit -->|No| GetEquity GetEquity --> CheckDrawdown{Current
Drawdown OK?} CheckDrawdown -->|No| DenyDD[Denial: Max
Drawdown] CheckDrawdown -->|Yes| CheckProfit{Check Today's
Profit/Loss} CheckProfit --> ProfitTarget{Profit >=
Target?} CheckProfit --> LossLimit{Loss <=
Limit?} ProfitTarget -->|Yes| DenyProfit([Trade Denied:
Profit Target]) LossLimit -->|Yes| DenyLoss([Trade Denied:
Loss Limit]) ProfitTarget -->|No| GetRisk[Get Risk
Percentage] LossLimit -->|No| GetRisk GetRisk --> CalcRisk[Calculate Risk
Amount in $] CalcRisk --> GetSL[Get Planned
Stop Loss Pips] GetSL --> CalcPipValue[Calculate
Pip Value] CalcPipValue --> CalcLot[Calculate
Lot Size] CalcLot --> RiskMgmt{Risk Management
Enabled?} RiskMgmt -->|Yes| UseCalc[Use Calculated
Lot Size] RiskMgmt -->|No| UseFixed[Use Fixed
Lot Size] UseCalc --> CheckMin{Size >
Min Lot?} UseFixed --> CheckMin CheckMin -->|No| DenySmall[Denial: Position
Too Small] CheckMin -->|Yes| CheckMax{Size <
Max Lot?} CheckMax -->|No| CapSize[Use Maximum
Lot Size] CheckMax -->|Yes| CheckMargin{Sufficient
Margin?} CapSize --> CheckMargin CheckMargin -->|No| DenyMargin[Denial: Insufficient
Margin] CheckMargin -->|Yes| CheckSpread{Spread
Acceptable?} CheckSpread -->|No| DenySpread[Denial: Spread
Too Wide] CheckSpread -->|Yes| FinalSize[Final Position
Size Approved] FinalSize --> Approved([Size Approved
for Trading]) DenyDD --> Denied([Trade Denied]) DenyProfit --> Denied DenyLoss --> Denied DenySmall --> Denied DenyMargin --> Denied DenySpread --> Denied style Start fill:#00d4ff,stroke:#00d4ff,stroke-width:2px,color:#000 style Approved fill:#00ff88,stroke:#00ff88,stroke-width:3px,color:#000 style Denied fill:#ff0055,stroke:#ff0055,stroke-width:3px,color:#fff style DenyDD fill:#ff0055,stroke:#ff0055,stroke-width:2px,color:#fff style DenyProfit fill:#ff0055,stroke:#ff0055,stroke-width:2px,color:#fff style DenyLoss fill:#ff0055,stroke:#ff0055,stroke-width:2px,color:#fff style DenySmall fill:#ff0055,stroke:#ff0055,stroke-width:2px,color:#fff style DenyMargin fill:#ff0055,stroke:#ff0055,stroke-width:2px,color:#fff style DenySpread fill:#ff0055,stroke:#ff0055,stroke-width:2px,color:#fff

Key Features & Capabilities

đŸŽ¯

Advanced RSI Divergence Detection

Sophisticated algorithm that identifies both bullish and bearish divergences by comparing price action with RSI movements, providing early signals of potential trend reversals.

  • Customizable lookback period for divergence analysis
  • Automatic detection of hidden divergences
  • Overbought/oversold level validation
  • Multi-timeframe confirmation capability
âš™ī¸

Multi-Signal Confirmation System

Combines multiple RSI signals including divergence, overbought/oversold reversals, and centerline crossovers to validate entry conditions and reduce false signals.

  • RSI overbought/oversold reversal detection
  • Centerline (50 level) confirmation mechanism
  • Configurable signal combination rules
  • Noise reduction through multiple filters
đŸ›Ąī¸

Dynamic Position Sizing

Intelligent position sizing based on account equity and specified risk percentage, automatically adjusting lot sizes to maintain consistent risk exposure across different market conditions.

  • Percentage-based risk management
  • Automatic lot size calculation
  • Broker volume normalization
  • Margin requirement validation
📈

Intelligent Trailing Stops

Adaptive trailing stop system that activates only after positions reach specified profit thresholds, protecting gains while allowing for optimal profit potential.

  • Profit trigger-based activation
  • Dynamic trailing distance adjustment
  • One-way trail direction enforcement
  • Break-even protection mechanism
⏰

Daily Limits & Risk Controls

Comprehensive daily profit and loss limits prevent excessive risk-taking and protect accumulated gains, ensuring disciplined trading behavior.

  • Configurable daily profit targets
  • Daily loss limit protection
  • Automatic trading halt when limits reached
  • Daily reset mechanism
📊

Advanced Filtering System

Multiple filters including trading hours, news events, and market session management ensure optimal entry timing and reduced execution during unfavorable conditions.

  • Session-based trading hours
  • News event time restrictions
  • Market condition filters
  • Spread and slippage controls

Input Parameters & Configuration

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

Parameter Categories

Trading

Core trading parameters including lot size, order types, and execution settings.

Risk

Risk management parameters including stop loss, take profit, and position sizing.

Indicators

Technical indicator settings such as periods, methods, and applied prices.

Advanced

Advanced features including filters, timeframe settings, and optimization options.

Performance Analytics

Comprehensive backtesting and live trading results

📊

Backtesting Performance 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%
68.5%
Win Rate
2.67
Profit Factor
1.22:1
Avg Risk/Reward
-9.7%
Max Drawdown

âš ī¸ 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.

Usage & Implementation Guide

1

Installation

File Placement

Copy the EA file to your MetaTrader 5 installation directory:

C:\Users\[YourUsername]\AppData\Roaming\MetaQuotes\Terminal\[BrokerID]\MQL5\Experts\

Compilation

  1. Open MetaEditor (F4 in MT5)
  2. Locate the EA file in the Navigator
  3. Double-click to open
  4. Click "Compile" button or press F7
  5. Check for any errors in the "Errors" tab

Refresh Navigator

Right-click in the Navigator window and select "Refresh" or restart MT5 to see the EA appear in the Expert Advisors list.

2

Chart Setup

Attach to Chart

  1. Open a chart for your desired symbol
  2. Set the appropriate timeframe (recommended: M15 or H1)
  3. Drag the EA from Navigator onto the chart
  4. Alternatively: Right-click chart → Expert Advisors → RSI Confluence Pro

Enable Algo Trading

Click the "Algo Trading" button in the toolbar (or press Ctrl+E) to enable automated trading. The button should turn green.

Verify Attachment

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.

3

Parameter Configuration

Access Settings

Double-click the EA name in the top-left corner of the chart to open the properties dialog.

Recommended Settings for Beginners

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

Symbol-Specific Adjustments

  • Forex Majors (EUR/USD, GBP/USD): Use standard pip values (Stop Loss: 300, Take Profit: 300)
  • Forex Minors & Crosses: Increase pip values by 20-30% due to higher volatility
  • Indices (US30, SPX500): Use point values appropriate for index trading
  • Commodities (Gold, Oil): Adjust for commodity-specific volatility patterns
4

Optimization & Backtesting

Strategy Tester

  1. Open Strategy Tester (View → Strategy Tester or Ctrl+R)
  2. Select "RSI Confluence Pro v2.1" from the dropdown
  3. Choose symbol and timeframe
  4. Set date range (at least 1 year recommended)
  5. Select "Every tick" or "1 minute OHLC" mode
  6. Click "Start" to run backtest

Optimization Process

  1. Click "Optimization" checkbox in Strategy Tester
  2. Select parameters to optimize (RSI Period, Overbought/Oversold levels)
  3. Set min, max, and step values
  4. Choose optimization criterion (Balance, Profit Factor, Sharpe Ratio)
  5. Run optimization
  6. Analyze results in the "Optimization Results" tab

Forward Testing

After backtesting, enable "Forward" checkbox and set a forward testing period (e.g., last 3 months) to validate robustness.

âš ī¸ Optimization Best Practices

  • Don't over-optimize (curve fitting)
  • Use walk-forward optimization
  • Test on out-of-sample data
  • Validate on different symbols/timeframes
  • Consider slippage and spread
  • Check maximum drawdown carefully
5

Live Trading Deployment

Pre-Launch Checklist

Monitoring & Maintenance

  • Daily: Check for errors in Expert logs and verify EA status
  • Daily: Review open positions and recent trade outcomes
  • Weekly: Analyze performance metrics and adjust if needed
  • Weekly: Review market conditions and parameter relevance
  • Monthly: Full performance review and optimization assessment

Warning Signs to Watch For

  • âš ī¸ Consecutive losses exceeding normal expectation
  • âš ī¸ Drawdown approaching maximum acceptable level
  • âš ī¸ EA not opening trades when signals should occur
  • âš ī¸ Orders rejected by broker frequently
  • âš ī¸ Significant change in market volatility/conditions
  • âš ī¸ Daily limits being triggered consistently

Technical Specifications

Platform Requirements

Platform MetaTrader 5
MQL Version 2.1
Build Build 2600+ recommended
Type Expert Advisor

Trading Specifications

Timeframes M1, M5, M15, M30, H1
Best Timeframe M15, H1
Symbols All major pairs, indices, commodities
Execution Mode OnTick

Account Requirements

Min Balance $1,000
Account Type Standard, ECN compatible
Hedging Not required
Leverage 1:100 or higher

Code Specifications

Lines of Code ~675
Custom Functions 15
Indicator Handles 1 (RSI)
Complexity Intermediate

Features Checklist

Broker & Server Compatibility

✅

Market Execution

Compatible with brokers using market execution models

✅

ECN/STP Accounts

Works with ECN and STP account types for optimal execution

✅

4/5 Digit Brokers

Auto-adapts to 4 or 5 digit broker quote formats

âš ī¸

VPS Recommended

For 24/7 operation, VPS hosting is recommended

âš ī¸

IMPORTANT RISK DISCLOSURE

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.

About This Expert Advisor

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.

User Responsibility

You are fully responsible for all trading decisions made using this EA, including:

  • Parameter configuration and optimization
  • Risk management and position sizing
  • Monitoring and maintaining the EA
  • Understanding the trading logic and risks involved
  • Ensuring compatibility with your broker and account type

No Warranties

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.

Recommendations

  • Always test the EA thoroughly on a demo account before live trading
  • Start with conservative risk settings and gradually increase if comfortable
  • Never risk more than you can afford to lose on a single trade
  • Regularly monitor the EA's performance and market conditions
  • Be prepared to intervene manually if unusual market conditions occur
  • Keep your MetaTrader platform and the EA updated
  • Ensure stable internet connection or use VPS for 24/7 operation