MT4 Version: Relative Strength Index(RSI) Strategy EA MT4
MT5 Version: Relative Strength Index(RSI) Strategy EA MT5
Complete User Documentation — MT4 & MT5
1. OVERVIEW
The Relative Strength Index (RSI) Strategy EA leverages the RSI indicator to automate trading decisions, identifying potential buy and sell opportunities based on market conditions. This EA is designed to enhance trading efficiency by executing trades based on predefined RSI strategies, thus solving the problem of emotional trading and manual execution delays.
Who Should Use It: This EA is ideal for retail forex traders seeking to automate their trading strategies, especially those familiar with RSI and looking for consistent performance.
Main Benefit: Experience a new level of trading automation that helps you capitalize on market movements without the emotional stress of manual trading.
2. INPUT PARAMETERS & SETTINGS
This product shares a common set of general input settings with all Expert Advisor products in this series. The following sections are covered in the common guide: General Settings (lot size, SL/TP modes, magic number, trade direction), Breakeven Settings, Trailing Stop Settings, News Filter Settings and News Action Settings, Martingale Settings, Grid Settings, Hedge Settings, Risk Settings, Position Sizing, Alert Settings, Display Settings, Trade Time Settings, Trade Days Settings, Safeguard Settings, and Trend Filter Settings (MA Filter, ADX Filter, RSI Filter, MACD Filter, Parabolic SAR Filter — each with their own strategy options). All of these are fully documented in the Common General Input Settings for Expert Advisors. The sections below cover only the product-specific inputs unique to this product.
Rsi Settings
This section controls the settings specific to the RSI indicator's configuration, impacting how trades are generated based on RSI values.
| Setting Name | Type | Default Value | Description | Example |
|---|---|---|---|---|
| Rsi Timeframe | ENUM | PERIOD_CURRENT | Specifies the timeframe for the RSI calculation, allowing traders to adapt the EA to different market conditions. | PERIOD_H1 - Use this for hourly trading strategies. |
| Rsi Period | int | 8 | Determines the number of periods used in the RSI calculation; adjusting this can change the sensitivity of the indicator. | 14 - A common choice for more stable signals. |
| Rsi Applied Price | ENUM | PRICE_CLOSE | Defines which price type is used for the RSI calculation, impacting the signals generated by the EA. | PRICE_OPEN - Useful for strategies focused on opening price movements. |
| Calculation Mode (Useful for backtesting) | ENUM | AUTO | Selects how RSI levels are calculated, which is crucial for accurate backtesting results. | MANUAL - Use this for precise control over input values during backtesting. |
| Rsi Upper Level | double | 60 | Sets the upper threshold for the RSI, indicating overbought conditions where traders might consider selling. | 70 - A common upper level for identifying overbought conditions. |
| Rsi Lower Level | double | 40 | Defines the lower threshold for the RSI, signaling oversold conditions where buying may be favorable. | 30 - Often used to identify oversold conditions. |
| Rsi Entry Strategy | ENUM | ENTRY_STRATEGY1 | See options explained below. | ENTRY_STRATEGY3 - Use when you want to buy as RSI enters overbought. |
| Rsi Exit Strategy | ENUM | EXIT_STRATEGY0 | See options explained below. | EXIT_STRATEGY1 - Use when you want to exit as RSI enters overbought. |
Rsi Entry Strategy — Options Explained
This section outlines the various strategies for entering trades based on RSI signals.
ENTRY_STRATEGY0: Disables the entry strategy, meaning no trades will be initiated based on RSI signals.
ENTRY_STRATEGY1: Initiates a buy when the RSI enters oversold territory (below 30) and a sell when it exits oversold territory, indicating potential reversals.
ENTRY_STRATEGY2: Triggers a buy when the RSI exits oversold and a sell when it exits overbought, capturing momentum shifts.
ENTRY_STRATEGY3: Buys when the RSI enters overbought and sells when it exits, focusing on trend continuation.
ENTRY_STRATEGY4: Buys when the RSI is below the lower level and sells when above the upper level, identifying extreme conditions.
ENTRY_STRATEGY5: Buys when the RSI crosses above 50 and sells when it crosses below, focusing on strength shifts.
ENTRY_STRATEGY6: Buys when the RSI is above the upper level and sells when below the lower level, indicating strong trends.
ENTRY_STRATEGY7: Buys on bullish divergence and sells on bearish divergence, leveraging market psychology.
Rsi Exit Strategy — Options Explained
This section details the strategies for exiting trades based on RSI signals.
EXIT_STRATEGY0: Disables the exit strategy, meaning positions will remain open until manually closed or stopped.
EXIT_STRATEGY1: Closes buy positions when the RSI enters overbought and sell positions when it exits, capturing profits at potential reversal points.
EXIT_STRATEGY2: Exits buy positions when the RSI exits overbought and sell positions when it exits oversold, focusing on momentum shifts.
EXIT_STRATEGY3: Closes buy positions when the RSI enters oversold and sell positions when it exits, indicating potential reversals.
EXIT_STRATEGY4: Exits buy positions when the RSI exceeds the upper level and sell positions when it drops below the lower level, focusing on extreme conditions.
EXIT_STRATEGY5: Closes buy positions when the RSI crosses below 50 and sell positions when it crosses above, indicating strength shifts.
EXIT_STRATEGY6: Exits buy positions when the RSI is below the lower level and sell positions when above the upper level, indicating weak trends.
EXIT_STRATEGY7: Closes buy positions on bearish divergence and sell positions on bullish divergence, utilizing market psychology.
Rsi Divergence Settings(only For Strategy 7)
This section configures settings specifically for divergence strategies, enhancing the EA's ability to identify potential trade opportunities.
| Setting Name | Type | Default Value | Description | Example |
|---|---|---|---|---|
| Divergence Lookback Bars | int | 50 | Defines the number of bars to look back for divergence analysis, affecting the detection of potential reversal points. | 30 - Use this for a shorter analysis period to capture quicker signals. |
| Minimum Bars distance between divergence[0: disable] | int | 20 | Sets the minimum distance in bars for divergence detection, helping to filter out noise in the signals. | 10 - A tighter setting for more frequent divergence signals. |
| Maximum Bars distance between divergence[0: disable] | int | 200 | Defines the maximum distance in bars for divergence detection, allowing for broader analysis. | 150 - Use this for a more extensive analysis period. |
| Min price gap in pips[0: disable] | int | 15 | Specifies the minimum price gap in pips for divergence detection, ensuring significant price movements are analyzed. | 20 - A higher threshold to filter out minor fluctuations. |
| RSI Color | color | clrBlue | Sets the color for the RSI indicator on the chart, allowing for visual customization to enhance clarity. | clrRed - Use this for better visibility against your chart background. |
3. HOW IT WORKS
Core Calculation & Logic
This Expert Advisor utilizes the Relative Strength Index (RSI) to identify overbought and oversold market conditions. It calculates the RSI values to determine potential reversal points for trading.
The technical basis relies on the RSI's ability to measure the speed and change of price movements, allowing traders to make informed decisions based on market momentum.
Entry Strategies Explained
RSI Overbought/Oversold Strategy
BUY Signal: Triggered when the RSI crosses below a specified oversold level (e.g., 30).
SELL Signal: Activated when the RSI crosses above a specified overbought level (e.g., 70).
Best For: Trending markets that exhibit strong price movements, ideal for capturing reversals.
Step-by-Step Workflow
Step 1: Configure Settings Adjust the EA settings according to your trading preferences and risk tolerance.
Step 2: Attach to Chart Apply the EA to your desired trading chart in MetaTrader.
Step 3: Enable Auto-Trading Ensure that auto-trading is enabled in your MetaTrader platform for the EA to function.
Step 4: Monitor Performance Keep an eye on the EA’s performance and make adjustments as necessary.
Step 5: Review Logs If enabled, review logs to analyze trade decisions and outcomes.
4. RISK MANAGEMENT FEATURES
This section outlines the risk management features available in the RSI Strategy EA to help protect your trading capital.
| Feature | Description |
|---|---|
| Lot Size | Defines the size of each trading lot, allowing traders to manage their exposure in the market. |
| Stoploss and Takeprofit | Configurable stoploss and takeprofit settings to automatically close trades at predefined levels, minimizing losses and securing profits. |
| Risk Reward Ratio | Sets a target risk-reward ratio for trades, helping to maintain a favorable balance between potential profits and losses. |
| Magic Number | A unique identifier for trades made by the EA, allowing for better management of multiple strategies on the same account. |
Quick Start Guide
Follow these steps to get started in under 5 minutes:
- Download the EA: Obtain the RSI Strategy EA from the MQL5 marketplace.
- Install the EA: Place the EA file in the 'Experts' folder of your MetaTrader installation.
- Restart MetaTrader: Close and reopen the platform to recognize the new EA.
- Open a Chart: Select the currency pair and time frame you wish to trade.
- Attach the EA: Drag the RSI Strategy EA onto the chart to apply it.
- Set Parameters: Adjust the input parameters according to your trading strategy.
- Enable Auto-Trading: Ensure auto-trading is turned on in your MetaTrader settings.
- Monitor Trades: Watch how the EA performs and adjust settings as necessary.
You may also be interested in these related products:
- Relative Strength Index(RSI) Multicurrency Scanner MT4
- Relative Strength Index(RSI) Multicurrency Scanner MT5
- Relative Strength Index(RSI) Strategy EA MT5
- Relative Strength Index(RSI) Strategy Multicurrency EA MT4
- Relative Strength Index(RSI) Strategy Multicurrency EA MT5
Installation Guide for MQL Products | Updating Purchased MQL Products on MT4/MT5 | General Troubleshooting Guide | Backtest and Set Files
Check all my products: https://www.mql5.com/en/users/biswait50/seller
Contact me for support: https://www.mql5.com/en/users/biswait50


