MQL5 Algo Trading
581K subscribers
4.71K photos
7 videos
4.72K links
The best publications of the largest community of algotraders.

Subscribe to stay up-to-date with modern technologies and trading programs development.
Download Telegram
A Telegram notification library is available for MetaTrader 5 EAs running on VPS environments, targeting operational visibility and incident awareness. It supports trade open/close/modify alerts with entry, SL, TP, and P/L, plus daily and weekly performance summaries including win rate, drawdown, and balance.

Operational events include EA startup/shutdown messages, error and warning reporting, custom signals, and configurable silent hours in GMT. Multi-chat delivery can broadcast to up to three chat IDs at once, with rate limiting set to 20 messages per minute.

Delivery reliability is handled via a 10-message queue and up to three automatic retries on failure, alongside connection verification using a getMe-based health check and daily sent/failed counters that reset at midnight. Implementation uses WebRequest only, with URL encoding and Markdown escaping, ...

👉 Read | CodeBase | @mql5dev

#MQL5 #MT5 #EA
❤30👌5👍3🤝3
An MT5 indicator implements the core Smart Money Concepts toolkit on-chart with real-time detection and visualization of BOS/CHoCH market structure, Order Blocks, Fair Value Gaps, Equal Highs/Equal Lows, and optional BUY/SELL arrows. All modules are independently switchable, color-configurable, and ATR-adaptive across symbols and timeframes.

Market structure is built from swing pivots using a configurable lookback, plotting HH/HL/LH/LL labels and drawing BOS/CHoCH levels. Order Blocks are derived from the last opposite-close candle preceding a confirmed BOS, drawn as rectangles and invalidated on mitigation. Fair Value Gaps use the three-candle imbalance rule with a minimum size filter at 15% of ATR and are also deactivated on fill.

EQH/EQL scans pivot levels within an ATR-based tolerance and marks liquidity pools with dashed connectors. Signals trig...

👉 Read | Docs | @mql5dev

#MQL5 #MT5 #Indicator
❤41👌6👀2
DoEasy library update adds an MQL5.com Signals collection and extends DOM snapshot handling.

A new CMQLSignalsCollection builds a searchable, sortable list of signal objects via SignalBaseSelect(). Filtering by free/paid, sorting by parameters (including profitability), and fast lookup by ID/name are supported. Subscription and unsubscription workflows are implemented, along with accessors for current subscription state and copy-trading settings via SignalInfoSet*.

Library internals were adjusted: Message.mqh gets an overloaded ToLog() with an explicit source field; MQLSignal PrintShort() gains optional prefix formatting and correct subscription status init; Select.mqh adds signal-specific search/sort helpers; Engine.mqh wires collection access.

DOM snapshots now compute and store total buy/sell volumes during construction, eliminating repeated aggregation....

👉 Read | AlgoBook | @mql5dev

#MQL5 #MT5 #EA
❤35👍4🔥4👌3✍2
ASQ Recovery Engine v1.2 is a free, open-source MQL5 recovery library plus a demo EA for MetaTrader 5. The module applies automatic risk reduction after consecutive losses, then restores risk after wins. It includes guards to block revenge entries within a configurable cooldown window and prevents martingale-style lot increases after 2+ losses.

The engine maintains a session heat score (0–100) with decay rules, tracks emotional states (Calm, Focused, Stressed, Tilted, Reckless), and can switch to a conservative profile when drawdown exceeds a threshold. Additional controls include configurable cooling-off periods after large losses, anti-tilt minimum-risk mode at 3+ losses, win-streak multipliers, a mini log of recent trades, and optional daily reset.

Integration is via a single .mqh include with calls on win/loss, plus getters for adjusted risk/lot and tra...

👉 Read | Signals | @mql5dev

#MQL5 #MT5 #EA
❤30👍3👌2🤩1
ASQ PropFirm Shield v1.2 is a free, open-source MQL5 risk-control library for prop firm rule enforcement on every tick. Coverage includes daily loss limits, max drawdown (standard or trailing), profit targets, consistency scoring, and minimum trading days, with phase detection for Challenge, Verification, and Funded.

Seven presets are included: FTMO, MyForexFunds, Funded Next, The Funded Trader, E8 Funding, Bulenox, and TopStep. A five-level state model reports Safe, Caution, Danger, Breached, and Failed. An emergency close-all flag triggers at 90% of any limit, and a risk-per-trade guardrail blocks oversized entries while calculating the maximum safe risk for the next trade.

