Trading Systems Lab

Practical notes on EA building, MT5 testing, risk control, and market timing. Less hype, more systems.

Tip: Use short keywords like “London”, “ATR”, “spread”, “JPY”.

What Is the Best Timeframe for an EA? What Our Backtests Say

There is no best timeframe for EA trading. We tested one strategy on M1, M5, M15 and M30 and found a peak at M15. Here is why the others lost, and how to find yours.

EA timeframe M15 Spread Strategy Tester MT5 Backtesting techniques
2026/11/22

Tokyo Fix and Gotobi Days: How Our EAs Trade Them

The Tokyo fix at 09:55 JST moves the yen pairs on gotobi days (the 5th, 10th, 15th, 20th and 25th) and at month-end. What we measured, the rule our EAs trade, and their record.

tokyo fix gotobi USDJPY EURJPY GBPJPY AUDJPY JPY fix flows EA development
2026/11/12

Running the MT5 Strategy Tester From the Command Line

Run MT5 backtests unattended with a [Tester] config file: the settings we use, and four ways the tester silently ran the wrong test.

Strategy Tester Command Line Automation Python MT5 Backtesting techniques
2026/11/12

Forward Testing in MT5: How We Test Out of Sample

What MT5's forward setting does, why we run out-of-sample windows as separate tests, and the EAs those windows rejected.

Forward Testing Out of Sample Walk Forward Strategy Tester MT5 Backtesting techniques
2026/11/12

Every Tick vs Real Ticks in MT5: Which Mode to Use

The difference between Every tick and Every tick based on real ticks in the MT5 Strategy Tester, what it changed in our own backtests, and when it matters.

Every Tick Real Ticks Strategy Tester Spread MT5 Backtesting techniques
2026/11/12

MT5 History Quality: What the Percentage in Your Report Means

What the History Quality line in an MT5 Strategy Tester report measures, why ours reads 8% real ticks, and how much generated ticks changed our results.

MT5 History Quality Real Ticks Strategy Tester MT5 Backtesting techniques
2026/11/12

28 Studies, One Survivor

Since September we have written up 28 studies, and exactly one mechanism has held up. Here is what failed, why most of it failed the same way, and what we now do with strategies that work for a while but cannot be proven.

research log regime forward testing Tokyo fix stop rules backtesting MT5 EA development
2026/11/05
Three Ideas We Can't Prove Yet, So We're Watching Them

Three Ideas We Can't Prove Yet, So We're Watching Them

Three ideas looked good in our data, but only because we went looking. So we froze the rules, wrote down in advance what would count as success or failure, and are now watching them on data that did not exist when the rules were written. Why that takes years, and what we will publish either way.

