Articles, Library comments - page 17

Check out the new article: A Symbol Metadata and Trading Hours Cache in MQL5: Eliminating Redundant SymbolInfo Calls in Multi-Symbol EAs . This article presents CSymbolMetaCache, an MQL5 layer that preloads contract specifications and trading-session schedules for monitored symbols at EA startup and
Check out the new article: Building a Two-Pole Momentum Oscillator in MQL5 . We build a Two‑Pole Momentum Oscillator in MQL5 that measures deviation from a 25‑period SMA, normalizes it by its mean and standard deviation, and smooths the result with two EMA‑style passes. The code defines inputs
Check out the new article: Weibull Reliability Analysis for Strategy Lifespan: Estimating When an EA Is Likely to "Fail" . We implement a native Weibull maximum-likelihood fit in MQL5 and use it to model strategy wear-out from trade history. Failures are defined as the rolling profit factor dropping
Check out the new article: Building a FIFO-Compliant Position Management Layer for NFA-Regulated MQL5 Accounts . This article shows how to make EA close operations comply with broker-enforced FIFO (ACCOUNT FIFO CLOSE) on hedging accounts, so naive exits stop failing. It introduces CFifoPositionQueue
Check out the new article: Uncertainty as a Model (Part 6): Multiple Regression and Diagnostics . A practical introduction to multiple regression with deterministic factors for financial time series. Topics covered include the formulation and matrix form of ordinary least squares (OLS), residual
Check out the new article: How to Implement R/S Analysis and the Hurst Indicator in MQL5 . The Hurst exponent indicator for MQL5 is based on R/S analysis using OLS regression in log-log space. The theoretical basis is the findings of Gatheral–Jaisson–Rosenbaum (2014), according to which volatility
Check out the new article: Property-Based Testing for Trading Rules in MQL5 (Part 1): Generate Market Scenarios, Test Invariants, Find Edge Cases . Property-based tests exercise a sizing rule across thousands of generated scenarios instead of a few hand-picked cases. A deterministic MQL5 runner
Check out the new article: Neural Networks in Practice: When to Use an Artificial Neuron and How It Works in MQL5 . We implemented a neuron in MQL5 that was trained using stochastic gradient descent and compared its loss function to that of linear regression. Using code and graphs, we demonstrate
Check out the new article: From Basic to Intermediate: Subwindows (I) . In this article, we'll start exploring how to work with subwindows in MetaTrader 5 using MQL5. This is a broad topic with several practical aspects that may prove challenging, so we'll start with a brief introduction. And yet
Check out the new article: Neural Networks in Practice: Stochastic Gradient Descent . This article uses practical examples to explain how to calculate and apply gradients of the weights and bias (intercept) in a linear neuron implemented in MQL5, and also discusses a stochastic variant of gradient
Check out the new article: Neural Networks in Trading: Temporal Motion Aggregation (Conclusion) . Introducing the TMA framework — an intelligent system capable of forecasting market dynamics with sufficient accuracy. In this article, we have integrated all the components into a single architecture
Leverage Monitor – Real Leverage, Margin Tiers, Swap, Commission and Spread : See the real leverage of every Market Watch symbol, including floating margin tiers, with swap, commission and live spread in one panel. Author: classicaltrading
Restart-Safe EA Template - no duplicate entries after a restart : Expert Advisor template that shows safe execution practices: closed-bar signals once per bar, no duplicate entries after an MT5 or VPS restart, spread and stop-level checks, normalised volume and a log line for every decision. Author
Spread ATR Monitor - current, average and max spread vs ATR : Shows the current spread next to its recent average and maximum and compares it with ATR, so you can see at a glance when trading costs are too high relative to the symbol's normal movement. Author: Jefry Francisco Rodriguez Campos
Risk Lot Panel - position size by risk and stop distance : On-chart panel that calculates the lot size for a given risk (% of balance, % of equity or fixed money) and stop-loss distance, using the broker's tick size and tick value. Works on forex, metals, indices and crypto. Author: Jefry Francisco
  Libraries: TradeTransactions  (82   1 2 3 4 5 ... 8 9)
TradeTransactions : Access to OnTradeTransaction data anywhere within an application Author: fxsaber
Garch: GARCH, GJR-GARCH and EGARCH volatility models with forecasts : Fits GARCH(1,1), GJR-GARCH and EGARCH with normal, Student t or GED shocks by maximum likelihood, with robust standard errors and variance forecasts. Author: Mohamed-amine Baddir
AlertKit, one alert per event and bar, no alert spam : A small include class that stops indicator alerts from firing on every tick. One alert per event and bar, silent about history on start, popup, push, email or sound, and an optional log of every decision. Comes with a working range break
Squeeze Break Indicator: This indicator uses a combination of Bollinger Bands and Keltner Channels to capture moves from low to high volatility. Author: Desmond ORegan
EA Auditor. What an Expert Advisor really does, from its deal history : Script that reads the deal history of your account and writes a plain note on how an Expert Advisor really trades: entries, stops and trailing, lot changes, martingale, averaging, trades at once, hours and holding time, plus
New article Fast Dive into MQL5 is published: You have decided to study MQL5 trading strategies' programming language, but you know nothing about it? We have tried to examine MQL5 and MetaTrader 5 terminal from the newcomers' point of view and have written this short introductory article. In this
Opening Gap Tracker: daily and weekend gaps with fill tracking, alerts and a CSV log : Marks daily and weekend opening gaps on any chart, tracks when each gap is filled, alerts on new gaps, logs one CSV line per gap and exposes the gap to iCustom. Author: Lee De Tai
Trade Manager Utility : Manages positions that are already open: it adds a missing SL/TP, moves the stop to break even, trails it, caps the position count and applies daily equity limits. It never opens trades. Author: Vira Ohloblia
Key Levels with Touch Counter - previous day/week/month highs and lows plus round numbers, with touch and sweep counts : Draws the previous day, previous week and previous month high and low, plus automatic round-number levels around the current price. Every level carries a label with how many times
Daily Loss Guard : Closes all trades when your daily loss reaches your limit. Author: Themistokli Kola
ORB Box + VWAP Stats - opening range box, 1R/2R targets, session VWAP and historical break statistics : Draws the opening range of a configurable session (start time and length in minutes, with a server time zone adjustment), the 1R and 2R levels above and below the box, and the session VWAP (tick
Session High Low Alerts - Asia, London and New York session highs and lows with non-repainting break alerts : Draws the high and low of the Asia, London and New York sessions as boxes or lines extended to the end of the day, with configurable session hours and a server time zone adjustment. Optional
Candle Pattern Stats - engulfing, pin bar and inside bar with a rolling historical hit rate : Marks bullish and bearish engulfing, bullish and bearish pin bar and inside bar patterns with arrows, using closed bars only, so nothing repaints. The definitions (wick and body proportions, minimum bar
Daily Loss Guard - daily loss and total drawdown limits for funded / prop-firm accounts : Utility Expert Advisor that watches the account equity against two limits: a maximum daily loss and a maximum total drawdown. Each limit can be set as a percentage or as a money amount, and the daily loss can
Xander Grid RSI Gold : XAUUSD grid EA that opens a basket when RSI leaves oversold or overbought on a closed candle, adds levels with a lot multiplier and closes the basket at a money or points target. Open source code. Author: Cristhian Alexander Gaibor Cuasquer