Articles, Library comments - page 3

Check out the new article: The Mathematics of Volatility: Why the GRI Indicator Deserves to Return to Your Trading Terminal . The article focuses on the Gopalakrishnan Range Index (GRI/ROCI), which quantitatively assesses the market's "degree of chaos" using the logarithm of the closing price range
Check out the new article: MetaTrader 5 and the MQL5 Economic Calendar: How to Turn News into a Reproducible Trading System . The article presents a systematic approach to news trading in MetaTrader 5 using the built-in economic calendar: data structure, API functions, time synchronization rules
Check out the new article: Building a Swing-Based Volume Profile Indicator in MQL5 . This article presents a swing-based volume profile indicator in MQL5 that analyzes platform tick volume within completed high-to-low and low-to-high legs. It confirms swing points, partitions each leg's range into
Check out the new article: Automating Trading Strategies in MQL5 (Part 53): Double Top and Double Bottom Reversal Model . We build an MQL5 program that detects and trades Double Top and Double Bottom patterns from confirmed swing pivots with rule-based logic. The detector matches peaks within a
Check out the new article: Did Your Scale Outs Actually Help? A Scale Out Value Analyzer in MQL5 . The article presents an MQL5 tool that tests whether scaling out improved results rather than only appearing disciplined. It reconstructs positions from closing-deal history and reprices the full
Check out the new article: MetaTrader 5 Machine Learning Blueprint (Part 21): Feature Importance Analysis . Feature importance often understates correlated predictors by spreading one signal across many engineered copies, while unrelated noise can appear higher. We measure this effect against a
Check out the new article: Neural Networks in Trading: The Adaptive Graph Diffusion Model (Attention Module) . In this article, we will take a detailed look at the practical implementation of the key components of the SAGDFN framework. We will show how sparse attention and the selection of
Trade Reporter Lite - Telegram trade notifications : Posts your MT5 opens and closes to a Telegram chat: side, symbol, entry, stop and target in pips, lots, and on close the result, pips, R-multiple and time held. Retry queue, restart-safe, never trades. Free version of Trade Reporter Telegram and
Check out the new article: How to Connect an LLM to an MQL5 Expert Advisor via a Python Server . The article examines three key obstacles to integrating LLMs with MetaTrader 5: the lack of direct access, strict rate limits, and API key security given the architectural limitations of MQL5. A
Check out the new article: Building a PDF Creation Library in MQL5 (Part1): Writing a PDF by Hand . This article shows how a PDF works as plain text by hand‑written two files: a 592‑byte page and an 885‑byte trade ticket. It explains the file structure (header, body, xref, trailer), the required
Check out the new article: Replay and Market Simulation: The Grand Finale . I know that many of you may have thought I would publish a few more articles to explain other aspects of this system. The missing elements are easy to implement. Even so, developing them will let you see how prepared you
Check out the new article: From Basic to Intermediate: Operator Overloading (V) . In this article, we will look at how to modify the code to implement a solution entirely unlike what many consider possible in MQL5. Important note: To fully understand this material, you must have a solid grasp of the
ATR Trailing Stop (Pine Script Port) : MQL5 port of a Pine Script ATR trailing-stop indicator: nLoss = ATR-multiple, the stop ratchets under price in an uptrend and over price in a downtrend, and flips (with a buy/sell arrow) when price closes through it. Includes a Python reference port and a
EMA Cross Demo EA with ATR Stops : A small demo Expert Advisor: EMA fast/slow cross entries (evaluated on closed bars only, no repainting), ATR-based stop-loss and take-profit, spread filter, and position handling that works on both hedging and netting accounts. Includes a Python reference
Session TWAP: time weighted average price from the cash open, with deviation bands : Time weighted average price of the running session, anchored at the cash open of Frankfurt, London, New York or Tokyo with automatic daylight saving. Every second counts the same, minutes without a tick carry the
PropSpread: time-weighted spread monitor with ATR context, alert and CSV log : Panel that samples the spread once per second and shows it in points and in the symbol's natural unit (pips on FX, index points on index CFDs), with rolling min/avg/median/max, a session statistic since server midnight
fair value gap/imbalance : Dynamic Fair Value Gap (FVG) is an MQL5 indicator for MetaTrader 4 that automatically detects market price imbalances. This indicator is perfectly suited for traders utilizing the Smart Money Concepts (SMC) strategy. Author: reza rahmad
Gold Position Size Calculator (XAUUSD) : Free risk-based position size calculator built specifically for Gold (XAUUSD). Enter your account balance, risk percentage, entry price and stop-loss price - the indicator calculates the exact lot size, risk amount, stop distance, risk/reward ratio and
Check out the new article: Building an Adaptive Fibonacci Volatility Band Indicator in MQL5 . We build an adaptive Fibonacci volatility band indicator in MQL5 that centers on a smoothed price (SMMA) and scales band width with a smoothed ATR. The article covers inputs, buffer mapping, ATR handling
Check out the new article: From Option Chain to Risk-Neutral Density: The Market's Own Probability Distribution . The article builds an MQL5 indicator that recovers the risk-neutral density from an option chain via the Breeden–Litzenberger identity. Quotes are inverted to implied volatilities, the
Unified Hull MA (4 Lines, Color-Coded, Ring Buffer) : Hull Moving Average indicator displaying four periods on a single chart, colour-coded by direction (green for rising, red for falling, grey for flat). Implemented with a ring buffer and incremental running-sum math, so memory and CPU use remain
Check out the new article: MQL5 Expert Advisor Builder (Part 1): A Simple Static Template . The article examines an example of a multipurpose trading robot template that is suitable both for creating your own strategies and as a codebase for freelance work. A key feature of the solution is bar-based
Check out the new article: Market Simulation: Unity Is Strength (III) . In this article, I will present our system for simulating market operations. Although everything is practically finished, there are still a few things to implement and a few changes to make. However, I have to admit that, after
Prop-Firm Equity Guard - daily and max drawdown protection (FTMO-style) : Account-level protection utility for prop-firm challenges: daily and max drawdown limits with a safety buffer. Closes all positions and raises a global halt flag other EAs can check. Author: Cristian Ciunae
News Filter for the Strategy Tester (DST-corrected calendar export) : A real economic-calendar news filter that also works in backtests. Export the events once with a script, then block new entries around news both live and in the Strategy Tester. Fixes the one-hour DST shift of historical calendar
Check out the new article: Developing a Multi-Currency Expert Advisor (Part 32): Secrets of the Optimization Project Creation Step (II) . The article discusses the parameters of the second stage of the automatic optimization pipeline for a multi-currency Expert Advisor. We analyze the criteria for
Previous Day highs and lows : Draws the previous day High, Low, and Close as horizontal reference lines on the chart for a configurable number of past days. Yesterday's levels extend into today as live support and resistance, with optional touch alerts. Author: 59848
Check out the new article: Building AI-Powered Trading Systems in MQL5 (Part 10): A Resolution-Independent Vector Icon System . We replace the embedded bitmap icons in our MQL5 canvas interface with a resolution-independent vector icon system. A small set of anti-aliased primitives (strokes, discs
Check out the new article: From Basic to Intermediate: Operator Overloading (IV) . In this article, we will take a first step toward showing how to implement operator overloading for the index operator and the assignment operator, while striving to offer a practical and interesting approach for
Check out the new article: Market Replay: Unity Is Strength (II) . Until now, the application being developed as part of this series of articles has focused exclusively on simulating the graphical part. However, to obtain a more complete system in which we can test the Expert Advisor within the