Weekly Day Reversal Expert Advisor

Weekly Day Reversal Expert Advisor
Download ALL MT5 experts (1569)
YouTube Video Thumbnail



Similar MetaTrader Tools

Weekly Day Reversal Expert Advisor

Info

The Weekly Day Reversal Expert Advisor is a Expert Advisor for MetaTrader 5 that this expert advisor is designed to test day-of-week market patterns. It analyzes the direction of the previous trading day and can open positions either in the direction of continuation or in the direction of reversal on the following day.

Usage

This tool is typically used for automated trading on major forex pairs and gold.

Platform

This Expert Advisor works exclusively on MetaTrader 5 (both build 600+ and newer versions).

Setup

Place the downloaded file in MQL5/Experts folder via File ? Open Data Folder in MetaTrader 5.


How to Install and Use Weekly Day Reversal Expert Advisor

1. Installation: Open the "File" menu, select "Open Data Folder," navigate to MQL/Experts, paste your file, and restart the terminal.

2. Activation: Drag the EA from the Navigator onto a chart, ensure "Allow live trading" is checked in the Common tab, and verify the AutoTrading button is green.

3. Optimization: Right-click your chart, choose "Expert List," click "Properties" to adjust inputs, and save your preferred setup as a set file for future use.

4. Maintenance: Regularly check the "Experts" tab in the terminal window to monitor trade logs and potential execution errors.

Frequently Asked Questions

Q: Why is my EA not opening trades? A: Check the "AutoTrading" button, ensure "Allow live trading" is enabled, and verify your broker allows automated trading on your account type.

Q: Can I run multiple EAs on one chart? A: No, each chart can only host one active EA; however, you can open multiple charts for different currency pairs to run several EAs.

Q: What does the "smiley face" icon mean? A: A smiley face in the top-right corner of the chart indicates the EA is successfully running; a frowny face means it is disabled.

What this tool does

This Expert Advisor is designed to test day-of-week market patterns.

Typical Use Case

This Expert Advisor excels in automated trading and technical analysis on MetaTrader 5.

Compatible Platform & Setup

This Expert Advisor works on MetaTrader 5. Place the file in the MQL5/Experts folder and restart the terminal.

Description & Settings

Related: trade signals using reversal candlestick patterns in mql5 - another powerful expert for MetaTrader 5 traders.

This Expert Advisor is designed to test day-of-week market patterns. It analyzes the direction of the previous trading day and can open positions either in the direction of continuation or in the direction of reversal on the following day. Any combination of weekdays can be tested, allowing the evaluation of recurring market behavior and calendar-based effects.

Also recommended: trade signals based on 3 black crows/3 white soldiers reversal patterns with rsi confirmation - similar expert with strong performance on MetaTrader 5.


Positions can be closed at the end of the trading day to isolate the raw day-of-week effect, or managed using optional Stop Loss, Take Profit, and additional filters. This makes it possible to compare the underlying pattern with optimized trade management rules.

The EA was developed as a research framework for systematically testing day-of-week hypotheses across different markets, including Forex, commodities, and stock indices.

Parameters include:
- LotType: Position sizing method, which can be either fixed or based on a percentage of the account balance.
- Fixed Lot: Fixed trade volume.
- Risk: Risk per trade in percent, used when risk-based position sizing is enabled.
- Weekly Day: The day of the week whose direction is being evaluated.
- Direction: Whether to trade in the direction of continuation or reversal.
- ATR Filter: Enables or disables the volatility filter, which uses the Average True Range (ATR) to determine whether to open a trade.
- DailyATRPeriod: The period used to calculate the ATR on the daily timeframe.
- MinCheckDayATR: The minimum range required for a trade to be opened, expressed as a multiple of the ATR.

Position settings include:
- kDailyATR: Stop Loss distance expressed as a multiple of the daily ATR.
- rrTP: Risk/Reward ratio used to calculate Take Profit.
- CloseHour: The hour at which all open positions are force-closed.
- MagicNumber: A unique identifier used for the EA's positions.

Important notes:
- The EA analyzes daily candles regardless of the chart timeframe.
- Entry conditions are checked only when a new daily bar appears.
- ATR values are taken from the daily timeframe.
- Only one position per symbol can be open at a time.
- All positions are force-closed at the hour specified in CloseHour.

Risk calculation is based on the account balance captured when the EA starts, not from the current account balance. This behavior is intentional and was designed to make strategy testing more consistent.

The strategy was tested on EURUSD, XAUUSD, and SP500 over the 2016-2026 period. The results showed a profit factor of 1.31 after adding the ATR filter and position management rules.

This EA is intended for testing trading hypotheses and should not be used to trade real money without additional research and validation.

You may also like: exp stopreversal - excellent alternative for expert users on MetaTrader 5.

Source Code

#property copyright "RobotFX"
#property link "https://robotfx.org"
#property version   "1.1"
#include <Trade\Trade.mqh>
CTrade trade;
enum ENUM_LOT_TYPE {
   LOT_FIXED = 0,
   LOT_RISK  = 1
};
enum ENUM_ED {

.......

Leave your opinion, ask a question, share some knowledge

Limitations & Risk Warning

  • This tool is provided for educational and testing purposes only.
  • Past performance does not guarantee future results.
  • Trading involves substantial risk of loss. Use on a demo account first.
  • Results may vary depending on market conditions, broker, and settings.
  • We recommend thorough backtesting and forward testing before using with real funds.
© ROBOTFX Free educational tools by RobotFX. Use entirely at your own risk; we are not liable for any financial losses incurred.