uz
Feedback
MQL5 Algo Trading

MQL5 Algo Trading

Kanalga Telegram’da o‘tish

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 513 809 obunachidan iborat bo'lib, Texnologiyalar & Aralashmalar toifasida 150-o'rinni va Birlashgan Qirollik mintaqasida 5-o'rinni egallagan.

📊 Auditoriya ko‘rsatkichlari va dinamika

невідомо sanasidan buyon loyiha tez o‘sib, 513 809 obunachiga ega bo‘ldi.

25 Iyun, 2026 dagi oxirgi ma’lumotlarga ko‘ra kanal barqaror faollikka ega. Oxirgi 30 kunda obunachilar soni 8 426 ga, so‘nggi 24 soatda esa 125 ga o‘zgardi va umumiy qamrov yuqori darajada qolmoqda.

  • Tasdiqlash holati: Tasdiqlanmagan
  • Jalb etish (ER): Auditoriya o‘rtacha 3.41% darajada jalb etiladi. Nashrdan keyingi dastlabki 24 soatda kontent odatda umumiy obunachilar sonining 1.78% ini tashkil etuvchi reaksiyalarni to‘playdi.
  • Post qamrovi: Har bir post o‘rtacha 17 487 marta ko‘riladi; birinchi sutkada odatda 9 131 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 26 Iyun, 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.

513 809
Obunachilar
+12524 soatlar
+1 8227 kunlar
+8 42630 kunlar
Obunachilarni jalb qilish
Iyun '26
Iyun '26
+8 186
6 kanalda
May '26
+10 784
10 kanalda
Get PRO
Aprel '26
+10 664
10 kanalda
Get PRO
Mart '26
+22 886
10 kanalda
Get PRO
Fevral '26
+25 031
6 kanalda
Get PRO
Yanvar '26
+26 330
10 kanalda
Get PRO
Dekabr '25
+22 353
4 kanalda
Get PRO
Noyabr '25
+21 953
11 kanalda
Get PRO
Oktabr '25
+24 933
4 kanalda
Get PRO
Sentabr '25
+19 967
5 kanalda
Get PRO
Avgust '25
+17 145
4 kanalda
Get PRO
Iyul '25
+18 909
10 kanalda
Get PRO
Iyun '25
+18 135
9 kanalda
Get PRO
May '25
+17 357
2 kanalda
Get PRO
Aprel '25
+19 677
0 kanalda
Get PRO
Mart '25
+19 081
0 kanalda
Get PRO
Fevral '25
+18 865
1 kanalda
Get PRO
Yanvar '25
+19 658
0 kanalda
Get PRO
Dekabr '24
+17 881
0 kanalda
Get PRO
Noyabr '24
+23 274
0 kanalda
Get PRO
Oktabr '24
+25 611
3 kanalda
Get PRO
Sentabr '24
+23 810
0 kanalda
Get PRO
Avgust '24
+32 845
0 kanalda
Get PRO
Iyul '24
+39 916
0 kanalda
Get PRO
Iyun '24
+14 429
0 kanalda
Get PRO
May '24
+1 105
0 kanalda
Get PRO
Aprel '24
+1 407
0 kanalda
Get PRO
Mart '24
+2 180
0 kanalda
Get PRO
Fevral '24
+1 456
0 kanalda
Get PRO
Yanvar '24
+1 276
0 kanalda
Get PRO
Dekabr '23
+4 228
0 kanalda
Sana
Obunachilarni jalb qilish
Esdaliklar
Kanallar
26 Iyun+309
25 Iyun+125
24 Iyun+389
23 Iyun+155
22 Iyun+619
21 Iyun+142
20 Iyun+54
19 Iyun+393
18 Iyun+287
17 Iyun+95
16 Iyun+468
15 Iyun+635
14 Iyun+309
13 Iyun+57
12 Iyun+366
11 Iyun+203
10 Iyun+373
09 Iyun+291
08 Iyun+713
07 Iyun+238
06 Iyun+72
05 Iyun+96
04 Iyun+492
03 Iyun+641
02 Iyun+521
01 Iyun+143
Kanal postlari
Gold FVG Finder detects fair value gaps (FVG) as market imbalance zones and marks the first retest with an arrow. Designed fo
Gold FVG Finder detects fair value gaps (FVG) as market imbalance zones and marks the first retest with an arrow. Designed for liquid instruments including XAUUSD and major FX pairs, covering M5 to H4. An FVG is formed when price moves quickly, leaving a gap between the wicks of the first and third candles that is not covered by the middle candle body. These areas are treated as unfilled liquidity, with the primary signal generated on the first return to the zone. Chart output includes green bullish zones and red bearish zones, each with a 50% Consequent Encroachment level. Arrows trigger on the first touch only to prevent repeated entries. A panel shows current RSI and active zone count. Options include an RSI filter (period, overbought/oversold thresholds), alerts, colors, and max history depth. M15 is cited as the preferred balance for XAUUSD, wi... 👉 Read | Calendar | @mql5dev

