Articles, Library comments - page 26

RealizedVol: range volatility estimators, realized variance and HAR forecasts : Parkinson, Garman-Klass, Rogers-Satchell and Yang-Zhang estimators, daily realized and bipower variance from intraday bars, and HAR volatility forecasts. Author: Mohamed-amine Baddir
Stationarity: KPSS, Phillips-Perron, DF-GLS, Zivot-Andrews and variance ratio tests : Five tests to tell a random walk from a mean-reverting series: KPSS, Phillips-Perron, DF-GLS, Zivot-Andrews with the break date, and the variance ratio. Author: Mohamed-amine Baddir
Risk Lot Calculator - lot size from your risk and stop (class for EAs + chart panel) : Drag the stop-loss line and read the lot size that risks exactly your money or percent. The CRiskSizer class does the same in an EA: lot rounded down, minimum lot never forced, max lot, volume limit, stop level
Market Structure BOS and CHoCH - swing points HH / HL / LH / LL, no repaint, alerts : Market structure in the way of Smart Money Concepts: swing highs and lows with HH / HL / LH / LL labels, BOS (break of structure) and CHoCH (change of character) lines. Swings count only after their right candles
GDS Renko Liquidity Sweep Lab : GDS Renko Liquidity Sweep Lab is a free educational indicator for studying what happens after price crosses a confirmed Renko swing level. Author: Andrey Goida
Check out the new article: Beyond Squared Returns: Path-Dependent Volatility . This article implements a path-dependent volatility model in MQL5 that keeps the sign of returns. The engine uses two-timescale EWMA kernels (four accumulators) to form activity and trend features, with closed-form
Check out the new article: Behavioural Cloning in a Live Trading System: What Live Experience Can and Cannot Teach . This article measures a live-to-train behavioral-cloning loop for an RL trading system across 83 models. Outcome-weighted imitation shifted the policy toward Hold (48% → 82%), with 12
Check out the new article: Fundamentals of Bayesian Inference in Discrete and Continuous Settings: From Theory to Practical Model Implementation . The article discusses the fundamentals of Bayesian statistics in both discrete and continuous settings. We will progress from classical Bayes’ theorem
Smart Money Concepts BOS CHoCH : Market structure indicator for Gold (XAUUSD), EURUSD and any symbol: swing highs and lows with HH HL LH LL labels, BOS and CHoCH drawn on closed candles, alerts and 4 buffers for EAs. Open source code. Author: Cristhian Alexander Gaibor Cuasquer
Check out the new article: Neural Networks in Trading: Iterative Forecast Refinement Models (Key Components) . In this article, we explore the inner workings of the RAFT framework — one of the most precise and elegant approaches to analyzing dynamic processes. Step by step, we adapt its idea of
Tick Scalper Helper - tick chart and one-click trading panel for MetaTrader 5 : Tick Scalper Helper is a manual trading utility for traders who work on very short time frames and want to see every price change. Author: classicaltrading
Check out the new article: From Signal to Trade via a Chain of Agents: LangChain Architecture on Top of MQL5 . The article describes an architecture in which the MQL5 Expert Advisor (EA) handles only data collection and execution, while the logic is moved to a Python server with three LangChain
Check out the new article: Building a Gold Volatility Regime Monitor from Options Data in MQL5 . A practical bridge from the options market into MetaTrader 5 for gold. We compute near-the-money implied volatility by solving Black-Scholes from quoted prices, compare it with 30-day realized
ICT Premium / Discount and OTE - dealing range, standard deviations, IPDA ranges : ICT dealing range from confirmed swings: premium and discount zones, equilibrium, the OTE band (62 - 79 %, 70.5 %), standard deviation targets and the IPDA 20 / 40 / 60-day ranges. No repaint. Alerts and EA buffers
ADX Auto Range : Range boxes that are drawn when market trend strength weakens Author: Conor Mcnamara
Partial Close Multi TP Manager : Partial close expert advisor for MetaTrader 5: closes a percent of the position at TP1, TP2, TP3, TP4 and TP5, moves the stop loss to breakeven and trails it. Works on manual trades and on positions of any EA, on any symbol, Gold (XAUUSD) included. Open source code
Swap Markup Scanner : Shows the broker's hidden financing markup and the carry for every symbol, as annual % of notional. Author: Ng Wei Siong
DataSnooping: SPA test, Reality Check, StepM and model confidence set : Is the best of many strategies really better than the benchmark? Hansen's SPA test, White's Reality Check, Romano-Wolf StepM and the model confidence set. Author: Mohamed-amine Baddir
Calendar News Filter - pause any EA around high-impact news : A small include file that tells your Expert Advisor when it is inside a news window, using the economic calendar built into MetaTrader 5. No web requests and no DLL. Author: Muhammad Muqeem Korejo
isNewBar : The function allows checking whether a new bar has appeared on the specified timeframe. For the indicators and Expert Advisors it's very often necessary the information whether a new bar has appeared on the specified timeframe. Here is an example, how it can be done. After the first call
Basket Pair Closer : Position manager for MT5 that closes the best winner together with the worst loser when their combined result reaches your minimum. Basket take profit and stop loss in money, magic filter, simple panel. Works with grid, martingale and manual trades. Open source code. Author
XANDER Adaptive Cross : Two adaptive moving averages that read the market differently. Crossovers signal trend shifts. Author: Cristhian Alexander Gaibor Cuasquer
XANDER Gold Recovery : Keltner Channel strategy for XAUUSD with optional Progressive Recovery System and basket level risk control. Source code for educational purposes. Author: Cristhian Alexander Gaibor Cuasquer
XPro Trade Panel — Full Trade Management Panel for MT5/MT4 : One-click trade panel for MT5 and MT4. Manage entries, exits, SL, TP, pending orders and partial closes without touching the keyboard. Author: Cristhian Alexander Gaibor Cuasquer
Cointegration: ADF, Engle-Granger and Johansen tests with a pair scanner : Unit root and cointegration tests (ADF, Engle-Granger, Johansen) with MacKinnon p-values, hedge ratio, half-life and z-score of the spread, and a pair scanner. Author: Mohamed-amine Baddir
Kalman: exact diffuse Kalman filter, local level and time-varying hedge ratio : Kalman filter and smoother with an exact diffuse start, missing values and maximum likelihood: local level, local linear trend and a regression whose hedge ratio drifts. Author: Mohamed-amine Baddir
RegimeHMM: market regimes with a hidden Markov model : Gaussian hidden Markov model fitted by Baum-Welch: regime probabilities without look-ahead, most likely path, expected durations and regime forecasts. Author: Mohamed-amine Baddir
UT Bot Alerts for MT4 - faithful port with signal statistics panel and daily session filter : An MT4 port of QuantNomad's "UT Bot Alerts", one of the most-used scripts on TradingView. It draws the ATR trailing stop, Buy/Sell signals and bar colors, and adds a panel that counts what the signals would
Candle shadows v1 : Candlestick size and shadow analysis. In OnTradeTransaction, opening (DEAL_ENTRY_IN) and closing (DEAL_ENTRY_OUT) the positions are intercepted, as well as closing by Stop loss (DEAL_REASON_SL). Author: Vladimir Karputov
Range Filter Buy and Sell for MT4 - faithful port of DonovanWall / guikroth with signal statistics : An MT4 port of the popular TradingView "Range Filter Buy and Sell 5min". The filter line only moves when price exceeds a smoothed average range, which filters out small swings. Includes Buy/Sell