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
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
Breaker block detection adds the missing layer after an order block fails. When price closes through an existing order block, the zone flips polarity and is reclassified as a breaker with the opposite bias.

A broken bearish order block that closes upward becomes a bullish breaker and is treated as support. A broken bullish order block that closes downward becomes a bearish breaker and is treated as resistance. Breakers are drawn with a distinct visual style and separate coloring from regular order blocks.

The logic includes mitigation tracking when price returns to retest the breaker. Mitigated zones can be removed, faded, or kept, with limits on how many breakers remain on chart. Swing strength for the underlying structure is configurable. Alerts trigger on new breaker formation and on mitigation events across all timeframes.

πŸ‘‰ Read | NeuroBook | @mql5dev

#MQL4 #MT4 #Indicator
❀35πŸ‘5✍3⚑1
Tooling update for discretionary and systematic traders: automated detection and mapping of DOL targets, the next likely liquidity objectives on the chart.

Supported levels include Previous Day/Week/Month High and Low (PDH/PDL, PWH/PWL, PMH/PML), Equal Highs and Equal Lows (EQH/EQL), plus untested FVGs above and below current price.

Targets are labeled and color-coded by category, with an optional β€œNearest DOL” panel showing distance in pips. Levels can be filtered by type, trigger alerts as price approaches, and are removed once reached. Compatible across all timeframes.

Directional context comes from projected objectives rather than current location.

πŸ‘‰ Read | VPS | @mql5dev

#MQL4 #MT4 #Indicator
❀32πŸ‘3
A service for MT5 that opens a separate resizable viewer window for a symbol report. The window supports vertical and horizontal scrolling via built-in controls and includes RU/EN report versions with instant switching. Initial language is selected automatically based on terminal settings.

The report rebuilds automatically when the watched chart changes symbol or timeframe, without restarting the service. Buttons provide Left/Right scrolling, Up/Down scrolling, RU/EN toggle, and Close to stop the service.

The report consolidates key symbol and trading environment data: Bid/Ask, point/tick/digits/spread, day low/high, trading limits and order settings, volume constraints, price movement values in account currency, margin and estimated leverage, swaps/rollover, volatility and time metrics, plus account context.

πŸ‘‰ Read | Docs | @mql5dev

#MQL5 #MT5 #script
❀32⚑2
FibStructureEngine is an MT5 indicator that merges pivot-based market structure with automated Fibonacci retracement and extension levels. Swing highs/lows are confirmed via a configurable SwingLength, with an optional 14-period ATR filter to suppress minor moves.

Each structural break is classified as BOS (trend continuation) or CHoCH (potential reversal), with HH/HL/LH/LL labels kept on-chart. After a break, a Fibonacci grid is anchored to the latest significant swing pair, with selectable 0.382/0.500/0.618/0.786 levels, a 0.500–0.786 zone box, and -0.500/-0.618 extensions.

Signals use a weighted confirmation score: structural bias, interaction with the retracement zone, and optional engulfing patterns. A cooldown limits repeated triggers. Alerts are generated on bar close with symbol, direction, entry, score, and ATR-based SL/TP (1.5x/2.5x).

πŸ‘‰ Read | Quotes | @mql5dev

#MQL5 #MT5 #Indicator
❀41⚑5
ASQ News Filter v1.2 is a free, open-source MQL5 library that blocks EA trading around economic releases. It pulls events from the MQL5 Calendar API every 5 minutes, including actual/forecast/previous values, then filters them by symbol currency (base/quote) while handling common broker suffixes.

Impact filtering supports High only, High+Medium, or All, with configurable pre/post windows from 5 to 120 minutes. Special cooldowns extend post-news pauses for NFP (60 minutes) and FOMC (90 minutes), both adjustable. Built-in schedules cover nine central banks plus NFP, and event titles are classified into types such as CPI, GDP, PMI, retail, and employment.

The package includes a demo EA dashboard with a four-level intensity gauge, trading allowed/blocked status, and the next three events with countdowns. Integration is a single include plus per-tick Update(), ...

πŸ‘‰ Read | Forum | @mql5dev

#MQL5 #MT5 #EA
❀32⚑3πŸ‘€3
An Expert Advisor combines RSI-driven entries with a grid position-management layer. Initial trades trigger on RSI thresholds, then additional orders are placed at defined grid intervals when price moves against the first position.

A built-in overlap routine targets drawdown reduction by closing selected combinations of winning and losing trades once predefined criteria are satisfied. Risk controls include fixed, balance-based, or risk-based lot sizing, grid step and multiplier settings, plus trailing stop and breakeven logic.

Operational tools include a manual trading panel with Buy/Sell actions and a time filter to restrict activity to specific sessions.

Account constraints remain significant: hedging mode is required, netting is not supported. Due to grid exposure in strong trends, demo validation and conservative risk limits are recommended.

πŸ‘‰ Read | Quotes | @mql5dev

#MQL5 #MT5 #EA
❀28πŸ‘Œ2
In MetaTrader 5 build 5800, we have started enhancing the main trading dialog. It now features a more modern design, an integrated Depth of Market, and more convenient switching between operation types. In future updates, we will further enhance stop level placement and introduce risk control tools.

We have also improved integration with the OpenBLAS linear algebra library by adding new methods for L1 trend filtering and refining the update mechanism for required files.

MetaEditor now also offers a more convenient way to work with CSV files. The editor automatically displays them in a tabular format, allowing you to filter data, sort by columns, and delete rows via the context menu.

In addition, we have implemented stability improvements for the Strategy Tester and the web version of the platform.

Read more...
❀23πŸ”₯5πŸ‘Œ3