2
Session Boxes is an MT5 custom indicator that plots per-day rectangular ranges for the Asia, London, and New York sessions us
Session Boxes is an MT5 custom indicator that plots per-day rectangular ranges for the Asia, London, and New York sessions using internally sourced H1 data. Each box spans the session’s first-to-last H1 bar and covers the full high-low range, with configurable GMT session windows and a broker server offset parameter. Core logic converts server time to GMT via InpBrokerGMTOffset, then classifies each H1 bar with an hour-range check that supports cross-midnight sessions through IsHourInSession. A daily tracking rule ensures one rectangle per session per calendar day. Interpretation is straightforward: Asia range can act as pre-London reference levels, London often defines the primary directional range, and the London/NY overlap typically increases volatility. Lookback depth and colors are configurable. 👉 Read | VPS | @mql5dev
2 528
3
Part 2 replaced math analogues (cosine/sine/exponential) with a virtual 3‑qubit processor: 8‑state Hilbert space, unitary gat
Part 2 replaced math analogues (cosine/sine/exponential) with a virtual 3‑qubit processor: 8‑state Hilbert space, unitary gates, normalization, and measurement behavior. This shift targets superposition, entanglement, and non‑commuting operations that classical pipelines miss. Reported limits: LSTM ~58% accuracy, transformer noise sensitivity, ARIMA degradation, and overfitting instability. Circuit construction is data-driven: rotations parameterized by price moves, controlled-phase gates by feature correlations, Hadamard by uncertainty. Evolution order matters; decoherence strength tracks regime changes. Measurements extract Z/X statistics and two‑qubit correlations, using non-destructive reads in simulation. Hybrid output feeds classical components and transformer attention (Q/K). Implemented as an MT5 EA in MQL5. 2024–2025: +13.3% annual, 2.39%... 👉 Read | CodeBase | @mql5dev
10 840
4
A new MQL5 Wizard custom signal class, CSignalUKFCapsNet, targets the “noisy middle” where classic indicators and regime mode
A new MQL5 Wizard custom signal class, CSignalUKFCapsNet, targets the “noisy middle” where classic indicators and regime models struggle on fast, erratic markets. Engine 1 uses an Unscented Kalman Filter-style hidden-state estimator to treat price as a noisy measurement and produce a low-lag baseline trend without moving-average whipsaw. Engine 2 adds a Capsule Network as a structural validator, checking whether the proposed direction matches current volatility boundaries (ATR) and momentum pace (RSI). Low-confidence setups are suppressed via vector squashing. The class supports UKF-only or UKF+CapsNet testing, and offers four modes: volatility breakout, mean reversion, trend following, and consolidation squeeze—giving developers switchable logic for different intraday conditions. 👉 Read | NeuroBook | @mql5dev
10 333
5
This article turns candlestick charts into analyzable data by encoding each bar as a single symbol (A/G/H/E for bullish types
This article turns candlestick charts into analyzable data by encoding each bar as a single symbol (A/G/H/E for bullish types, a/g/h/e for bearish, D for doji, and “_” for unclassified). Using 1,500-bar samples of GBPUSD and XAUUSD on H1/M15/M5, an MQL5 script generates an encoded series plus per-symbol counts and percentages in a TXT report. On GBPUSD, Marubozu-like candles (A/a) dominate at ~20–22% each, while 32–36% of bars fall into the unclassified bucket, signaling where the taxonomy may need refinement. Bullish and bearish totals stay nearly symmetric across timeframes, and M5 shows a noticeable rise in doji frequency. The practical output is a reproducible market “profile” that can feed next-step modeling: two-symbol pattern frequencies and transition probabilities for systematic strategy research. 👉 Read | AppStore | @mql5dev
9 904
6
This article moves MT5 metric export from backtest-only CSV dumps to a live streaming pipeline that stays useful during activ
This article moves MT5 metric export from backtest-only CSV dumps to a live streaming pipeline that stays useful during active market hours. The goal is continuous observability: indicator values, session counters, and equity snapshots become an auditable stream instead of an end-of-session artifact. The design is a decoupled three-layer system: an MQL5 include that buffers rows and flushes in batches, a daily rotating CSV in the common files folder, and a Python tail daemon that reads appended rows, maintains rolling windows, and logs anomalies. Key engineering details: open-write-close I/O to avoid long-held handles, configurable buffering to control latency vs. data loss risk, midnight-UTC rotation to cap file size, and per-symbol/timeframe filenames to prevent multi-chart conflicts. A demo indicator shows gating to avoid exporting historical back... 👉 Read | Signals | @mql5dev
10 257
7
The logic targets sessions with high-impact (red) economic events. It counts qualifying news items for the current date, then
The logic targets sessions with high-impact (red) economic events. It counts qualifying news items for the current date, then evaluates the next scheduled release time. Before the release window, the EA places a pending order based on the configured direction, either Buy Stop/Buy Limit or Sell Stop/Sell Limit. Order placement is gated by the news count and the remaining time to the event, to avoid triggering outside the defined pre-news period. Typical safeguards include preventing duplicate pending orders for the same event, applying spread and slippage limits, and removing or disabling orders after the release if the setup is no longer valid. 👉 Read | Quotes | @mql5dev
9 813
8
SQLite access in MetaTrader 5 still needs defensive testing, especially around result handling. Query execution and result re
SQLite access in MetaTrader 5 still needs defensive testing, especially around result handling. Query execution and result reading are coupled: ExecRequestOfData must run before any read, because DatabaseReadBind returns rows from the last executed request. A generic wrapper around DatabaseReadBind is used to mitigate MQL5 type constraints. The binding API effectively behaves like a void reference in C/C++, so templates are used to accept varying row structures without rewriting code when result shapes change. Testing shows strict ordering rules. Field order in SELECT must match the structure used for reading, including joins. Extra columns can be returned and selectively ignored by switching structures, but mismatches between expected fields and returned columns produce unexpected output and require careful validation. 👉 Read | NeuroBook | @mql5dev
12 263
9
This MT5/MQL5 deep dive focuses on the last three chart object events that matter when objects interact with users: delete, c
This MT5/MQL5 deep dive focuses on the last three chart object events that matter when objects interact with users: delete, change, and end-edit. One key detail: some of these events are not generated unless explicitly enabled, so handlers can be correct yet never fire. For CHARTEVENT_OBJECT_DELETE, the article shows how to catch deletions and immediately recreate “protected” objects, including edge cases around when notifications are disabled and how UI lists lag behind recreated objects. A practical pattern is keeping an internal snapshot of object properties for reliable restoration. For CHARTEVENT_OBJECT_CHANGE, it explains why user edits don’t persist after recreation unless the EA captures updated properties itself. Since MT5 reports only the object name, developers must selectively read and store relevant properties, with strict filtering to avoid... 👉 Read | NeuroBook | @mql5dev
11 669
10
This CoSO implementation treats optimization like managing a research lab: “funds” act as discrete compute/iteration budget,
This CoSO implementation treats optimization like managing a research lab: “funds” act as discrete compute/iteration budget, allocated between proven agents and new entrants. AssignFunds splits budget by omegaCurrent, then distributes the main share via rank-weighted lottery so higher-ranked researchers get more opportunities without fully eliminating randomness. Diversity is injected through CreateOutsiders, which spawns a limited number of new agents, initializes coordinates within bounds (with step snapping), normalizes per-agent probability vectors, and enforces population caps with controlled growth. HireResearchers adds exploitation: funded supervisors spawn nearby variants that inherit best-known positions and bias parameters, with Gaussian perturbations to keep local search active. ComputeStdDev measures population dispersion, and UpdateOm... 👉 Read | VPS | @mql5dev
11 657
11
Manual chart-object monitoring fails for three reasons: reaction latency, poor scalability across symbols/timeframes, and sub
Manual chart-object monitoring fails for three reasons: reaction latency, poor scalability across symbols/timeframes, and subjective “did it touch?” decisions. The article extends earlier MT5 object enumeration/normalization work into an automated pipeline that turns drawn tools into consistent, testable triggers. The solution reuses normalized geometry in SComplexObjectInfo, then adds interaction logic that evaluates sloped objects at the current time (trendlines, channels, pitchfork median/levels) instead of comparing against static anchors. It also handles mixed object models: HLINE/VLINE single-axis coordinates, rectangles as zones, and Fibonacci levels read from the object’s level arrays. Architecture is split into modules: an updated collector (now includes HLINE/VLINE), an InteractionDetector that outputs touch/cross/breakout events with dir... 👉 Read | Signals | @mql5dev
12 367
12
This part turns MMAR parameter estimates into a full synthetic price path via a single, stateless CSimulationEngine class des
This part turns MMAR parameter estimates into a full synthetic price path via a single, stateless CSimulationEngine class designed for repeatable Monte Carlo runs. It relies only on MT5 Standard Library components: ALGLIB FFT and linear algebra plus Normal/Gamma/Poisson RNG, while keeping each intermediate array for inspection and validation. Stage 1 builds multifractal trading time with a binary multiplicative cascade. Random multipliers come from the fitted distribution using M = b^(-V), are clamped for numerical safety, pair-normalized to conserve mass, then integrated into a CDF theta(t) that creates fast/slow market time. Stage 2 generates fractional Brownian motion with H using either exact Cholesky (small n) or FFT-based Davies–Harte (large n), with fallback on failure, then rescales to match observed volatility. Stage 3 composes X(t)=B_H[theta... 👉 Read | Freelance | @mql5dev
11 664
13
Weekend gap trading can be automated by pairing a custom indicator with an MQL5 Expert Advisor that executes orders from indi
Weekend gap trading can be automated by pairing a custom indicator with an MQL5 Expert Advisor that executes orders from indicator buffers. The indicator must expose buffers read via CopyBuffer(). Six buffers are used: buy/sell arrows plus TP/SL for each direction. Buffers are registered with SetIndexBuffer(), and the EA connects through iCustom() to avoid re-implementing gap detection. The EA structure centers on inputs (lot size, slippage, magic, closed-bar confirmation, duplicate handling, opposite-position logic, midpoint SL rules), a CTrade instance, an indicator handle, buffer arrays, and state variables. Utility functions centralize buffer reads, empty checks, duplicate-bar tracking, position lookup, stop validation, and optional reversal. OnTick() runs once per new bar, copies buffers, validates setups against broker stop distances, places Buy/Sel... 👉 Read | CodeBase | @mql5dev
12 160
14
Short rolling Sharpe readings in MT5 often look like “alpha” but are mostly estimation noise: the standard error shrinks only
Short rolling Sharpe readings in MT5 often look like “alpha” but are mostly estimation noise: the standard error shrinks only with 1/√n, so 40–60 bars can’t reliably separate skill from randomness. The article formalizes this using Lo’s Sharpe standard error, then annualizes both Sharpe and its uncertainty to build a practical confidence band. RollingSharpe.mq5 plots annualized Sharpe plus upper/lower bounds at ±1.96·SE. The core rule is simple: if the band crosses zero, the observed Sharpe is not statistically significant. On the engineering side, it addresses MT5’s recalculation pitfalls (prev_calculated=0, partial history) by using stateless per-bar, two-pass variance computation for the indicator, while providing reusable O(1) circular-buffer classes for EAs where sequential updates are safe. 👉 Read | Calendar | @mql5dev
14 973
15
Static-weight SMA/EMA filters can’t handle regime shifts: they jitter in tight ranges and lag on breakouts. This piece replac
Static-weight SMA/EMA filters can’t handle regime shifts: they jitter in tight ranges and lag on breakouts. This piece replaces the fixed blend with a scalar Kalman smoother where the per-bar Kalman Gain becomes the optimal, adaptive weight between the latest close and the prior estimate. The model treats price as a latent “true” state with a random-walk process and noisy measurements. Process noise Q and measurement noise R are estimated online from rolling variances of returns and price deviations, then floor-clamped to avoid zero-volatility degeneration. Implementation details focus on MT5 usability: a native MQL5 indicator with controlled warmup, stable single-pass rolling variance, incremental OnCalculate updates, and Kalman Gain exposed in the Data Window via an invisible INDICATOR_DATA plot (clrNONE) without adding chart clutter. 👉 Read | AppStore | @mql5dev
14 170
16
MetaTrader 5 object events provide a structured way to react to chart object lifecycle changes, including click, move, proper
MetaTrader 5 object events provide a structured way to react to chart object lifecycle changes, including click, move, property edits, creation, and deletion. Most of these notifications are disabled by default and must be explicitly enabled, reducing overhead when object monitoring is not required. Event-based handling avoids constant polling of object state, which increases CPU use and complexity. It also supports defensive logic when users modify application-owned objects, intentionally or accidentally. A practical case is object duplication via Ctrl+drag. MT5 generates a new standardized name (timeframe, object type, random suffix), which can be used to detect likely duplicates and enforce rules such as single-instance informational objects. 👉 Read | Forum | @mql5dev
13 599
17
Work on a MetaTrader 5 custom crosshair indicator in MQL5, built from mouse event handling without requiring OOP. Key point i
Work on a MetaTrader 5 custom crosshair indicator in MQL5, built from mouse event handling without requiring OOP. Key point is converting OS screen X/Y into chart time/price via ChartXYToTimePrice, then driving OBJ_VLINE and OBJ_HLINE with those values. Intraday timestamps on higher timeframes are expected due to fractional coordinate mapping. Implementation evolves from always-on crosshair to middle-button toggle, then adds hide/show control via a key event. Price is normalized to the symbol tick size to keep the horizontal line on valid tradable prices. Final step extracts the crosshair logic into a header, adds a structure to return current mouse-derived values, and keeps the indicator file minimal for reuse across tools. 👉 Read | Signals | @mql5dev
13 354
18
Many MT5 trading models fail live because they overfit history and don’t cope with regime shifts; accuracy often collapses to
Many MT5 trading models fail live because they overfit history and don’t cope with regime shifts; accuracy often collapses to the low‑50% range with large drawdowns. The article proposes a “quantum-inspired” architecture that treats market signals as interacting components: superposition (conflicting multi-timeframe evidence), interference (signals reinforcing/canceling), decoherence (event impact decays), and resonance (cycle alignment amplifies trends). The EA processes 400+ quantized features (price, volume, indicators, patterns, time/cycle signals) through a pipeline combining quantum-style signal processing, multi-level memory, Markov regime states, transformer attention, and a 256-dim state-space model for long-horizon dynamics. It also uses dynamic class weighting to improve recall on rare strong-move events. Delivered as MQL5 source (Simpl... 👉 Read | NeuroBook | @mql5dev
13 531
19
MetaTrader 5 frames AI trading as an end-to-end engineering workflow: terminal-grade market data, research in Python, model d
MetaTrader 5 frames AI trading as an end-to-end engineering workflow: terminal-grade market data, research in Python, model deployment, deterministic testing, and automated execution in one ecosystem. The emphasis is on turning ideas into reproducible systems, not persuasive predictions. Python integration pulls bars, ticks, symbol specs, and account state directly from the terminal, reducing train/live data mismatches. Trained models can be exported to ONNX and embedded into MQL5 EAs, keeping inference local and testable in the Strategy Tester. For LLM-assisted analysis, WebRequest can power an on-chart assistant, but external services are non-deterministic and unavailable in the Strategy Tester. The practical pattern is structured LLM outputs plus an “AI signal dispatcher” that validates confidence, margin, broker limits, duplicates, and strategy r... 👉 Read | NeuroBook | @mql5dev
12 929
20
A time-based exit routine can be built by storing configured hour and minute values, then checking the platform time on each
A time-based exit routine can be built by storing configured hour and minute values, then checking the platform time on each tick. When the current time matches the configured schedule, the logic can run only once per day to prevent repeated triggers. A separate date check should confirm that the current weekday is Friday before acting. If not Friday, the routine should exit without changes. When both conditions are met, filter open positions by symbol (currency pair) and evaluate profit per position. Close only positions with positive profit, leaving losing or zero-profit positions untouched. Use reliable order/position iteration, handle partial fills, validate trade permissions, and log close results and error codes for auditing. 👉 Read | Signals | @mql5dev
13 663