A demo EA provides a dashboard with limit progress bars, win rate, profit factor, trading day tracking, and recent daily PnL history. Delivery includes a .mqh library and a demo .mq5 E...

👉 Read | Calendar | @mql5dev

#MQL5 #MT5 #EA
❤27👍7🎉3⚡2👌2
Imbalance Finder is an MT5 chart indicator that detects Fair Value Gaps (FVGs) and tracks their status in real time. It marks bullish and bearish three-candle imbalances where the first and third candle wicks do not overlap, and then monitors whether each zone is partially tapped or fully filled.

Detection runs on completed bars. Bullish FVG: low[i] > high[i-2], with the zone from high[i-2] to low[i], drawn at bar[i-1]. Bearish FVG: high[i] < low[i-2], with the zone from high[i] to low[i-2], drawn at bar[i-1].

State tracking distinguishes tapped (price enters the zone without reaching the far edge) versus filled (price crosses the entire zone). Visuals use separate colors for active and tapped/filled portions, with an option to hide tapped/filled overlays.

Seven data-only buffers expose presence, tap/fill flags, interaction bar, and direction for EA...

👉 Read | Freelance | @mql5dev

#MQL5 #MT5 #Indicator
❤34✍6🤩3👌3⚡2
Dropout addresses co-adaptation during training by randomly disabling neurons with probability p and keeping activation with q=1-p. Inputs are masked and scaled by 1/q to preserve expected magnitude. In backprop, the same mask scales gradients; in inference, masking is disabled.

Implementation adds a Dropout layer class (CNeuronDropoutOCL) with a training flag at base-neuron level. Forward pass builds a mask, transfers it to GPU, and performs element-wise multiplication via an OpenCL kernel using vector types (double4). Backward pass reuses the same kernel to apply the mask to gradients.

Persistence stores only dropout probability; masks are regenerated per training step. Base classes are updated to register the new layer type and kernel wiring.

👉 Read | AlgoBook | @mql5dev

#MQL5 #MT5 #Dropout
❤55👌5🎉4👀3👍2💔2🤓1
Most retail regime detection fails because execution logic stays static while market structure shifts. Trend-following systems can show clean performance during directional expansion, then hit sustained drawdowns when conditions compress into range-bound noise.

Common fixes rely on linear momentum filters such as ADX. These are inherently lagging, so confirmation often arrives after the regime has already transitioned, causing late entries and delayed shutdowns.

A non-linear alternative is Fractal Dimension Index (FDI), which measures price-path roughness over a rolling window. A smooth directional path trends toward dimension 1.0, while an erratic random walk approaches 2.0.

Operationally, the key boundary is 1.5. Below 1.5 supports breakout and momentum execution. Above 1.5 signals noise and mean reversion risk, where trend systems are likely to b...

👉 Read | Quotes | @mql5dev

#MQL5 #MT5 #Indicator
❤49👌6⚡2✍1👍1🤯1
ASQ Candle Scanner adds structure and pattern annotations to any OHLC chart, focusing strictly on closed candles for non-repaint behavior. It tags the last 1–20 bars (configurable) so recent context is visible without manual scanning.

Detected tags per closed candle include BOS (body close beyond prior high/low), LQ (wick beyond prior high/low with close back inside), FVG (gap versus the candle two bars back), REV (pin bar with small body and large wick or an engulfing body exceeding the prior), and IB (range contained within the prior bar).

Additional outputs include trend arrows (bullish, bearish, neutral) with green/red/amber coloring, buyer vs seller sentiment as a percentage based on close location within the range, and momentum grading from body-to-range ratio. A clean mode can show arrows only, and an optional prediction bubble can display dir...

👉 Read | Signals | @mql5dev

#MQL5 #MT5 #Indicator
❤24👌4👍2👏1
CommandDesk is a manual execution panel for MT5. Attach it to a live or demo chart, enable Algo Trading, then place trades via on-panel LONG/SHORT buttons or hotkeys. It does not generate signals and Strategy Tester will show zero trades.

Execution supports instant risk-based sizing with automatic SL/TP placement and staged exit tracking. Hotkeys include B/S for buy/sell, X to flatten, R to reverse, E to lock breakeven, and P to purge pending orders, with an option to disable shortcuts.

