Articles, Library comments - page 3

Check out the new article: Building a HalfTrend Channel Indicator in MQL5 . This article builds a HalfTrend Channel indicator in MQL5 that combines rolling price extremes with a HalfTrend baseline and a Wilder‑smoothed ATR(100) to form adaptive channel boundaries. It explains the trend‑state
Check out the new article: Backtesting Indicator Signals in MQL5 Using Buffers and Chart Objects . The EA evaluates indicator signals from buffers or dated chart objects on historical closed bars, keeping execution separate from account reports. It models virtual positions with user-defined entry
New article Price velocity measurement methods has been published: There are multiple different approaches to market research and analysis. The main ones are technical and fundamental. In technical analysis, traders collect, process and analyze numerical data and parameters related to the market
Check out the new article: Native Apache Cassandra Client in MQL5: Writing Trade and Market Data via the CQL Binary Protocol . This article shows how to build a native Cassandra CQL v4 client in MQL5 over a raw socket, without a REST or gRPC proxy. It details CQL frame encoding, correct handling of
Check out the new article: Neural Networks in Trading: Difference-Based Modeling of Market Microstructure (Difference Block) . The article presents a practical implementation of the EDCFlow framework's approaches, with a focus on the Multi-Scale Difference module. It demonstrates how sequential
CBitBuffer Class - Data Serialization in MQL5 : A class for reading and writing individual bits or bit sequences to and from a buffer. Author: amrali
MD Scalper – Trend / Reversal pending-stop scalper with trailing stop : Scalping Expert Advisor that reads a 3-period smoothed MA channel (High/Low), places pending stop orders either with the move (Trend) or behind it (Reversal), and trails the stop loss tick by tick. It includes broker-safe order
Tick-Only Spread Telemetry, Swap Decoder and 1-Lot Execution Cost Audit : Zero-DLL on-chart execution monitor tracking genuine tick-only Min/Avg/Max spread, Spread-to-ATR ratio, decoded broker swap modes, 3x rollover day, and 1.0-lot all-in cost. Author: Meng Chang Chen
Multi-Session Range Boxes and 14-Day ADR Exhaustion Monitor : Zero-DLL intraday session box indicator (Asia, London, New York) with 14-day Average Daily Range exhaustion tracking and dynamic ADR Upper/Lower target lines. Author: Meng Chang Chen
The Nikkei EA That Checks GBPJPY Before It Buys : JPN225 Yen Check is a free, fully open EA for the Nikkei 225 on M30. It buys when the Nikkei is holding near the top of its recent range, but only if it hasn't run too far ahead of GBPJPY. Everything is closed by 17:00 server time. Four conditions
ATR Volatility Risk and Position Size Calculator HUD : Zero-DLL on-chart HUD that calculates ATR-based Stop-Loss/Take-Profit distances and broker-normalized lot sizes across 3 configurable risk tiers. Author: Meng Chang Chen
Channel Breakout EA with ATR trailing stop and risk-percent sizing : Donchian channel breakout Expert Advisor with EMA trend filter, ATR stop, ATR trailing stop, break-even and position size from risk % of balance. Author: Bolot Aliev
InputRules: Rules Between Inputs and the Share of Passes They Reject : A library for MetaTrader 5 that declares rules between the inputs of an Expert Advisor once in the code. OnInit rejects a combination that breaks a rule, with the reason in the Journal; before an optimization starts, OnTesterInit
Prop Firm Equity Guard : Protects prop firm challenge and funded accounts: watches equity in real time and closes all trades before the daily loss or maximum loss limit is broken, with an optional profit target lock and a live progress panel. Author: Blessing Samuel Olasunkanmi
MT5 Trade Request Correlation and Historical Execution Evidence After a Lost Response Hello MetaQuotes team and MQL5 community, I am researching the reliability of trade-execution reconciliation in an application integrating with MetaTrader 5. The specific problem concerns a trade request submitted
  Experts: XANDER Grid XAUUSD  (47   1 2 3 4 5)
XANDER Grid XAUUSD : Bidirectional grid EA for Gold (XAUUSD). Ideal for ProCent accounts. Includes Daily Profit Target and Max Drawdown protection. Author: Cristhian Alexander Gaibor Cuasquer
Check out the new article: Auditing an Expert Advisor From Its Trade History (Part 1): Rebuilding Positions From Deals . This article introduces TradeAudit, an MQL5 include library that rebuilds closed trades from raw deal history to produce one consistent record per trade. It handles partial
Demetra Symbol Spec Sheet : Puts the contract specification of the chart symbol on one sheet, including the money value of one point and the margin for one lot. Author: Francesca Draoli
Check out the new article: Aggregating Economic Calendar Events into a Structured MQL5 Data Feed . The package builds a news feed from CalendarValueHistory(): it filters by impact and currency, maps events to a symbol universe, and stores them in a time‑sorted array with minutes to event. You can
Check out the new article: Building a PDF Creation Library in MQL5 (Part 4): Lines Boxes and Color . The article turns drawing primitives into PDF output: one cm flip installs a top‑left, y‑down system, while CPdfPage writes m/l/c/h/re, S/f/B, W n, and transforms from calls on CPdfSurface. PdfColor
Structural Swing Migration BUY : Structural Swing Migration BUY is an educational Expert Advisor for MetaTrader 5 that opens BUY positions when confirmed swing highs and swing lows move upward together. It evaluates closed M15 candles and combines structural confirmation with a volatility threshold
Check out the new article: Automating Trading Strategies in MQL5 (Part 54): Consolidation Breakout and Retest Entry Model . We implement an MQL5 program that validates consolidations by counting edge switches, height capped to the typical candle, and net drift, then requires a buffered close beyond
Check out the new article: Multi-Timeframe Bar Aggregator with Conflict Detection in MQL5 . We implement a multi‑timeframe aggregator that prevents mixing bars from different moments. It validates grid alignment, recency to the forming base bar, and closed‑bar end times, and returns either a
AesHmac: AES-256 encryption with tamper check and password keys for MQL4 : One include file that encrypts texts and bytes so only a program with the same key can read them. A wrong key or a changed message is refused instead of read as garbage, keys can come from a password, and the code is checked
AesHmac: AES-256 encryption with tamper check and password keys for MQL5 : One include file that encrypts texts and bytes so only a program with the same key can read them. A wrong key or a changed message is refused instead of read as garbage, keys can come from a password, and the code is checked
History Gaps: find missing bars before you backtest : Checks the chart's history against the symbol's trading sessions and separates real holes from holiday short sessions and days without bars. Marks the holes on the chart, shows coverage and the largest hole, warns when the history stops short of
Check out the new article: Neural Networks in Trading: Difference-Based Modeling of Market Microstructure (EDCFlow) . In the article, we explore the EDCFlow framework, which offers a new approach to analyzing market microstructure. It combines state correlation with a difference map, making it
TesterSafeLots - risk lot size that stays correct in the MT4 Strategy Tester : Risk-based lot size for MQL4 that does not depend on MODE_TICKVALUE in the Strategy Tester, so backtests of USDJPY, USDCHF or USDCAD on a USD account risk what the input says. Includes a test EA that measures the error
Prop Firm Equity Guard daily loss and max drawdown protector : Prop Firm Equity Guard protects prop-firm challenges and funded accounts. It monitors live equity against your daily loss and max drawdown limits, then closes all positions, deletes pending orders and locks trading before the firm's
Trade History in R : Shows the closed trades of the account in R (net profit divided by the money at risk at entry): expectancy, win rate, drawdown in R, losing streak, per-symbol summary and CSV export. Author: Andrii Lysenko