When an Expert Advisor moves from the MT5 Strategy Tester to a live account, the first discrepancy you notice is rarely the indicator math. It is the fill price. Between calling OrderSend and receiving the broker's confirmation, network transit and s...
A backtest bias is not a philosophical problem. Each one has a check you can run in an
afternoon. Here are eight biases with the specific test that falsifies or clears each.
!Eight backtest biases: mechanism, symptom and detectionhttps://guetaquant....
Stop = Price ± k × ATR14 fits in one line. The problem was never the formula — it is
choosing k, and knowing what the number does and does not mean.
Educational content: methodology only, no signals, no return claims.
By Mahdi Goodarzi g.dev/mahdig...
We pre-registered 13 simple strategies, ran them through four fixed gates, and published
the result even when it was unflattering: 13 → 0. Then we repeated it in four more
markets. 65 pre-registered tests, zero survivors in all five markets.
This is...
Your backtest shows a beautiful equity curve: steady slope, contained drawdown, high Sharpe. Before connecting it to real capital, ask the uncomfortable question: is that curve real, or the product of biases the market will bill you for later?
This ...
A position size in MetaTrader 5 needs two independent checks: how much you would lose if price closed at your stop, and how much margin opening it requires. A volume can pass one and fail the other. OrderCalcProfit and OrderCalcMargin give those esti...
!Illustration of uncertainty in executionhttps://guetaquant.com/images/riesgo-ejecucion-mt5-2026.webp
The smallest quoted point and the minimum price change used as a trading tick can differ. If a program divides an exit distance by SYMBOLPOINT but ...
Two questions dominate Colombian search around Deriv: does it accept Colombian pesos COP? and what are synthetic indices, mathematically? This post answers both with verifiable mechanics — no signals, no account handling, no return claims.
!Guía ...
Two stocks can rise together for years and still be untradeable as a pair. Correlation measures co-movement; pairs trading needs cointegration — a stationary, mean-reverting spread. This post builds the standard test pipeline in Python and shows wher...
When algorithmic traders design risk models, they rigorously calculate Kelly fractions, Value at Risk VaR, and dynamic ATR trailing stops. Yet, one catastrophic risk is almost universally ignored in retail algorithm architecture: counterparty custody...
Most quantitative trading models fail when transitioned from historical backtest to live execution not because the mathematical alpha was flawed, but because the backtesting engine assumed frictionless, zero-latency execution.
In a simulation, your ...
Your backtest equity curve is merely one historical trajectory out of millions of equally probable alternatives.
The total profit of your trading system is invariant to order: 100 closed trades will yield the exact same ending dollar return whether ...
Static stop-losses break across volatility regimes. A fixed 20-pip stop that is conservative on EUR/USD during Asia session is noise-level on XAU/USD during New York open. In cTrader Automate C#, the robust pattern is a dedicated risk engine: signal ...
Almost all literature on algorithmic position sizing stops at the standard formula:
lots = balance riskpercent / stopdistance tickvalueperlot
That part is straightforward. The subtle failure does not live in the equation itself: it hides in the ...
Why Perfect Backtests Fail: Walk-Forward Optimization and Deflated Sharpe in Python
Every quantitative trader and algorithmic developer knows this pattern: you design an intraday or swing strategy, optimize parameters in MetaTrader, TradingView, or...
Algorithmic Risk Management in MT5: Dynamic Position Sizing & MQL5 Architecture
Most retail trading failures stem from static lot sizing. Trading a fixed 1.0 lot on EUR/USD creates vastly different dollar drawdowns compared to 1.0 lot on Gold XAU/U...