MQL5 Algo Trading
The best publications of the largest community of algotraders. Subscribe to stay up-to-date with modern technologies and trading programs development.
Ko'proq ko'rsatishπ Telegram kanali MQL5 Algo Trading analitikasi
MQL5 Algo Trading (@mql5dev) Ingliz til segmentidagi kanali faol ishtirokchi. Hozirda hamjamiyat 576 215 obunachidan iborat bo'lib, Texnologiyalar & Aralashmalar toifasida 139-o'rinni va Birlashgan Qirollik mintaqasida 5-o'rinni egallagan.
π Auditoriya koβrsatkichlari va dinamika
Π½Π΅Π²ΡΠ΄ΠΎΠΌΠΎ sanasidan buyon loyiha tez oβsib, 576 215 obunachiga ega boβldi.
28 Oktabr, 2026 dagi oxirgi maβlumotlarga koβra kanal barqaror faollikka ega. Oxirgi 30 kunda obunachilar soni 13 563 ga, soβnggi 24 soatda esa 571 ga oβzgardi va umumiy qamrov yuqori darajada qolmoqda.
- Tasdiqlash holati: Tasdiqlanmagan
- Jalb etish (ER): Auditoriya oβrtacha 2.09% darajada jalb etiladi. Nashrdan keyingi dastlabki 24 soatda kontent odatda umumiy obunachilar sonining 1.40% ini tashkil etuvchi reaksiyalarni toβplaydi.
- Post qamrovi: Har bir post oβrtacha 12 063 marta koβriladi; birinchi sutkada odatda 8 057 ta koβrish yigβiladi.
- Reaksiyalar va oβzaro taβsir: Auditoriya faol: har bir postga oβrtacha 40 ta reaksiya keladi.
- Tematik yoβnalishlar: Kontent indicator, chart, mql5, candle, range kabi asosiy mavzularga jamlangan.
π Tavsif va kontent siyosati
Muallif resursni shaxsiy fikrni ifoda etish maydoni sifatida taβriflaydi:
βThe best publications of the largest community of algotraders.
Subscribe to stay up-to-date with modern technologies and trading programs development.β
Yuqori yangilanish chastotasi (oxirgi maβlumot 29 Oktabr, 2026 da olingan) sababli kanal doimo dolzarb va katta qamrovli boβlib qoladi. Analitika auditoriya kontent bilan faol hamkorlik qilishini, uni Texnologiyalar & Aralashmalar toifasidagi muhim taβsir nuqtasiga aylantirishini koβrsatadi.
Ma'lumotlar yuklanmoqda
| Sana | Obunachilarni jalb qilish | Esdaliklar | Kanallar | |
| 29 Oktabr | +11 | |||
| 28 Oktabr | +571 | |||
| 27 Oktabr | +319 | |||
| 26 Oktabr | +573 | |||
| 25 Oktabr | +100 | |||
| 24 Oktabr | +229 | |||
| 23 Oktabr | +332 | |||
| 22 Oktabr | +494 | |||
| 21 Oktabr | +325 | |||
| 20 Oktabr | +564 | |||
| 19 Oktabr | +510 | |||
| 18 Oktabr | +133 | |||
| 17 Oktabr | +313 | |||
| 16 Oktabr | +444 | |||
| 15 Oktabr | +413 | |||
| 14 Oktabr | +683 | |||
| 13 Oktabr | +632 | |||
| 12 Oktabr | +367 | |||
| 11 Oktabr | +279 | |||
| 10 Oktabr | +178 | |||
| 09 Oktabr | +474 | |||
| 08 Oktabr | +480 | |||
| 07 Oktabr | +433 | |||
| 06 Oktabr | +750 | |||
| 05 Oktabr | +900 | |||
| 04 Oktabr | +357 | |||
| 03 Oktabr | +93 | |||
| 02 Oktabr | +761 | |||
| 01 Oktabr | +515 |
| 2 | A PPO-based RL trading pipeline tested a behavioural-cloning loop that re-trains the policy from its own live demo trades. Over two months, models produced under heavier cloning degraded and shifted toward inaction, including cases where they stopped trading entirely.
Live decisions were logged as (observation, action) with outcome metadata. Cloning applied weighted cross-entropy after each rollout plus a two-epoch pre-training pass for final models. Weights came from trade R-multiples, spread across all steps in a trade.
Two failures surfaced. A feature-schema change invalidated most buffered episodes without purge. More materially, after usable episodes appeared, final-model evaluation showed higher Hold shares, far fewer Buy/Sell actions, more negative Sharpes, and 12 models that never traded. Trials using only the light callback did not show the same s...
π Read | Docs | @mql5dev | 2 976 |
| 3 | Probability theory models data D given parameters ΞΈ via p(D|ΞΈ). Mathematical statistics inverts this: estimate ΞΈ from D. Bayesian inference treats ΞΈ as a random variable, updating prior P(ΞΈ) into posterior P(ΞΈ|D) using Bayesβ theorem, with todayβs posterior becoming tomorrowβs prior.
In the discrete case, hypotheses H1..Hk get priors P(Hi) and likelihoods P(D|Hi). Posteriors follow from P(Hi|D) β P(D|Hi)P(Hi), with normalization via total probability. A coin example shifts belief from 0.5 to 0.833 after one head.
For count data, a Poisson tick-rate model can combine an informative prior (e.g., mean 150) with new observations, using grid approximation, log-likelihoods, and logsumexp for numerical stability.
Continuous parameters replace sums with integrals, making evidence hard to compute at scale. Conjugate priors (e.g., beta-binomial) keep updates in closed ...
π Read | VPS | @mql5dev | 3 710 |
| 4 | MetaTrader 5 optimizations can βwinβ by fitting noise, especially when a sweep evaluates thousands of parameter sets on the same history. This article implements Bailey et al.βs Probability of Backtest Overfitting (PBO) using Combinatorially Symmetric Cross-Validation (CSCV) to quantify that risk and reject an optimization when PBO exceeds 5%.
Instead of a single in/out split, the history is partitioned into 16 contiguous blocks and evaluated across all 12,870 half/half block combinations. For each split, the best in-sample parameter set is selected, then its out-of-sample rank among all candidates is measured; PBO is the frequency that this choice falls into the bottom half.
The MT5 implementation focuses on practical correctness and speed: log returns for additivity, signals lagged by one bar to avoid look-ahead, data-driven threshold ranges via ...
π Read | CodeBase | @mql5dev | 5 189 |
| 5 | Session-filtered EAs often fail silently around DST. TimeCurrent() is broker server time, shifted by the broker, and it updates only on ticks. A hardcoded βLondon 10:00 serverβ can become one hour early or late after clock changes, with no Experts log errors.
The risk peaks when US and EU DST calendars diverge. US: second Sunday in March to first Sunday in November. EU: last Sunday in March to last Sunday in October. The mismatch windows are 2β3 weeks in spring and 1 week in late October, changing London/New York spacing from 5 hours to 4.
A practical fix is calendar-based offset calculation that works identically live and in Strategy Tester, where TimeGMT() equals server time. Build an include that computes broker DST state and converts UTC session definitions into broker-hour at runtime (London/New York/Tokyo), replacing fragile fixed-hour filters.
π Read | Quotes | @mql5dev | 6 815 |
| 6 | RAFT is adapted from optical-flow estimation to market time series by treating prices as continuous motion, focusing on direction and strength rather than isolated bars. Its recurrent refinement loop repeatedly updates the state, staying stable during volatility and regime shifts.
The implementation reframes RAFTβs correlation space into a temporal pyramid: multiscale correlations are computed along the time axis to capture both microstructure noise and longer trends. Recent state stacks replace a single initial state to preserve momentum and inertia.
On the MT5 side, a CNeuronMultiScaleStackCorrelation component extends stack correlation with OpenCL-backed aggregation, matrix products sized by (stackSizeΓlevels), and optional activation. A dedicated backward path propagates gradients through both matmul and time aggregation, keeping training intact while remaini...
π Read | Calendar | @mql5dev | 7 775 |
| 7 | LLM-driven trading in MetaTrader breaks quickly when the EA only asks for BUY/SELL. Practical constraints include M15βH1 operation, 30β90s inference latency, upcoming news within 10 minutes, max 3 open positions, and ~1% risk per trade.
A workable design separates thinking from execution and enforces sequential filters: Signal β News β Risk. The MQL5 EA becomes pure I/O on new-bar events, while a local Python server (LangChain) handles indicators, agents, and SQLite logging with decision_id plus a RESULT feedback loop.
Transport runs over a persistent local WebSocket on 127.0.0.1:8977 using a small command set (ANALYZE, RESULT, MEM_STATUS, STATUS, STOP) with separate long/short timeouts. Every decision, including hold, is recorded, and closed-trade PnL (with swap/commission) is returned to update agent_stats.
π Read | CodeBase | @mql5dev | 8 581 |
| 8 | TesterStats.mqh computes Strategy Tester report statistics directly from deal history, including metrics not available via TesterStatistics(): Z-Score, AHPR, GHPR, LR Correlation, and LR Standard Error. Output can be used for custom optimization criteria or to match backtest report values on a live account.
Validation was done across 5 scenarios (EURUSD, USDJPY, XAUUSD; fixed lots and percent risk; with and without TesterWithdrawal) by comparing 44 fields against TesterStatistics() and the HTML report. With β1 minute OHLCβ and βEvery tickβ, all 44 matched. With βEvery tick based on real ticksβ, equity is sampled less frequently, producing equity drawdown 0.05%β0.26% deeper, while other values remained identical.
Report rules implemented: 0.00 result counts as profit; post-start deposits/withdrawals excluded from balance drawdown; equity drawdown re...
π Read | Calendar | @mql5dev | 9 081 |
| 9 | ICT kill zones define time windows where higher activity is expected, expressed in New York local time: Asian 20:00-00:00, London 02:00-05:00, New York 07:00-10:00, and London Close 10:00-12:00. Each session window can be customized (HH:MM-HH:MM, NY time).
A common platform issue is broker server time versus New York time, including mismatched US and EU DST switch dates. The indicator converts candles to New York time so session boxes remain aligned year-round. Server clock handling supports Auto (reads terminal GMT offset), the typical βNew York + 7hβ forex server setup (GMT+2/GMT+3 with EU DST rules), or a fixed GMT offset.
It draws each kill zone box from high to low with labels, extends finished session highs/lows until traded through, and marks the 00:00 New York open as a dashed line. It can display recent trading days, supports M1-H1, and show...
π Read | AlgoBook | @mql5dev | 9 351 |
| 10 | Order blocks in SMC/ICT are typically defined as the last opposite candle before a displacement that breaks market structure. A bullish OB is the final down candle near the low of the leg that precedes a close above the last swing high. A bearish OB is the final up candle near the high of the leg that precedes a close below the last swing low. Swings are confirmed using an N-candle strength setting (default 10).
The indicator plots active OB zones as right-extended boxes (green bullish, red bearish) and tracks failures as breaker blocks (blue). Used and broken zones can be kept as grey boxes terminating at the touch/break candle for review. βUsed upβ logic is configurable: touch, 50% mitigation, or only on a closing break.
Signals are non-repainting due to closed-candle swing and break confirmation. Zones can use full candle range or body, with an optiona...
π Read | NeuroBook | @mql5dev | 9 652 |
| 11 | XlsxWriter.mqh generates valid .xlsx workbooks directly from MQL5. No DLL dependency and no local Excel installation are required. Output is a ZIP container of Office Open XML parts, stored uncompressed with CRC-32 per part.
Supports multi-sheet workbooks with text, numbers, and proper Excel date serials for correct sorting and filtering. Each sheet can be created with a bold header row, frozen panes, and auto-filters. Column widths are configurable, with eight built-in number formats: date-time, date, month, money, integer, price (5 decimals), percent, and 2-decimal.
Unicode text is handled as UTF-8. Designed to run in scripts, Expert Advisors, and the Strategy Tester, including writing to FILE_COMMON from OnTester.
Example: ExportDealsToXlsx.mq5 exports account history deals into a Deals sheet and aggregates daily results into a Daily sheet. Place XlsxWr...
π Read | Calendar | @mql5dev | 9 431 |
| 12 | Failed Breakout Detector flags range breakouts and highlights those that reverse back into the prior range. It is a price-action utility focused on identifying trapped breakout traders, not forecasting direction.
The range is defined as the highest high and lowest low of the last N bars (default 12), filtered by range height (0.5β4.0 ATR). A breakout requires a close outside the range by an ATR-based buffer (default 0.1 ATR) and is marked with a blue dot.
If any of the next K bars (default 3) closes back inside the range, the breakout is classified as failed: red arrow for failed breakout up, green arrow for failed breakout down. If price holds outside for K bars, the breakout is confirmed and no further marks are added. Calculations use closed bars only, so signals do not repaint.
A corner label counts failed breakouts for the current day (up/down)...
π Read | AppStore | @mql5dev | 9 131 |
| 13 | Prop Firm Guard is a risk-control Expert Advisor designed to enforce two common prop firm constraints: daily loss limit and maximum drawdown. It does not open trades and can run alongside manual trading or other EAs, attached to any single chart while monitoring the entire account.
Equity is checked every second. When a limit is reached, it closes all open positions, deletes pending orders, and can optionally close any new trade opened while the breach persists. Alerts and optional push notifications are supported, with all actions recorded in the Experts log.
Daily loss can reference either balance or the higher of balance and equity at the daily reset. Maximum drawdown supports static or trailing modes, with an optional safety margin to act before the threshold. State is persisted across restarts and reconnections, and the chart displays live usage plus n...
π Read | CodeBase | @mql5dev | 8 736 |
| 14 | A Risk of Ruin script estimates the probability of hitting a defined drawdown floor before a strategyβs edge shows up. It reads closed trades from account history, converts each result into an R-multiple (net P&L divided by average absolute loss), then runs a bootstrap simulation.
Each simulated path resamples historical R-multiples with replacement, applies a user-selected risk % per trade, compounds equity trade by trade, and flags βruinβ if equity drops below the configured floor. The method is independent of the original traded lot sizes; only the win/loss distribution and current risk settings drive outcomes.
Reported metrics include chance of hitting the floor, chance of ending profitable, median ending balance, and the 95% range of final balances. Median is used to reduce distortion from long-tail winners. Higher risk per trade typically increases th...
π Read | AppStore | @mql5dev | 8 363 |
| 15 | This EA builds signals on a classic two-brick Renko reversal. Oscillators update only on completed bricks, with one active mode: RSI Re-entry, RSI Midline, MACD Signal, or MACD Zero. RSI uses Wilder smoothing; MACD is EMA-diff with an SMA signal line. Periods count completed bricks. Multi-brick completion in one tick updates per brick, but only the last brick can trigger an entry. Orders execute at market quotes; blocked signals are not queued.
Entry is blocked if a position or order already exists for the symbol/Magic. Exits rely on virtual SL/TP or a holding-time limit; opposite signals do not close positions. A brick-based cooldown applies after exit; spread-to-brick filtering affects entries only.
A included test example reports XAUUSD M1 real-tick backtest results (JanβOct 2026): 178 trades, PF 1.49, max DD 5.99%, net profit $2,348.57. Parameters were chos...
π Read | VPS | @mql5dev | 8 555 |
| 16 | Spread Monitor is a lightweight information indicator for MetaTrader 5 focused on real-time spread visibility.
It shows the current spread in pips along with Bid and Ask values. The display uses configurable color states (green, yellow, red) to reflect low, medium, and high spread conditions. Language support is available in Russian and English. The UI is limited to a single text panel to keep chart rendering clean.
Key settings include language selection, X/Y offsets for panel placement, MidThreshold and HighThreshold in points, per-state colors (ColorLow/ColorMid/ColorHigh), and font size.
Typical use is spread verification before order placement, especially around news releases and during low-liquidity sessions where execution costs can change quickly.
π Read | NeuroBook | @mql5dev | 9 621 |
| 17 | A source text is required to generate the post. Only βby Grok AIβ was provided, which is not enough to rewrite into an 800-character technical news-style update.
Send the full text to convert, and include any constraints such as platform (X/LinkedIn), product/topic, and whether company or project names must be kept or removed.
π Read | Forum | @mql5dev | 11 197 |
| 18 | A trend-following trading system built around OpenAI models typically separates signal generation from execution and risk controls. Market data is normalized into features, prompts are constrained to structured outputs, and model responses are treated as probabilistic inputs rather than deterministic rules.
Key design points include strict data boundaries to prevent leakage, reproducible backtests with walk-forward validation, and hard limits on position sizing, leverage, and drawdown. Execution should rely on deterministic order logic, while the model is limited to regime classification, filtering, or parameter selection.
Operational requirements include latency and rate-limit handling, audit logs of inputs and outputs, and continuous monitoring for drift. Any deployment should include fail-closed behavior and clear rules for disabling automation un...
π Read | NeuroBook | @mql5dev | 12 270 |
| 19 | DeepSeek Quantum Apex Color is a chart-based indicator intended to visualize the dominant trend while reducing noise through a rules-based filter stack.
Regime filtering is driven by ADX. Trend-following logic is active only when directional strength exceeds a threshold (default >20), limiting signals during sideways conditions.
Momentum and exhaustion checks combine RSI and Z-Score. RSI provides directional bias (RSI >50 long, <50 short), while Z-Score measures price deviation from a moving average to reject statistical outliers and reduce early entries.
Signal history is computed on the last closed bar (Bar 1) to avoid repainting and keep backtest results consistent.
π Read | Forum | @mql5dev | 11 702 |
| 20 | Mistral Trend Candles color-code trend state using Hull MA slope and an ADX regime filter.
Green marks a confirmed uptrend when the slope is above the configured threshold and ADX indicates a trend regime. Red marks a confirmed downtrend under the same conditions.
In weak or lateral markets, candles retain the last confirmed trend color to keep continuous green/red zones for faster visual reading.
The logic is non-repainting: closed candles keep their final color. Only the currently forming candle can change until close.
Rendering uses chart objects placed above native candles, fully covering them.
For M1βM5, lowering ADX_TrendMin to ~18β19 can improve responsiveness. Higher timeframes typically need a higher ADX_TrendMin. HMA_Period and Slope_MinATR control reactivity and noise tolerance.
π Read | AlgoBook | @mql5dev | 11 932 |
