Codes

Market Behavior Analyzer: Swing Structure and Market Context for MetaTrader 5

The Market Behavior Analyzer is a practical indicator designed to make market structure easier to read directly from the chart. It identifies significant swing points, classifies them as Higher Highs, Higher Lows, Lower Highs, and Lower Lows, and tracks the movement between them in pips. It also

Interactive Supply and Demand Zone Trading Prototype for MetaTrader 5

This release introduces a lightweight automated trading prototype built on top of the Interactive Supply and Demand Zone Manager framework. The framework allows traders to draw and manage their own supply and demand zones, while each zone maintains its own lifecycle, interaction history, and

Articles

Interactive Supply and Demand Zone Manager in MQL5 (Part V): Persisting Zones Across Terminal and EA Restarts for MetaTrader 5

We introduce a versioned persistence layer that saves and restores the zone engine's logical state across sessions. The snapshot preserves lifecycle status, interaction history, scores, blacklist prices, and the geometry and time anchors of user‑drawn rectangles, and it is reconstructed and

Developing Smart Chart Objects in MQL5 (Part 2): Automating Trendline Discovery and Lifecycle Management for MetaTrader 5

Learn how Smart Trendline Manager separates creation from lifecycle control while handling both manual and auto-generated trendlines. It demonstrates discovery, registration, proximity and touch handling, bounce/break confirmation, post-break resurrection, expiration, and state-driven visualization

Developing a Quantitative Session Analysis Tool (Part 1): Building a Data-Driven View of Market Sessions for MetaTrader 5

The article presents a session analysis workflow in MQL5 that standardizes sessions as structured data with timing, OHLC, range, net move, and the sequence of extremes. It measures how range builds at 25%, 50%, 75%, and 100% of session duration. The chart shows session markers, a compact comparison

Building a Market Behavior Analyzer in MQL5 for MetaTrader 5

We outline a modular analyzer for MetaTrader 5 that separates detection, interpretation, and visualization. The engine identifies swing highs and lows, assigns structural labels, evaluates impulses and pullbacks, and stores results in a market state object. An on‑chart dashboard and interactive

Building a Position Lifecycle Manager in MQL5 (Part 1): The Foundation of Reusable Position Management for MetaTrader 5

A state-driven Position Lifecycle Manager brings structure to post-entry trade handling in MetaTrader 5. It discovers open positions, tracks them via managed objects, applies ATR-based protection, executes break-even transitions, and removes completed trades, with a clear NEW → PROTECTED → BREAKEVEN

Developing Smart Chart Objects in MQL5 (Part 1): Building a Stateful Trendline Management Framework for MetaTrader 5

This article details a practical framework for converting MetaTrader 5 trendlines from static drawings into managed runtime entities. It covers object discovery, event-driven synchronization of user edits, and confirmation logic based on ATR multipliers and closed candles. A central manager

Interactive Supply and Demand Zone Manager in MQL5 (Part IV): Trading Supply and Demand Zones for MetaTrader 5

We extend the supply and demand framework with a strategy layer that converts zone interactions into decisions. Qualified zones pass sequential checks for interaction proximity, approach behavior, higher‑timeframe alignment, and price action before execution is handed to a dedicated trade manager

Interactive Supply and Demand Zone Manager in MQL5 (Part III): Zone Analysis, Stateful Interaction, and Pending Event Management for MetaTrader 5

We extend the stateful supply and demand framework for MetaTrader 5 with a quantitative admission model and a dedicated interaction engine. Candidate zones are scored by structural symmetry, volume participation, and ATR‑normalized displacement, then classified into objective tiers. Admitted zones

Interactive Supply and Demand Zone Manager in MQL5 (Part II): Event-Driven Architecture and Persistent Lifecycle Logging for MetaTrader 5

This article advances the stateful supply and demand zone framework for MetaTrader 5 by replacing polling with an event-driven model based on OnChartEvent(). We split synchronization into dedicated handlers for creation, modification, and deletion, and separate market logic in OnTick() from user

Interactive Supply and Demand Zone Manager in MQL5 (Part I): From Manual to Automated Lifecycle for MetaTrader 5

Replace static drawings with automated, stateful zones controlled by a CZone wrapper. The system synchronizes user rectangles, sizes zones by ATR, validates breakouts using consecutive closes, applies ghost/deactivation rules, merges nearby structures by a 1.5×ATR threshold, and projects edges

Forum

How thorough is the Mql5 articles review??

I wrote an article about a month ago, yet it hasn't been published neither is there feedback telling me it got rejected its stuck at 50% saying it has been sent to the moderators. I even opened a ticket with them, and they asked for the link to the article now almost two weeks has passed nothing

Why do most EAs take so many bad trades… even when the logic seems correct?

been testing different systems recently, and something keeps standing out. Most EAs aren’t necessarily bad at finding trade signals, they’re just not very good at avoiding bad conditions. You’ll see things like: indicators align open trade conditions met open trade But markets don’t really