Mean Reversion Scalper Updated
- エキスパート
-
Kamal Kanwal
EXPERT MQL4/MQL5 DEVELOPER | PYTHON & C++ | ALGORITHMIC TRADING
I build high-performance trading systems that work. With deep expertise across MQL4, MQL5, Python, and C++, I deliver clean, reliable, and production-ready code.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ - バージョン: 1.0
- アクティベーション: 5
Overview
Mean Reversion Scalper is a fully automated trading robot designed for the MetaTrader 5 platform. As the name suggests, this Expert Advisor operates on the mean reversion principle, identifying overextended price movements and capitalizing on the market's natural tendency to return to its average.
The core logic is built around the Bollinger Bands indicator, one of the most popular and effective tools for identifying overbought and oversold conditions in the forex market. Additionally, the EA incorporates the ADX (Average Directional Index) indicator to confirm sideways or ranging market conditions, helping to avoid false signals. The RSI (Relative Strength Index) is also used to pinpoint overbought and oversold zones. The EA essentially looks for confluence among all these indicators to generate high-probability entry signals.
This EA is now fully developed and ready for live market use. It is no longer in a testing phase — all core logic, risk management, and execution modules have been completed and refined.
How It Works
The EA monitors price action relative to the Bollinger Bands and executes trades when price extends beyond the bands, anticipating a reversal back toward the middle band (the moving average). The ADX indicator is used as a confirmation filter — trades are only considered when the ADX value is below a certain threshold, indicating a sideways or non-trending market, which is the ideal environment for mean reversion strategies. The RSI further refines entries by ensuring that price is in overbought (for sell signals) or oversold (for buy signals) territory. The EA only takes a trade when all three indicators align, providing a confluence of signals that increases the reliability of each entry.
Key concepts used in this EA:
| Concept | Description |
|---|---|
| Mean Reversion | The idea that price tends to return to its average over time. When price moves too far from the mean (either up or down), the EA expects a pullback. |
| Bollinger Bands | A volatility indicator consisting of a middle band (SMA) and two outer bands (standard deviations). The EA uses these bands to identify entry and exit points. |
| ADX Indicator | Used to confirm sideways or ranging market conditions. The EA only enters trades when the ADX is low, indicating a lack of strong trend, which increases the probability of a mean reversion. |
| RSI (Relative Strength Index) | Used to identify overbought and oversold zones. The EA looks for RSI values above 70 (overbought) for sell signals and below 30 (oversold) for buy signals. |
| Confluence of Indicators | The EA requires alignment of Bollinger Bands, ADX, and RSI before entering a trade, ensuring higher confidence and filtering out weak or false signals. |
| Scalping | The EA aims to capture small, quick profits from short-term price movements, making it suitable for active trading sessions. |
Risk Management Modes
The EA now includes three selectable risk modes, allowing you to choose the position sizing method that best fits your trading style and account size:
| Risk Mode | Description |
|---|---|
| Fixed Percentage of Equity | Each trade risks a fixed percentage of your account equity. The lot size is calculated automatically based on your stop loss distance and the specified risk percentage. |
| Fixed Lot Size | Each trade uses a fixed lot size that you define manually. Simple and straightforward for traders who prefer consistent position sizing. |
| Fixed Dollar Amount | Each trade risks a fixed dollar amount. The EA calculates the appropriate lot size so that if the stop loss is hit, the loss does not exceed the specified dollar value. |
You can switch between these modes easily from the EA settings, giving you full control over your risk exposure in different market conditions.
Settings & Parameters
The EA comes with a clean, user-friendly interface with essential parameters exposed for easy customization.
Visible Parameters:
| Parameter | Description |
|---|---|
| Risk Mode | Select the risk management mode: Fixed Percentage of Equity, Fixed Lot Size, or Fixed Dollar Amount. |
| Risk Percentage | Percentage of equity to risk per trade (used in Fixed Percentage mode). |
| Fixed Lot Size | Fixed lot size for each trade (used in Fixed Lot Size mode). |
| Fixed Dollar Amount | Fixed dollar amount to risk per trade (used in Fixed Dollar Amount mode). |
| Stop Loss (pips) | Distance from entry price to place stop loss. |
| Take Profit (pips) | Distance from entry price to place take profit. |
| Magic Number | Unique identifier for trades opened by this EA. |
Important Note: Several advanced parameters remain intentionally hidden in this version to simplify the user experience and reduce confusion. These hidden settings include internal filters, advanced risk management logic, and optimization variables that have been fine-tuned for live performance.
Supported Instruments
The EA has been primarily tested on the following instruments:
-
XAUUSD (Gold) – Breakout & momentum-based scalping
-
USDJPY – Mean reversion pullback strategy
Users are encouraged to test the EA on other currency pairs and assets as well.
Recommended Timeframe
Main Timeframe: M5 (5-Minute) – This is the primary timeframe for which the EA is optimized, offering a balance between signal accuracy and trade frequency.
Additional timeframes that can be used:
-
M1 (1-Minute) – For aggressive scalping
-
M15 (15-Minute) – For smoother signals with fewer false entries
The EA automatically adapts to the timeframe selected on the chart. For best results, it is recommended to start with the M5 timeframe and test others based on your trading style.
Installation & Usage
-
Download the EA file (.ex5 or .mq5)
-
Place it in the MQL5/Experts folder of your MetaTrader 5 installation
-
Restart MT5 or refresh the Navigator panel
-
Drag the EA onto a chart of your preferred instrument
-
Adjust the visible parameters as needed (including your preferred risk mode)
-
Enable Allow DLL imports (if required)
-
Ensure Allow automated trading is enabled in the MT5 toolbar
Development Status
This Expert Advisor is fully developed and production-ready.
All core functionality, trading logic, risk management, and execution modules have been completed and refined. The EA is now suitable for live trading, provided you use it responsibly and in accordance with your own risk tolerance.
What to expect:
-
✅ Full functionality working
-
✅ Complete trading logic implemented
-
✅ Advanced features fully integrated
-
✅ Three risk management modes included
-
✅ Ready for live market deployment
Recommended practices:
-
Start with a DEMO ACCOUNT to familiarize yourself with the EA's behavior
-
Begin with minimum lot sizes or the Fixed Dollar Amount risk mode
-
Monitor the EA closely during initial operation
-
Test on multiple instruments and timeframes before scaling up
Risk Disclosure & Disclaimer
Trading forex, commodities, and other financial instruments carries a high level of risk and may not be suitable for all investors. The use of automated trading systems like this EA does not eliminate these risks.
By using this Expert Advisor, you acknowledge and agree that:
-
Past performance does not guarantee future results
-
The EA may incur significant losses
-
The EA does not guarantee profits
-
Market conditions can change rapidly, affecting EA performance
-
Technical issues, connectivity problems, or broker-related factors can impact execution
Author's Liability
THE AUTHOR OF THIS EXPERT ADVISOR IS NOT RESPONSIBLE FOR ANY FINANCIAL LOSSES, DAMAGES, OR OTHER LIABILITIES INCURRED THROUGH THE USE OF THIS SOFTWARE.
Trading decisions are ultimately the responsibility of the user. The author provides this EA for educational and live trading purposes only. Users should exercise caution, conduct their own research, and consult with a qualified financial advisor before using this or any other trading system with real funds.
Feedback & Contributions
Your feedback is highly valuable! If you encounter:
-
Bugs or errors
-
Unexpected behavior
-
Suggestions for improvement
Please share your experience in the comments section. Community feedback plays a crucial role in helping refine and improve this EA for future versions.
Final Notes
-
PREMIUM EA – This is a paid product. No free version available.
-
FULLY DEVELOPED – Ready for live market use.
-
THREE RISK MODES – Fixed Percentage of Equity, Fixed Lot Size, Fixed Dollar Amount.
-
NO TIME LIMITS – Works indefinitely without expiration.
Happy Trading!
Remember: The best way to learn is to test, observe, and adapt. Good luck!
Quick Summary Card
| Feature | Details |
|---|---|
| EA Type | Mean Reversion Scalper |
| Indicators | Bollinger Bands, ADX, RSI |
| Trading Style | Scalping / Short-term |
| Risk Modes | Fixed % of Equity, Fixed Lot Size, Fixed Dollar Amount |
| Recommended Pairs | XAUUSD, USDJPY |
| Main Timeframe | M5 (5-Minute) |
| Other Timeframes | M1, M15 |
| Status | Fully Developed – Live Ready |
| Price | Paid |
| Support | Community feedback |
| Risk Warning | High risk – Use at your own discretion |