Trade management includes three-stage partial TPs with state persisted in order comments, plus trailing stop modes: fixed distance, ATR-scaled, or previous-bar swing. Auto breakeven moves SL to entry with an offset after a profit threshold.

Risk controls include a session drawdown guard that flattens positions and blocks new orders until equity recovers. The dashboard shows...

👉 Read | AlgoBook | @mql5dev

#MQL5 #MT5 #EA
❤38⚡4👌4✍2👍1
KSQ Command Center is designed for quantitative fund managers who need to monitor and manage remote funded accounts from a mobile browser without logging into a VPS session. The implementation provides a two-way asynchronous bridge between MT5 and Google Sheets.

Reporting is handled by packaging account state and open position metrics into JSON and sending them to a Google Apps Script Web App via HTTP POST. Commanding is handled by polling a dedicated Commands sheet, parsing queued JSON instructions, executing trade actions such as closes or stop updates, then writing success or failure status back to the sheet.

The utility is symbol and timeframe independent and can be attached to any chart while managing the whole account. Configuration includes Web App URL, shared password, push/pull intervals, slippage limits, and optional logging. MT5 requires expli...

👉 Read | AppStore | @mql5dev

#MQL5 #MT5 #EA
❤44👌3✍1
StopLossManager.mqh defines a stop loss and trailing stop utility class for automated trading systems, with strict compilation settings and versioned module metadata.

The interface standardizes stop loss calculation through an enum-driven dispatcher supporting fixed pips, ATR-multiplier, swing high/low with buffer, and percent-of-price models. Results are returned as a structured payload containing normalized price, distance in points and pips, plus validity and error details.

Trailing logic is separated via a second enum and includes fixed-distance trailing, ATR-based trailing, step trailing, and breakeven-only behavior. The class also exposes take profit calculation by risk/reward ratio and conversion helpers for pips, points, and price, while accounting for symbol digits and broker stops-level constraints.

👉 Read | Docs | @mql5dev

#MQL5 #MT5 #Strategy
❤31👌4
Hon-APS is an institutional-grade Expert Advisor built around classical chart patterns combined with order flow confirmation and a macro news filter. It targets structural formations such as Cup & Handle, Flags, Head & Shoulders, triangles, and rounding bottoms, with entries triggered on breakout conditions.

Validation is performed using Level 2 order book reads to measure bid/ask imbalance and volume absorption around support and resistance. If DOM is unavailable, tick-volume estimation is used as a fallback. Trend alignment is enforced via a KAMA-based filter, with status and signals shown on an on-chart dashboard.

Risk management includes modified Kelly-based sizing, correlated exposure monitoring, and hard daily/weekly equity drawdown limits. A multi-source news handler pauses trading ahead of high-impact events using the platform calendar plus external...

👉 Read | Signals | @mql5dev

#MQL5 #MT5 #EA
❤44👍1
A combined overlay indicator integrates RSI divergence detection with a higher-timeframe PO3 candle projection panel.

The divergence engine scans historical and live bars for price/RSI pivots. Bullish setups are flagged when price makes a lower low while RSI forms a higher low; bearish setups when price prints a higher high while RSI makes a lower high. Confirmed divergences are drawn as trend lines in the RSI window and optionally mirrored on the main chart.

A right-side projection shows the latest closed candles from a selectable higher timeframe plus the currently forming HTF candle. Each projected candle includes OHLC labels and a signed Delta derived from tick volume direction, with closed candles muted and the live candle fully colored.

Signal qualification can require HTF candle direction, RSI level thresholds, and live Delta direction. Passi...

👉 Read | AppStore | @mql5dev

#MQL5 #MT5 #Indicator
❤30👌2🏆2
DOOM can run inside MetaTrader 5 by splitting responsibilities between native code and MQL5. A C DLL embeds the PureDOOM engine, runs it on a dedicated thread, and exposes a small __stdcall API for init/shutdown, framebuffer capture, and key events.

The EA turns a chart into a real-time display using OBJ_BITMAP_LABEL plus ResourceCreate, updating a 960x600 ARGB framebuffer at ~30 FPS. The DLL handles RGBA→0xAARRGGBB conversion, 3x nearest-neighbor scaling, and double-buffering under a CRITICAL_SECTION to keep frames consistent.