forward testing out-of-sample backtesting FOMC US100 EURGBP mean reversion MT5 EA development
2026/10/20
How EA Sellers Make Money (and Why Most EAs Don't)

How EA Sellers Make Money (and Why Most EAs Don't)

Most of the money in Expert Advisors is made from selling them, not from running them. Six business models, what each one needs from the EA, and what our own research looks like when nobody is selling anything: one edge that held, and twenty published rejections.

EA sellers broker rebates martingale grid trading copy trading backtesting track record MT5 EA development
2026/10/19

Four Techniques Tested, One Survived: the Tokyo Fix

We promised to test four techniques from our map and file the results, pass or fail. Three failed. One, the flow after the 09:55 Tokyo fix, held in every year since 2019, became an engine, and is now running live.

tokyo fix gotobi USDJPY EURJPY backtesting calendar effects momentum liquidity sweeps MT5 EA development
2026/09/11

A Map of FX Techniques, and Where Ours Have Been Tested

Every family of FX technique we know of, in one table, with what our own backtests say about each: proven, rejected, or not yet tested. Two patterns stand out, and they decide what we test next.

strategy backtesting mean reversion trend following breakout sessions MT5 EA development
2026/09/10

Our Daily Signals Are Contrarian. Here Is the Study.

We rebuilt our three D1 signal analyzers over ten years and ten pairs and measured what happened next. The readings are anti-predictive: the stronger the signal, the worse the forward return. What that means for how to read the Signals page.

signals backtesting mean reversion D1 forward returns MT5
2026/09/09

Setting Drawdown Limits for Expert Advisors

Learn how to set maximum drawdown limits for Expert Advisors (EAs) to manage risk in automated trading strategies effectively.

automated trading Expert Advisors drawdown limits risk management trading strategies techniques
2026/03/13

Writing EAs That Are Easy to Test, Optimize, and Trust

When it comes to the world of Forex trading, Expert Advisors (EAs) have revolutionized the way we approach the market. However, the true power of an EA lies not just in its ability to execute trades but in the robustness of its design, particularly in how easily it can be tested, optimized, and ultimately trusted. In this deep dive, we’re going to explore the essentials of creating EAs that stand the test of time and market fluctuations, focusing on an effective EA testing framework, backtesting design, parameter optimization, and EA validation.

EA Testing Framework techniques
2026/03/12

Risk Management in Code: Stop Thinking, Start Programming

Learn how to implement real EA risk management in MT5. Discover practical techniques for position sizing, drawdown control, and risk filters that protect automated trading systems in live markets.

EA Risk Management Position Sizing Drawdown Control Risk Filters MT5 Risk Management techniques
2026/03/09

Building Multi-Symbol and Multi-Timeframe EAs in MT5

Learn how to build scalable multi-symbol and multi-timeframe EAs in MT5. Discover best practices for symbol handling, execution safety, synchronization, and performance optimization for production-ready trading systems.

MT5 Multi-Symbol EA Multi Timeframe Trading Symbol Handling EA Scalability MT5 Automation techniques
2026/03/02
Price Action vs Indicators: A False Dichotomy

Price Action vs Indicators: A False Dichotomy

Price action and indicators are often framed as opposites, but that debate misses the point. Learn how structure, market behavior, and indicator context work together to build clearer, more robust trading systems and EAs.

price action trading indicator context market structure technical indicators market behavior indicators
2026/02/27
Fixed Lot vs Risk-Based Lot: What Works Long Term

Fixed Lot vs Risk-Based Lot: What Works Long Term

Choosing the right lot sizing strategy is the difference between a blown account and a professional equity curve. Compare fixed lot vs percent risk for long-term EA success.

Lot Sizing Strategy Fixed Lot Percent Risk Money Management Forex Position Sizing techniques
2026/02/26
Why Most EAs Fail in Production (and How to Code Around It)

Why Most EAs Fail in Production (and How to Code Around It)

Most Expert Advisors fail not in backtests, but in live trading. Learn the real reasons EAs fail in production, from execution risk to hidden assumptions, and how to code MT5 EAs that survive real market conditions.

EA failure reasons Live Trading Issues Execution Risk EA Reliability MT5 EA Development techniques
2026/02/23
Why Combining Too Many Indicators Makes EAs Worse

Why Combining Too Many Indicators Makes EAs Worse

Adding more indicators often feels safer, but it usually makes Expert Advisors worse. Learn why indicator overload leads to signal conflict, overfitting, and fragile performance, and how simpler logic creates more robust EAs.

indicator overload signal conflict overfitting trading indicators EA development indicators
2026/02/20
Why Winning Streaks Are More Dangerous Than Losing Ones

Why Winning Streaks Are More Dangerous Than Losing Ones

Discover why winning streaks in trading can be more lethal to your account than losses. Master trading psychology, avoid overconfidence, and protect your capital.

Trading Psychology Overconfidence Risk Escalation Capital Protection Forex Winning Streaks techniques
2026/02/18
How to Optimize an MT5 EA Without Overfitting

How to Optimize an MT5 EA Without Overfitting

How to choose parameter ranges, why flat plateaus beat sharp peaks, and how forward testing in the Strategy Tester shows whether an optimized EA works on data it has not seen.

Parameter Optimization Curve Fitting Walk Forward Analysis EA Robustness MT5 Optimization techniques
2026/02/17
From Indicator to Execution: Turning Ideas Into MT5 EAs

From Indicator to Execution: Turning Ideas Into MT5 EAs

Learn the real EA development process from indicator idea to live MT5 execution. A practical guide covering indicator logic, signal generation, risk handling, and order execution for building robust Expert Advisors.

EA development process indicator logic signal generation order execution MT5 EA development techniques
2026/02/16
Trend vs Range: Detecting Market Regime in an EA

Trend vs Range: Detecting Market Regime in an EA

Why a single indicator fails as a regime filter, why range detection is mostly about volatility, and how an EA can tell trending from ranging markets before it trades.

Market Regime Detection Trend Filter Range Filter Volatility Technical Indicators indicators
2026/02/13
The Psychology Behind Overtrading (and How to Stop It)

The Psychology Behind Overtrading (and How to Stop It)

Overtrading is one of the fastest ways to destroy a trading account. Learn the psychology behind overtrading, why traders and EAs fall into it, and how discipline and structure stop it.

Overtrading Psychology Trade Frequency Emotional Control Trading Discipline Forex Risk Management techniques
2026/02/12
TrendEA.mq5 + Trend.mqh Explained: Line-by-Line Walkthrough (MT5) Part 2

TrendEA.mq5 + Trend.mqh Explained: Line-by-Line Walkthrough (MT5) Part 2

A practical, line-by-line walkthrough of a production-ready MT5 Trend EA architecture: a pure strategy module (Trend.mqh) and an execution engine (TrendEA.mq5). Learn how indicator logic becomes signals, how signals become orders, and how safety gates keep EAs reliable in live trading.

MQL5 Code Walkthrough Trend EA MT5 EA Architecture EA Execution Engine Maintainable EA techniques
2026/02/11
TrendEA.mq5 + Trend.mqh Explained: Line-by-Line Walkthrough (MT5) Part 1

TrendEA.mq5 + Trend.mqh Explained: Line-by-Line Walkthrough (MT5) Part 1

A practical, line-by-line walkthrough of a production-ready MT5 Trend EA architecture: a pure strategy module (Trend.mqh) and an execution engine (TrendEA.mq5). Learn how indicator logic becomes signals, how signals become orders, and how safety gates keep EAs reliable in live trading.

MQL5 Code Walkthrough Trend EA MT5 EA Architecture EA Execution Engine Maintainable EA techniques
2026/02/11
MT5 Strategy Tester Report: Every Field Explained

MT5 Strategy Tester Report: Every Field Explained

What each field in the MetaTrader 5 Strategy Tester report means, from profit factor and recovery factor to balance vs equity drawdown and Z-score, and the three to read first.

MT5 Backtest Profit Factor Drawdown Expert Advisor Strategy Tester techniques
2026/02/10
Designing EA Logic That Survives Market Regime Changes

Designing EA Logic That Survives Market Regime Changes

Markets change faster than most EAs. Learn how to design EA trading logic that survives market regime changes using adaptive structure, regime filters, and robustness-first thinking instead of brittle optimization.

EA trading logic market regimes adaptive EA system robustness MT5 EA development techniques
2026/02/09
Bollinger Bands as a Volatility Tool, Not a Signal

Bollinger Bands as a Volatility Tool, Not a Signal

Bollinger Bands are widely misunderstood as buy/sell signals. Learn how professional traders and EA developers use Bollinger Bands correctly as a volatility and market regime tool for range detection, squeezes, and expansion phases.

Bollinger Bands Volatility Expansion Bollinger Squeeze Range Detection Technical Indicators indicators
2026/02/06
Risk of Ruin: Why Most Traders Blow Up Eventually

Risk of Ruin: Why Most Traders Blow Up Eventually

Risk of ruin explains why many traders and EAs fail over time. Learn how probability, account survival, and loss streaks determine whether your trading system lives or dies.

Risk of Ruin Probability Trading Account Survival Loss Streaks Forex Risk Management techniques
2026/02/05
EA .set Files Explained: How to Tune a Scalp Strategy Safely

EA .set Files Explained: How to Tune a Scalp Strategy Safely

Learn how to adjust a MetaTrader EA .set file for a scalping strategy. This guide explains ADX, ATR, filters, risk controls, and why systematic backtesting is essential for maximizing EA performance.

EA Set File MT5 Scalping Strategy ADX ATR Trading EA Parameters EA Backtesting Guide techniques
2026/02/03
RangeRevert EA Explained: Mean Reversion With ATR + ADX Gates (MT5)

RangeRevert EA Explained: Mean Reversion With ATR + ADX Gates (MT5)

A developer-friendly breakdown of the RangeRevert MT5 EA: what it is, how the MQ5 engine and MQH strategy module work, key inputs, and a real .set example you can copy and tune.

RangeRevert EA MT5 mean reversion ATR filter ADX range filter Bollinger reclaim techniques
2026/02/02
How Professional Traders Think About Drawdowns

How Professional Traders Think About Drawdowns

Drawdown management is the difference between surviving and quitting. Learn how professional and EA traders think about equity curves, risk tolerance, and recovery strategies.

Drawdown Management Equity Curves Risk Tolerance Recovery Strategy Forex Risk Management techniques
2026/01/29
MT5 Modeling Quality: Why 99% Can Still Mislead

MT5 Modeling Quality: Why 99% Can Still Mislead

What the modeling quality percentage in the MT5 Strategy Tester measures, why 99% does not make a backtest realistic, and when real-tick data is worth it.

MT5 modeling quality tick data real ticks backtest precision MT5 backtesting techniques
2026/01/27
7 MQL5 EA Coding Mistakes That Quietly Kill Performance

7 MQL5 EA Coding Mistakes That Quietly Kill Performance

Seven MQL5 mistakes that pass a backtest and fail live: trusting the current bar, mixing risk with signal logic, ignoring execution costs, no trade-frequency cap, and more.

EA programming mistakes MQL5 bugs EA optimization trading system errors MT5 EA development techniques
2026/01/26
Position Sizing in Forex: The Only Formula That Actually Matters

Position Sizing in Forex: The Only Formula That Actually Matters

Position sizing is the true core of profitable forex and EA trading. Learn how lot calculation, account risk, and trade sizing determine long-term performance more than any entry strategy.

Position Sizing Lot Calculation Account Risk Trade Sizing Forex Risk Management techniques
2026/01/22
How to Backtest an EA in MetaTrader 5, Step by Step

How to Backtest an EA in MetaTrader 5, Step by Step

Seven steps to backtest an Expert Advisor in the MT5 Strategy Tester without fooling yourself: data quality, modeling mode, real spreads, optimization limits and forward testing.

MT5 Backtesting Backtest Accuracy Modeling Quality Historical Data MT5 EA Optimization techniques
2026/01/20
Clean MQL5 Code: Writing EAs You Can Maintain for Years

Clean MQL5 Code: Writing EAs You Can Maintain for Years

Learn how professional EA developers write clean, maintainable MQL5 code that survives years of refactoring, optimization, and live trading. Practical patterns, real EA examples, and refactoring mindset for serious algo traders.

MQL5 Programming Clean Code Maintainable EA EA Refactoring MT5 EA Development techniques
2026/01/19
Why Risk Management Matters More Than Your Entry Strategy

Why Risk Management Matters More Than Your Entry Strategy

Learn why trading risk management beats perfect entries. Practical guidance for EA traders on position sizing, drawdown control, and risk vs reward to achieve consistent performance.

trading risk management position sizing drawdown control risk vs reward EA trading techniques
2026/01/16