Strategy logic: if Monday closes below its open, a Buy position is opened at the start of Tuesday. If Monday closes above its open, a Sell position is opened. The trade is always taken against Monday's direction.
An optional ATR filter can be applied, and Stop Loss / Take Profit levels can be calculated based on current market volatility.
This EA was built as a research tool for testing calendar-based market effects and trading hypotheses.
ATR Filter
Example:
ATR = 100 points
MinCheckDayATR = 1.5
A trade will only be opened if Monday's range exceeds 150 points.
Position Settings
Example:
ATR = 100 points
kDailyATR = 0.5
The Stop Loss will be placed 50 points away from the entry price.
Example:
Stop Loss = 50 points
rrTP = 2.0
The Take Profit will be placed 100 points away from the entry price.
Close Position
Risk Calculation
When using % Risk from Start Balance, position size is calculated from 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. Risk remains constant throughout the test and does not change as the balance grows or declines.
If you prefer the traditional approach based on current balance or equity, the position sizing logic can be modified in the CalcLot() function.
The strategy was tested on EURUSD, XAUUSD and SP500 over the 2016–2026 period.
The baseline version did not show a persistent edge:
After adding the ATR filter and position management rules, the results changed:
Full research report, equity curves and test results: /en/blogs/post/770953
Source code is open — feel free to modify it, test it on other instruments and build upon it.
This EA was created to test trading hypotheses, not to trade real money without additional research and validation.
Long-Only Trend Breakout with Dynamic Risk Management
Breakout is a clean, automated MetaTrader 5 expert advisor designed to capture algorithmic breakout momentum in structural bull markets.
Quantum XAUUSD Silver Trader
Multi-indicator EA for Gold (XAUUSD) and Silver (XAGUSD). RSI, ADX, moving averages and volatility weighted into one signal, ATR stop loss, adaptive ATR trailing, daily and total drawdown protection. Updated October 2026 (v1.1). Open source code.
MSNR v5.31Plus AEU EA
MSNR v5.31Plus AEU EA is an Expert Advisor for MetaTrader 5 based on Malaysian SNR body levels, Smart Money reaction logic, liquidity sweep, MISS, engulfing confirmation, trendline confluence, QML, CRT and DOL target projection. The EA is designed for XAUUSD and works best on the M5 timeframe. It scans higher timeframes such as W1, D1, H4 and H1 to build important support and resistance zones, then waits for price action confirmation on the execution timeframe. Main features: - Malaysian SNR body-level detection. - Higher-timeframe support and resistance scan. - Liquidity sweep, MISS and engulfing confirmation. - Trendline, QML, breakout-retest and CRT logic. - Confluence cluster system. - Session filter for Asia, Europe and US trading hours. - Risk management by account percentage. - Partial close at selected R multiple. - Break-even and safety guard options. Recommended settings: Symbol: XAUUSD Timeframe: M5.
Institutional Ornstein-Uhlenbeck Equilibrium Matrix
An econometric price-space indicator that utilizes the Ornstein-Uhlenbeck stochastic process to mathematically estimate the asset's true driftless equilibrium and its speed of mean reversion.