Input is bridged through OnChartEvent for key-down, while key-up is recovered by polling GetAsyncKeyState each timer tick. These patterns generalize to fast custom visualizations, external data/ML bridges, and any non-blocking DLL integration.

👉 Read | Quotes | @mql5dev

#MQL5 #MT5 #AlgoTrading
❤59👏6👌4🏆4
Retail support and resistance is often drawn manually from visual recall and subjective bias, which makes the result hard to validate statistically. Institutional execution models typically react to volume density and liquidity clustering rather than fixed horizontal lines.

Unsupervised methods such as K-Means can formalize this process by grouping historical price points into high-density clusters. The cluster centroids become quantified price levels where liquidity has concentrated, functioning as adaptive support/resistance references.

An MQL5-native implementation can run without external DLLs or Python bridges and re-cluster on defined intervals to keep levels aligned with recent market structure. Practical usage typically focuses on higher timeframes (H1/H4/D1), then monitoring centroid retests and confirming with order-flow measures such as CVD or Z-...

👉 Read | Docs | @mql5dev

#MQL5 #MT5 #ML
❤37👌4⚡1🤯1
Hon-Matrix Pro is a multi-strategy algorithmic trading system built around market phase detection, switching logic between trending and ranging conditions. Core inputs include a higher-timeframe 100 EMA trend filter, ATR for volatility gating, and RSI for momentum confirmation.

Entry modules combine a Fibonacci retracement grid (38.2–78.6), support/resistance bounce vs. volume-validated breakout rules, and linear regression channels for mean-reversion setups. Trading is blocked around high-impact events via a dual-source economic calendar check with optional pre-news hard close.

Risk controls include signal-weighted position sizing, basket-level take profit, breakeven and ATR trailing, plus equity and exposure limits. An on-chart dashboard provides live P&L, spread, exposure, and allows parameter edits and basket actions without restarting.

👉 Read | Forum | @mql5dev

#MQL5 #MT5 #AlgoTrading
❤31👍3👌2
ASQ PropGuard is a real-time prop firm rule monitor for MetaTrader 5, delivered as an indicator with a chart overlay dashboard. It tracks daily loss limits, maximum drawdown, profit targets, and trading day requirements, updating on every tick and showing a live pass/fail verdict.

Firm presets cover FTMO, MyFundedFX, The Funded Trader, E8 Funding, and Bulenox, with a custom mode for manual rule entry. Drawdown can be computed as static, trailing equity high-water mark, or end-of-day, depending on the selected ruleset.

Alerts are configurable for early warning at 80% and on breach, via terminal messages, popups, push, and email. Daily reset time is configurable to match broker server rollovers. Indicator-only behavior is enforced, with no trade placement or modification.

👉 Read | Quotes | @mql5dev

#MQL5 #MT5 #Indicator
❤29⚡3👍3👏3✍2👌2
An MT5 utility for hedging accounts adds automated position protection and fast execution controls.

Automatic breakeven management supports single trades or grouped positions. A dynamic trailing stop system adjusts stops as price moves, with optional scalping mode for Buy/Sell actions combined with auto trailing.

A one-click management panel includes closing the smallest profit trade, closing 50% while moving the stop to breakeven, and closing all trades while deleting pending orders. Smart filters allow control by trade type, Magic Number, and comment.

A real-time dashboard shows equity, floating P/L, and daily profit. Operation requires AutoTrading enabled and disciplined risk management.

👉 Read | Signals | @mql5dev

#MQL5 #MT5 #EA
❤39👌4✍3👍3⚡1
Improved Chaos Optimization Algorithm (COA) implementation targets multimodal global optimization, including trading and other compute-heavy domains. The design uses chaotic maps for ergodic sampling plus a weighted-gradient phase and adaptive parameter control to reduce stagnation.

Architecture is split into three stages: First Carrier Wave (global chaotic search via logistic mapping and variable projection), Weighted Gradient Search (constraint handling through weight ratios), and Second Carrier Wave (local refinement around the best point with fractal step sizing).

Implementation extends a standard COA with per-dimension chaotic state, velocity, movement and stagnation counters, and automatic penalty tuning. Initialization uses Latin Hypercube Sampling, with optional clustered and chaos-seeded starts. Chaotic sources rotate across logistic, sine...

👉 Read | Docs | @mql5dev

#MQL5 #MT5 #AlgoTrading
❤43👍10👌3