CRingBuffer

  • 程序库
  • Christian Stern
    Christian Stern
    As CEO of a Switzerland-based specialist company, I combine many years of experience in banking with deep expertise in developing high-quality MQL5 solutions. Our focus is on programming statistical tools for financial analysis and time-series evaluation that unite methodological precision with
  • 版本: 1.0

CRingBuffer - Numeric ring buffer with lightweight high-performance statistics engine



CRingBuffer is a powerful MQL5 library for numeric rolling-window analysis. After each insertion it immediately provides

mean, variance, standard deviation, percentiles, z-scores, min/max tracking and normalized values - all in O(1) to O(n log n).

Table of contents:

  1. Application area
  2. Two operating modes
  3. Basic statistics
  4. Welford statistics (numerically stable, recommended for large price levels)
  5. Percentiles
  6. Z-score analysis (three modes)
  7. Min/max tracking (O(1))
  8. Min-max normalization
  9. Placeholder logic
  10. Virtual index
  11. Extendability through inheritance (6 event hooks)
  12. Statistics snapshot via RBufStats (30+ metrics in one object)
  13. Advantages
  14. Example
  15. Statistics functions at a glance
  16. Updates & Support


1. Application area:

CRingBuffer is designed for MQL5 developers who need statistical rolling-window analysis in indicators, expert advisors or libraries
.

Typical use cases:

- Continuous market observation (price, spread, volume, ATR values)
- Normalization of signals to [0,1] for scoring systems
- Z-score-based outlier detection in real time or in backtests
- Percentile-based threshold determination (timeframe-robust)
- Building custom indicator calculation layers through inheritance
- Component in multi-layer class architectures
- Data collection in event-based systems with variable history length

Not suitable for:

- Real-time order book analysis with very high tick frequency  (no lock-free parallel processing)
- Storage of non-numeric data

2. Two operating modes:

- Static buffer: fixed window size, oldest values are automatically
  overwritten. Ideal for ATR-14, RSI-14 or any rolling windows.

- Dynamic buffer: window size can be changed at runtime. Individual values
  can be removed. Capacity grows or shrinks as needed.

3. Basic statistics (all O(1) after insertion):


- Sum, sum of squares
- Arithmetic mean
- Bessel-corrected sample variance and standard deviation

4. Welford statistics (numerically stable, recommended for large price levels):


- Welford mean, Welford variance, Welford standard deviation
- Robust against cancellation effects in long series or at high price levels
  (e.g. BTCUSD ~100,000 or Nasdaq index)

5. Percentiles:

- getPercentile()  - single percentile with linear interpolation (Hyndman & Fan, method 7)
- getPercentiles() - multiple percentiles in a single sorted pass
- Placeholders (EMPTY_VALUE, NaN, Inf) are automatically filtered out

6. Z-score analysis (three modes):

- getLastZScore()    - current z-score of the newest value
- getZScoreAt()       - look-ahead-free z-score for backtesting
- getZScores()         - expanding window (look-ahead-free) or rolling  for all buffer values at once

7. Min/max tracking (O(1)):

- Running minimum and maximum of all valid values
- Virtual positions of min and max retrievable as indices
- Range (max - min) available at any time
- Smoothed range history for trend analysis

8. Min-max normalization:

- getNormalizedValue()     - normalize any value to [0,1]
- getNormalizedValueAt()  - normalize value at a virtual index
- getNormalizedValues()    - export all buffer values in normalized form
- Fallback 0.5 for constant data (defined behavior, not an error)

9. Placeholder logic:

- EMPTY_VALUE, NaN and Inf are detected automatically
- They occupy a slot but are not considered in any statistic
- MQL5 indicator buffers are initially filled with EMPTY_VALUE - this
  filtering prevents statistical distortion without additional code

10. Virtual index:


- Uniform addressing: index 0 = oldest, index n-1 = newest value
- Internal ring buffer mechanics are fully transparent to the caller

11. Extendability through inheritance (6 event hooks):

- OnAddValue()        - after each insertion
- OnRemoveValue()  - on removal or overwrite
- OnChangeValue()   - after replaceValue()
- OnChangeArray()   - after each structural change
- OnSetMaxTotal()    - after a capacity change
- OnShrink()             - after buffer reduction
- All hooks fire after the statistics have been fully updated

12. Statistics snapshot via RBufStats (30+ metrics in one object):

- Group A: Basic statistics (mean, variance, stddev, min, max, range, sum,
  total_count, valid_count, last_value, previous_value, oldest_value,
  min_index, max_index, avg_range, avg_diff, fill_rate)
- Group B: Welford statistics (welford_mean, welford_variance, welford_stddev)
- Group C: Percentiles (Q05, Q10, Q25, Median, Q75, Q90, Q95, IQR)
- Group D: Z-score and normalization (zscore, zscore_prev, zscore_delta,
  norm_last, norm_oldest)
- Validation method Validate(), copy constructor, operator=()

13. Advantages:

- No custom ring buffer code required: replaces several hundred lines of recurring boilerplate implementation
- Numerically stable Welford method available in parallel to the sum formula 
- Three z-score modes including a look-ahead-free mode for backtest-compliant signal evaluation
- Automatic placeholder filtering prevents statistical distortion caused by EMPTY_VALUE initialization of MQL5 indicator buffers
- Incremental O(1) update of all statistics after each insert - no expensive recalculation during queries
- Fully extendable through inheritance and event hooks without changing the base class
- Uniform virtual index hides the complexity of the internal ring buffer
- Complete English documentation (API reference, behavioral details, code examples, pitfalls)

14. Example:

1. Copy CRingBuffer.ex5 to the desired project directory
2. Include it in the MQL5 file:

   #include "CRingBuffer_standalone.ex5"

3. Instantiate buffer:

   CRingBuffer buf(20, false);   // Static buffer, capacity 20
   CRingBuffer dyn(20, true);    // Dynamic buffer


4. Add values and retrieve statistics:

   buf.addValue(close[0]);
   double mean   = buf.getMean();
   double stddev = buf.getWelfordStdDev();
   double zscore = buf.getLastZScore();


No further dependencies. The library is completely self-contained.

15. Statistics functions at a glance

CRingBuffer provides immediately updated metrics after each insertion. The following overview shows the most important statistical groups, the central methods and the practical benefits in daily MQL5 development.
The table serves as a compact quick reference for analysis, signal evaluation and normalization within rolling-window scenarios.
Group Methods Benefit
Basic statistics getSum(), getSumSq(), getMean(), getVariance(), getStdDev() Provides the classic metrics for mean, dispersion and total sum of valid values.
Welford statistics getWelfordMean(), getWelfordVariance(), getWelfordStdDev() Offers numerically more stable alternatives for long series, high price levels and small value differences.
Min/max tracking getMin(), getMax(), getMinIndex(), getMaxIndex(), getMinMaxRange() Describes extreme values, their positions and the current buffer range for fast state assessments.
Range history getAverageRange(), getRangeHistory() Shows how the range evolves over time and supports volatility analysis.
Average change getAverageDiff() Measures the average absolute change between consecutive valid values and helps assess market dynamics.
Recommendation: For high price levels and long runtimes, the Welford methods are usually the more robust choice. For compact real-time queries, basic statistics are often sufficient.


16. Updates & Support:

- Support exclusively via the internal MQL5 communication system
- Error reports and improvement suggestions are answered promptly

推荐产品
Quick Scale Trading Panel FREE Quick Scale Trading Panel FREE is a manual trading utility for MetaTrader 5 designed to simplify order execution and position sizing directly from the chart. The panel allows traders to open and manage trades using predefined lot multipliers, reducing the need for manual calculations during fast market conditions. Users can define a base lot size and execute trades using multiplier buttons (1x, 2x, 4x, 8x). This helps maintain consistent position sizing and improv
FREE
LT Mini Charts
Thiago Duarte
4.88 (8)
This is a utility indicator that creates mini charts on left side of the chart you are looking at. It is very useful to watch many timeframes simultaneously, without having to change between multiple charts. Its configuration is very simple. You can have up to 4 mini charts opened. They automatically load the template of the "parent" chart. If you have any doubt please contact me. Enjoy! This is a free indicator, but it took hours to develop. If you want to pay me a coffee, I appreciate a lot  
FREE
AILibrary
Marius Ovidiu Sunzuiana
AI Utility Library for MQL5 The AI Utility Library for MQL5 is a next‑generation development framework that brings artificial intelligence, adaptive logic, and intelligent data processing directly into the MetaTrader ecosystem. Designed for traders, quants, and algorithm developers who demand more than traditional indicator logic, this library transforms MQL5 into a smarter, more predictive, and more efficient environment for building advanced trading systems. Built with a modular architectur
EA34 Tanin Force
Nhat Tien Duong
5 (2)
[FREE EA] EA34 TANIN FORCE: MACD & STOCH ENGINE (Prop Firm Ready) Are you tired of market noise and false breakouts? Meet EA34 Tanin Force, a commercial-grade Expert Advisor designed specifically for the EURUSD on the M15 timeframe. This system combines the raw trend-following power of MACD with the precision timing of the Stochastic Oscillator. PERFORMANCE HIGHLIGHTS (6-Year Stress Test 2020 - 2026): * Symbol & Timeframe: EURUSD | M15 * Set & Forget: Hard Stop Loss and Take Profit. No
FREE
Horizon Yenline
Keijinro Mizutani
Horizon Yen Line En is a MetaTrader 5 Expert Advisor designed for USDJPY. The Horizon Line series is built around the idea of creating symbol-specific EAs instead of forcing one generic setup across all markets. Yenline is designed for USDJPY on the M15 timeframe and uses an internal logic based on EMA behavior and price action. The core entry logic, internal filters, detailed conditions, and threshold values are not disclosed. However, the EA includes practical user-adjustable settings such as
The Ultimate Arbitrage Machines EA is a professional-grade solution designed for both statistical and triangular arbitrage in forex markets. This EA adaptively captures mean-reversion opportunities while employing robust risk controls. It features dynamic threshold adjustment, adaptive risk management, multi-strategy execution, and real-time market adaptation. The EA auto-calibrates Z-Score parameters, intelligently positions TP/SL, and uses multi-factor position sizing. It detects both statist
FREE
The Volume Weighted ATR indicator is a helpful tool for measuring market activity. It is based on the idea of the Volume-Weighted ATR. Combining these two elements helps identify potential turning points or breakout opportunities. The indicator for the classification of the activity of the market uses the moving average and its multiples. Accordingly, where the VWATR bar is located (relative to the moving average), it is labelled as ultra-low, low, average, high, very high or ultra high. The Vo
FREE
What is SMC Market Structure Pro? SMC Market Structure Pro is an automated trading Expert Advisor for MetaTrader 5 , developed based on Smart Money Concept (SMC) and market structure analysis . The EA is designed to help traders follow the natural flow of the market , focusing on price structure instead of indicators or lagging signals. How Does the EA Work? The EA analyzes market structure changes using pure price action: Detects higher highs & higher lows for bullish structure Detects l
FREE
Vertical Volume
Kim Yonghwa
4.8 (5)
特点 用于检查价格量的指标。 主要适用于EURUSD,其他货币对可能无法工作或计算时间较长。 为了平稳使用,请打开“将图表边界从右边界向右移”的选项,如屏幕截图所示。 出现新的柱状数据时重置数据。 变量 COlOR:指标颜色设置 WIDTH:指标宽度设置 PERIOD:确定计算数据的时间周期 ------------------------‐-----------------------------------------------------------------------------------------------------------------------------------------------
FREE
Shaka Laka Gold EA
Sandeep Kumar Tiwary
Specialized for GOLD Trading with Advanced VWAP Strategy Transform your Gold trading with this sophisticated dual VWAP system specifically optimized for XAUUSD markets. Key Features Dual VWAP Technology Fast VWAP (100 bars) for short-term momentum Slow VWAP (500 bars) for trend confirmation Volume-weighted precision pricing for optimal entry/exit points Intelligent Position Management Smart scaling system that adds positions on favorable retracements Automatic position reversals w
Steady Runner NP EA
Theo Robert Gottwald
2.5 (2)
Introducing Steady Runner NP EA (Free Version): Precision Trading for GBPUSD M5 What is Steady Runner NP EA? Steady Runner NP EA is a   mathematically designed Expert Advisor (EA)   exclusively crafted for the   GBPUSD M5 timeframe . Built with advanced algorithms and statistical models, this EA automates your trading strategy to deliver   precision, consistency, and discipline   in every trade. Whether you're a seasoned trader or just starting out, Steady Runner NP EA is your reliable par
FREE
Nikkei225 Gap ContinuationEA
Francesc Jordi Mallol Nolden
Nikkei 225 Gap Continuation EA Automated opening-gap continuation strategy for the Nikkei 225 Nikkei 225 Gap Continuation EA is an automated trading system for MetaTrader 5 designed specifically for the Japanese stock index. It searches for significant opening gaps and enters only when price action confirms a possible continuation in the same direction. The strategy combines the opening gap, a configurable opening range and session VWAP confirmation. It also includes risk-based position sizing,
FREE
This robot sends Telegram notifications based on the coloring rules of PLATINUM Candle indicator. Example message for selling assets: [SPX][M15] PLATINUM TO SELL 11:45. Example message for buying assets : [EURUSD][M15] PLATINUM TO BUY 11:45 AM. Before enable Telegram notifications  you need to create a Telegram bot, get the bot API Key and also get your personal Telegram chatId. It's not possible to send messages to groups or channels. You can only send messages to your user chatId. You should
FREE
Crystal Dashboard
Muhammad Jawad Shabir
Crystal Profit Dashboard – Real-Time MT5 Account Performance Utility Overview Crystal Profit Dashboard is a lightweight MetaTrader 5 utility that provides real-time profit and loss monitoring directly on the chart. It offers a clean, modern dashboard interface that updates account performance without clutter, allowing traders to focus on execution while keeping essential metrics visible. Designed for scalpers, intraday traders, and swing traders, this tool provides accurate floating profit/los
FREE
HTF Candles Nika 可将任意更高时间框架的完整K线直接叠加显示在MetaTrader 5的当前图表上,无需切换图表即可获得多时间框架视角。 主要功能 - 在当前图表上以矩形加影线的形式绘制高时间框架K线 - 支持标准K线和平均K线(Heiken Ashi)两种显示模式 - 实时倒计时,显示当前高时间框架K线距关闭的剩余时间 - 多头和空头K线颜色可自定义 - 自动或手动控制K线宽度 - 可配置影线宽度、字体、字号及文字位置偏移 - 适用于任何品种和时间框架组合 - 自动检测交易时段间隙并调整渲染 - 轻量级 — 仅使用图表对象,无指标缓冲区 输入参数 显示设置 - Max Lookback — 绘制的高时间框架K线数量(默认:500) - Timeframe — 要显示的高时间框架(默认:H1) - Bars Mode — K线或平均K线模式 颜色设置 - Up Color — 多头K线颜色(默认:DodgerBlue) - Down Color — 空头K线颜色(默认:Red) - Frame Color — 时间框架标签颜色(默认:Red) - Count
FREE
GOM Trade Manager
Wannapach Chinnaprapa
GOM Trade Manager helps you execute trades the way you want it. Works on all instruments Forex, Commodities, & Crypto. It helps you with lot calculations, spread addition and balance calculations so you can just focus on actual trading. For full automatic planned management, stackable triggers and spread widening protection >> check out GOM Trade Manager Pro . ------------------------------------------NOTABLE FEATURES------------------------------------------ You set everything based on bid
FREE
Smart FVG Stats
- Md Rashidul Hasan
5 (1)
The  Smart FVG Statistics Indicator  is a powerful MetaTrader 5 tool designed to automatically identify, track, and analyze Fair Value Gaps (FVGs) on your charts. Love it? Hate it? Let me know in a review! Feature requests and ideas for new tools are highly appreciated. :) Try "The AUDCAD Trader": https://www.mql5.com/en/market/product/151841 Key Features Advanced  Fair Value Gap  Detection Automatic Identification : Automatically scans for both bullish and bearish FVGs across specified histo
FREE
徽标 MT4 版本: https://www.mql5.com/en/market/product/121289 MT5 版本: https://www.mql5.com/en/market/product/121290 水印 MT4 版本: https://www.mql5.com/en/market/product/120783 MT5 版本: https://www.mql5.com/en/market/product/120784 “Logo”脚本旨在在 MetaTrader 4 (MT4) 的交易图表上显示自定义徽标或图像作为背景。此脚本允许交易者使用徽标或任何其他所需图像来个性化他们的图表。 工作原理: 图像准备: 首先选择您想要在图表上显示为徽标的图像。 使用任何图像编辑软件将图像转换为位图文件格式 (.bmp)。 保存图像: 转换完成后,将 .bmp 图像文件保存到 MT4 安装目录中的以下目录: \MQL4\Images\ (通常位于 Program Files 文件夹下的 MetaTrader 4 文件夹中。) 脚本配置: 在 MetaEditor
FREE
The MelBar EuroSwiss 1.85x 2Y Expert Advisor  is a specific purpose profit-scalping tool which success depends on your understanding of its underlying strategy and your ability to configure it. Backtest results using historical data from 6 February 2018 15:00 to 19 February 2020 00:00 for the EUR/CHF (M30) currency pair proves very highly profitable. Initial Deposit : US$500 Investment returns : US$1426.20 Net Profit : US$926.20 ROI : 185.24% Annualized ROI : 67.16% Investment Length : 2 yea
FREE
Axilgo PipPiper CoPilot
Theory Y Technologies Pty Ltd
5 (2)
Axilgo Pip Piper CoPilot Elevate your trading game with the Axilgo Pip Piper CoPilot, the first in our revolutionary Pip Piper Series. This all-inclusive toolset is meticulously crafted for serious traders, focusing on key areas such as Risk Management, Trade Management, Prop Firm Rule Compliance, and Advanced Account Management . With CoPilot, you’re not just investing in a tool—you’re gaining a strategic partner in the intricate world of trading. Important Notice: To ensure you receive the fu
FREE
Gold Adaptive EA MT5 is an automated Expert Advisor for MetaTrader 5 designed for trading Gold (XAUUSD). The EA uses several internal trading models and market filters to adapt to different phases of Gold price movement. Instead of relying on one fixed entry pattern, Gold Adaptive EA MT5 analyzes market behavior and selects suitable logic for trend continuation, impulse moves, pullbacks and selected recovery conditions. The main goal of the Expert Advisor is to provide a structured Gold tradi
FREE
CRT Advanced
Jose Antonio Cantonero Velasco
SISTEMA DE TRADING ALGORITMICO PROFESIONAL VISIÓN GENERAL CRT ADVANCED   es un sistema de trading automatizado de alta precisión que opera basado en el análisis de formaciones de velas japonesas. Desarrollado específicamente para mercados de Forex, indices y commodities, implementa una metodología sistemática que combina price action puro con gestión avanzada de riesgo. Contacte conmigo después de la compra, le enviaré sets y soporte gratuito. Gracias.
FREE
Auric Mohd iK
Md Iqbal Kaiser
AURIC MOHD-iK is a dynamic, logic-based Expert Advisor (EA) engineered specifically for trading XAUUSD (Gold). Unlike standard trading systems that rely on lagging, unreliable indicators, this EA operates purely on clean price logic—executing trades the way an experienced human trader naturally reads the market. This version is completely free with limitations, offering permanent value to your trading setup with zero hidden costs. Active Auric Mode That's it!!!!!!!!!! Core Trading Parameters Ac
FREE
THE>>>>>>___IIIREX_CLAW_vs_CLUSTER_EAIII___<<<<<< Set1: Price Offset 100, Stopp Loss 100-1000, Take Profit 2000  Set2: Price Offset 200, Stopp Loss 100-1000, Take Profit 2000 Set3: Price Offset 100, Stopp Loss 100-1000, Take Profit 1000 Set4: Price Offset 200-500, Stopp Loss 100-1000,  TakeProfit 1000 Set5: PriceOffset 100-1000 (Recomment 200) higher is lower Risk,   Stopp Loss  500  Take Profit  1000, 2000,  3000 it is the same Target Set it to your Moneymanagement  Indize: DE40  “IC Market” R
FREE
Frato Vwap Bands
Francisco Felipe Alves Da Silva Rocha
Frato VWAP 带——带标准差的成交量加权平均价格 Frato VWAP 带指标结合了传统的成交量加权平均价格 (VWAP) 和动态波动率带。它提供成交量加权平均价格的多周期视图。 主要功能: 该指标计算成交量加权平均价格 (VWAP),并根据标准差绘制最多 3 条上下波动率带。每次选择新的周期(小时、4 小时、日线、周线、月线)时,计算都会重置,从而支持日内和长期趋势分析。 标准差带的权重与 VWAP 的权重相同。这使得它们具有动态性,能够灵敏地反映市场活动,有助于识别异常的价格波动和潜在的反转区域。 解读指南:VWAP 线通常用作加权平均价格的参考线。高于 VWAP 线的交易表明买盘压力,而低于 VWAP 线的交易则表明卖盘压力。这些带状区域作为动态参考水平,外侧带状区域指示具有统计显著性的极值。 配置参数: 周期:定义 VWAP 重置频率。 - 1 小时 (H1) – 每 00:00 重置一次。 - 4 小时 (H4) – 每 4 小时重置一次(00:00、04:00、08:00 等)。 - 日线 – 在每个交易日开始时重置。 - 周线 – 在每个交
FREE
Fair Value Gap Zone
Mattia Impicciatore
总体描述 Fair Gap Value 指标在 MetaTrader 5 图表上识别并突出显示“公平价值缺口”(fair value gaps)。当一根 K 线的最低价与隔一根中间 K 线后的另一根 K 线的最高价之间形成价格空白时,就产生了公平价值缺口。该指标使用彩色矩形(多头和空头)标注这些区域,为基于价格行为的交易策略提供直观支持。 主要功能 多头缺口检测 :用绿色矩形高亮当前 K 线最低价与两根前序 K 线最高价之间的缺口。 空头缺口检测 :用红色矩形高亮当前 K 线最高价与两根前序 K 线最低价之间的反向缺口。 动态延展 :可将矩形向右延伸指定数量的 K 线。 透明度控制 :可配置矩形的不透明度,以免遮挡底部图表。 显示开关 :支持单独开启或关闭多头/空头缺口的绘制。 历史扫描限制 :可选设置扫描的最大 K 线数量,以提升大数据量图表的性能。 自动清理 :切换周期或首次加载时,会自动删除并重绘所有已有缺口。 输入参数 LookbackBars :用于计算缺口的回溯 K 线数量(默认 3)。 MaxBars :最大扫描 K 线数量(0 = 不限;默认 0)。 ShowBullG
FREE
Sandman FX
Michael Prescott Burney
1 (1)
Sandman FX Expert Advisor – EURUSD H1 Sandman FX is a precision-engineered Expert Advisor built specifically for the EURUSD pair on the H1 timeframe. Designed with robust technical architecture, it utilizes adaptive logic to respond dynamically to changing market conditions. The system incorporates session filtering, intelligent trade management, signal confirmation layers, and built-in protection mechanisms to ensure strategic execution in a wide range of market environments. This EA features:
FREE
TradeVision Pro
Ian Nganga Comba
TradeVisonPro Forex Analyzer Pro MT5 交易账户分析与监控仪表板 TradeVisonPro Forex Analyzer Pro 是一款专为 MetaTrader 5 用户设计的交易分析和账户监控解决方案。 本产品将 MT5 交易数据整理到结构化的网页仪表板中,使交易者能够查看账户信息、监控未平仓头寸、分析交易历史、跟踪策略、记录交易日志以及查看绩效统计数据。 TradeVisonPro Forex Analyzer Pro 旨在帮助交易者整理交易信息,并通过受支持的桌面和移动网页浏览器访问这些数据。 主要功能 • MT5 账户仪表板 • 未平仓头寸监控 • 交易历史分析 • 交易日历 • 策略跟踪 • 交易日志 • 账户绩效统计 • 绩效报告 • 交易通知 • 多账户支持 • 可分享的只读报告 MT5 账户仪表板 在一个结构化的仪表板中查看 MetaTrader 5 交易账户的重要信息。 可显示的信息包括: • 账户余额 • 净值 • 可用保证金 • 保证金水平 • 未平仓头寸 • 浮动盈亏 • 交易量 • 经纪商信息 • 账户信息 仪表板集中显示
FREE
Relative Average Cost of Open Positions Indicator Description:   The “Relative Average Cost of Open Positions” indicator is a powerful tool designed for traders who engage in mean reversion strategies. It calculates the average entry price for both buy and sell positions, considering the total volume of open trades. Here are the key features and advantages of this indicator: Mean Reversion Trading: Mean reversion strategies aim to capitalize on price movements that revert to their historical ave
FREE
Pullback EA xau
Katja Nordhausen
EA 描述(簡短、清晰、適合市場) EA_XAU_Fibo_M15_FINAL_TTP_MODERN_v2_00 是一款基於規則的 XAUUSD(黃金)回調 EA,適用於 M15 圖表,專門針對回調至定義的斐波那契區域(0.500–0.667, 可選接近 0.618)的回調進行交易——但只有當 H1 上的總體趨勢過濾器確認明確方向時才會進行交易。 該 EA 將結構(波動範圍 + 斐波那契回調)與趨勢偏好(EMA20/50、RSI 和可選 MACD)相結合,並採用現代、經紀商安全的執行和風險管理: 停損/凍結級別安全、填補後備方案(RETURN→IOC→FOK)、帶有硬上限的真實停損風險評估,以及每筆交易可選的美元硬損失上限。 交易默認僅在新 M15 柱上評估。 策略邏輯 1)市場和設置識別(M15) 通過 SwingBars 確定相關的波動高/低範圍。 據此計算斐波那契回調區: 標準:0.500 至 0.667 可選:額外接近 0.618(以點為單位的容差) 2)方向設定(H1 偏好) 只有滿足 H1 偏好時,才會釋放交易方向: EMA20/EMA50 趨勢方向
FREE
该产品的买家也购买
WalkForwardOptimizer MT5
Stanislav Korotky
3.78 (9)
WalkForwardOptimizer library allows you to perform rolling and cluster walk-forward optimization of expert advisers (EA) in MetaTrader 5. To use the library include its header file WalkForwardOptimizer.mqh into your EA source code, add call provided functions as appropriate. Once the library is embedded into EA, you may start optimization according to the procedure described in the User guide . When it's finished, intermediate results are saved into a CSV file and some special global variables.
ModernUI Library
Levi Dane Benjamin
适用于 MetaTrader 5 的 ModernUI 库 ModernUI 是一个用于 MetaTrader 5 的图表内用户界面库。它可以帮助 MQL5 开发者在 MT5 图表环境中构建更清晰的 EA 面板、仪表盘、设置窗口、表单、表格、对话框、抽屉式面板以及紧凑型交易风格界面。 它适合希望获得比零散图表对象更专业的界面层,同时仍然完全掌控自己 EA、指标或工具逻辑的开发者。 Modern UI - 用户指南   | EA 示例演示 你可以构建什么 ModernUI 并不局限于某一种面板类型。它为你提供了一个可复用的界面层,几乎可以用于任何你想在 MetaTrader 5 图表中构建的工具。 你可以用它创建简单的设置界面、紧凑型交易面板、完整仪表盘、数据视图、控制面板、账户工具、流程界面、监控界面、实用工具窗口、商业 EA 前端界面等等。 随附的演示展示了几个实用示例,但它们只是起点。如果你的 MQL5 项目需要按钮、输入框、表格、对话框、标签页、抽屉面板、图表、状态区域,或需要一种更清晰的方式在图表上展示信息,ModernUI 都可以为你提供构建模块。 主要功能 适用于 Me
Binance Library MetaTrader 5 connects your Expert Advisors, indicators, and scripts to Binance.com and Binance.US directly from MetaTrader 5. It is a developer library for building custom Binance integrations inside MT5, not a standalone trading robot or copier. The library helps you add Binance instruments to Market Watch, read symbol specifications, load current and historical market data, check wallet balances, manage orders, and track open positions. It supports Spot, USD-M futures, and COI
MetaCOT 2 CFTC ToolBox MT5
Vasiliy Sokolov
3.4 (5)
Friends, join us! Ask questions and connect with like-minded traders: MetaCOT Public Group MetaCOT Information Channel: news, CFTC reports, and signals: MetaCOT Channel Here’s to successful trading and new profitable signals for us all! Attention! Recently, certain countries have been blocking access to the cftc.gov website. As a result, users in these countries are giving the product low ratings. MetaCOT has always adhered to the highest quality standards and is in no way associated with th
Native Websocket
Racheal Samson
5 (6)
An   easy to use, fast,  asynchronous   WebSocket library  for MQL5. It supports: ws://   and   wss://  (Secure "TLS" WebSocket) text   and   binary   data It handles: fragmented message  automatically (large data transfer) ping-pong   frames  automatically (keep-alive handshake) Benefits: No DLL required. No OpenSSL installation required. Up to 128 Web Socket Connections from a single program. Various Log Levels for error tracing Can be synchronized to MQL5 Virtual Hosting . Completely native t
本服务程序下载后,将作为 Dom BookHeatMAP Lightning Trading Panel 的服务支持程序使用。 Dom BookHeatMAP Lightning Trading Panel   下载地址: https://www.mql5.com/zh/market/product/159414?source=Site+Market+MT5+Search+Rating006%3aDom+BookHeatMAP+Lightning+Trading+Panel 请您先将下载的文件拖拽至 MT5 数据目录下的对应服务文件夹( `MQL5\Services`)内,并确认文件已成功放置。随后,双击运行启动服务,系统将自动加载相关组件并初始化服务环境。 具体操作位置详见截图:按照截图所示流程完成启动后,Dom BookHeatMAP Lightning Trading Panel 的主界面将正常显示,此时您即可启用其全部功能,体验高效、流畅的 DOM 闪电交易服务,包括实时深度图热力图监控和快速订单执行等核心特性。 请注意,为保障交易系统稳定运行,务必确保该服务程序中设置的交
GetFFEvents MT5 I tester capability
Hans Alexander Nolawon Djurberg
Want to get all events like Previous/Forecast/Actual values for each news to analyze/predict it? By this simple library you can do it easily,Just import/integrate the library into your system,then get all possible values for each news   Even In Strategy Tester   . Note: Please add the address " https://www.forexfactory.com/ " of news feed at your MT5 tab > Tools > Options > Expert Advisors > Check Allow web request for listed URL. Since the WebRequest() function can't be called from indicator ba
The library is dedicated to help manage your trades, calculate lot, trailing, partial close and other functions. Lot Calculation Mode 0: Fixed Lot. Mode 1: Martingale Lot (1,3,5,8,13) you can use it in different way calculate when loss=1 ,when profit=0. Mode 2: Multiplier Lot (1,2,4,8,16) you can use it in different way calculate when loss=1 ,when profit=0. Mode 3: Plus Lot (1,2,3,4,5) you can use it in different way calculate when loss=1 ,when profit=0. Mode 4: SL/Risk Lot calculate based on s
This is a simplified and effective version of the library for walk forward analysis of trading experts. It collects data about the expert's trade during the optimization process in the MetaTrader tester and stores them in intermediate files in the "MQL5\Files" directory. Then it uses these files to automatically build a cluster walk forward report and rolling walk forward reports that refine it (all of them in one HTML file). Using the WalkForwardBuilder MT5 auxiliary script allows building othe
OrderBook History Library
Stanislav Korotky
3 (2)
Order Book, known also as Market Book, market depth, Level 2, - is a dynamically updated table with current volumes of orders to buy and to sell specific financial instument at price levels near Bid and Ask. MetaTrader 5 provides the means for receiving market book from your broker, but in real time only, without access to its history. The library OrderBook History Library reads market book state in the past from archive files, created by OrderBook Recorder . The library can be embedded into you
BitMEX Trading API
Romeu Bertho
5 (1)
Cryptocurrency analysis has never been easier with Crypto Charts for MetaTrader 5. Now, trading on BitMEX has never been easier with BitMEX Trading API for MetaTrader 5. BitMEX Trading API library was built to be as easy to use as possible. Just include the library into your Expert Advisor or Script, call the corresponding methods and start trading! Features Trade on BitMEX and BitMEX Testnet. Build and automate your strategies. Concern more with the trading strategy logic and less with the co
Teclado trader, é uma BIBLIOTECA que você pode chamar no OnChartEvent para abrir posição de compra/venda/zerar, os botões padrões são: V = venda C = compra Z = zerar posições a mercado S = zerar posições opostas e depois a mercado X = zerar posições opostas Além da função de teclado, é possível mostrar os estados do ExpertAdvisor usando o MagicId, com informação de: lucro mensal, semanal, diario, e posição aberta, para isto use o OnTick, ou qualquer outro evento (OnTimer / OnTrade / OnBookEven
Goliath Mt5
Nicolokondwani Biscaldi
Goliath MT5 - scalper fully automated Expert Advisor for medium-volatile forex markets P roperties: The Library trades 10 currency pairs (USDCHF, EURCHF, EURGBP, AUDUSD, USDCAD, GBPUSD, EURUSD, NZDUSD, CADCHF, EURAUD, EURCAD, AUDJPY) The Library does not use martingale The Library sets a fixed stop loss and take profit for all orders The Library only trades a user input volume The Library can be installed on any currency pair and any timeframe Recommendations: Before using on a real account, t
Binance Library
Hadil Mutaqin SE
5 (1)
The library is used to develop automatic trading on Binance Spot Market from MT5 platform. Support all order types: Limit, Market, StopLimit and StopMarket Support Testnet mode Automatically display the chart on the screen Usage: 1. Open MQL5 demo account 2. Download Header   file and EA sample   https://drive.google.com/uc?export=download&id=1kjUX7Hyy02EiwTLgVi8qdaCNvNzazjln Copy Binance.mqh to folder \MQL5\Include Copy  BinanceEA-Sample.mq5 to folder \MQL5\Experts 3. Allow WebRequest from MT5
Gold plucking machine   Gold plucking machine   is an Expert Advisor designed specifically for trading gold. The operation is based on opening orders using the Fast and Slow lines indicator, thus the EA works according to the "Trend Follow" strategy, which means following the trend. Use grid strategy to place orders without stop loss operation, so please make sure the account has sufficient funds. magic number        -  is a special number that the EA assigns to its orders. Lot Multiplier     
The library is used to develop automatic trading on Binance Futures Market from MT5 platform. Support Binance Futures USD-M and COIN-M Support Testnet mode Support all order types: Limit, Market, StopLimit, StopMarket, StopLoss and TakeProfit Automatically display the chart on the screen Usage: 1. Open MQL5 demo account 2. Download Header file and EA sample https://drive.google.com/uc?export=download&id=17fWrZFeMZoSvH9-2iv4WDJhcyxG2eW17 Copy BinanceFutures.mqh to folder \MQL5\Include Copy  Bina
MT4/5通用交易库(  一份代码通用4和5 ) #ifdef __MQL5__      #define KOD_TICKET ulong      #define KOD_MAGIC   long #else        #define KOD_TICKET long      #define KOD_MAGIC   int #endif class ODLIST; #import "K Trade Lib Pro 5.ex5"       //祝有个美好开始,运行首行加入    void StartGood() ;    //简单开单    long OrderOpen( int type, double volume, int magic, string symbol= "" , string comment= "" , double opprice= 0 , double sl= 0 , double tp= 0 , int expiration= 0 , bool slsetmode= false , bool tpsetmode= false );    //复杂开单
1. 这是什么 MT5系统自带的优化结果非常少,有时候我们需要研究更多的结果,这个库可以让你在回测优化时可以输出更多的结果。也支持在单次回测时打印更多的策略结果。 2. 产品特色 优化的输出的结果非常多。 可以自定义CustomMax。 输出结果在Common文件夹。 根据EA名称自动命名,且同一个EA多次回测会自动更新名称,不会覆盖上一次的结果。 函数非常简单,你一眼就可以看懂。 #import "More BackTest Results.ex5" // Libraries Folder, Download from the market. //---Set CustomMax void iSetCustomMax( string mode); //---Display multiple strategy results when backtesting alone (not opt). void iOnDeinit(); //--- void iOnTesterInit(); double iOnTester(); void iOnTesterPass( string lang
T5L Library is necessary to use the EAs from TSU Investimentos, IAtrader and others. It contains all the functions framework needed to Expert Advisors working properly.  ツ - The Expert Advisors from  TSU Investimentos does not work without this library,  the T5L library can have updates during the year - At this Library you will find several funcionalities like order sends, buy and sell, trigger entry points check, candlestick analyses, supply and demmand marking and lines, and much more. 
AO Core
Andrey Dik
3.67 (3)
AO Core is the core of the optimization algorithm, it is a library built on the author's HMA (hybrid metaheuristic algorithm) algorithm. Pay attention to the MT5 Optimization Booster product , which makes it very easy to manage the regular MT5 optimizer . An example of using AO Core is described in the article: https://www.mql5.com/ru/articles/14183 https://www.mql5.com/en/blogs/post/756510 This hybrid algorithm is based on a genetic algorithm and contains the best qualities and properties of p
EA Toolkit
Esteban Thevenon
EA Toolkit   is a library that allows any developer to quickly and easily program Advisor experts. It includes many functions and enumerations such as trailing stop, lot, stop loss management, market trading authorisations, price table updates, trading conditions and many more. Installation + Documentation : You will find all the information to install this library and the documentation of its functions on this GitHub : https://github.com/Venon282/Expert-Advisor-Toolkit WARNING : The installat
A Simple Moving Average (SMA) is a statistical indicator used in time series analysis. This indicator represents the arithmetic mean of a sequence of values over a specific period of time. SMA is used to smooth short-term fluctuations in data, helping to highlight the overall trend or direction of changes. This aids analysts and traders in better understanding the general dynamics of the time series and identifying potential trends or changes in direction.  More information you can find in Wiki 
该库将允许您使用任何 EA 来管理交易,并且非常容易集成到任何 EA 上,您可以使用描述中提到的脚本代码以及显示完整过程的视频演示示例自行完成。 - 下限价、止损限价和止盈限价订单 - 下达市场订单、SL 市场订单、TP 市场订单 - 修改限价订单 - 取消订单 - 查询订单 - 更改杠杆、保证金 - 获取位置信息 和更多... 租赁加密货币图表是可选的,除非您的 MT5 上没有币安图表。 对于脚本演示:单击此处 如果您想与交易面板进行交易,您可能对此产品感兴趣 该产品是加密图表的插件 该库将允许您使用任何 EA 来管理交易,并且非常容易集成到任何 EA 上,您可以使用描述中提到的脚本代码以及显示完整过程的视频演示示例自行完成。 - 下限价、止损限价和止盈限价订单 - 下达市场订单、SL 市场订单、TP 市场订单 - 修改限价订单 - 取消订单 - 查询订单 - 更改杠杆、保证金 - 获取位置信息 和更多... 租赁加密货币图表是可选的,除非您的 MT5 上没有币安图表。 对于脚本演示: 单击此处 如果您想与交易面板进行交易, 您可能对
Hello everyone! I am a professional MQL programmer , Making EAs, Indicators and Trading Tools for my clients all over the world. I build 3-7 programs every week but I seldomly sell any ready-made Robots. Because I am fastidious and good strategy is so few...  this EA is the only one so far I think its good enough to be published here.  As we all know, the Ichimoku indicator has become world popular for decades, but still, only few people knows the right way of using it, and if we check the clo
Applying these methods, I managed to arrive at a nuanced conclusion that is crucial to understanding the importance of unique strategies in contemporary trading. Although the neural network advisor showed impressive efficiency in the initial stages, it proved to be highly unstable in the long run. Various factors such as market fluctuations, trend changes, external events, etc. cause its operation to be chaotic and eventually lead to instability. With these experiences, I accepted the challenge
Introducing "TG Risk Service Manager" — your comprehensive toolkit for swift and precise risk management and lot size calculations in the dynamic world of trading. Designed to streamline development processes and enhance trading strategies, this indispensable library equips developers with essential tools for optimizing risk assessment and trade profitability. Metatrader4 Version |  All Products  |  Contact   Key Features: Efficient Lot Size Calculation : Harness the power of precise lot size c
Introducing "TG Trade Service Manager" — your all-in-one solution for seamless trade management in both MQL4 and MQL5 environments. With a focus on speed, reliability, and convenience, this powerful library simplifies the complexities of trade execution and management, empowering developers with a single interface for enhanced efficiency. Metatrader4 Version   |   All Products   |   Contact   Key Features: Unified Interface : TG Trade Service Manager" provides a unified interface for   MQL4   an
OpenAI Library MT5
VitalDefender Inc.
该库旨在提供一种尽可能简单的方法,直接在MetaTrader上使用OpenAI的API。 要深入了解库的潜力,请阅读以下文章: https://www.mql5.com/en/blogs/post/756098 The files needed to use the library can be found here: Manual 重要提示:要使用EA,需要添加以下URL以允许访问OpenAI API  如附图所示 要使用该库,需要包含以下Header,您可以在以下链接找到:  https://www.mql5.com/en/blogs/post/756108 #import "StormWaveOpenAI.ex5" COpenAI *iOpenAI(string); CMessages *iMessages(void); CTools *iTools(void); #import 这就是您需要的所有信息,以便轻松使用该库。 以下是如何轻松使用该库并与OpenAI的API交互的示例 #include <StormWaveOpenAI.mqh>       //--- 包含用于AP
This trailing stop application will helping trader to set the trailing stop value for many open positions, that apply a grid or martingale strategy as a solution. So if you apply a grid or martingale strategy (either using an EA or trading manually), and you don't have an application to set a trailing stop, then this application is the solution. For EAs with a single shot strategy, just use the FREE trailing stop application which I have also shared on this forum.
KP TRADE PANEL EA is an EA MT5 facilitates various menus. KP TRADE PANEL EA is an EA skin care in MT5 is an EA that puts the system automatically in download EA MT5 to test with demo account from my profile page while some Trailing Stop Stop Loss require more than 0 features EA determines lot or money management calculates lot from known and Stop loss TS = Trailing stop with separate stop loss order Buy more AVR TS = Trailing stop plus
作者的更多信息
Kalman Forecast Helper is an advanced MQL5 Expert Advisor component designed to generate adaptive market forecasts, trend predictions, and trading signals for FX and other financial time series. Powered by a proprietary Kalman filtering engine, the helper continuously analyzes incoming market data and delivers actionable forecast information that can be integrated directly into Expert Advisors, indicators, or quantitative trading systems. After each update, the helper provides: Multi-horizon for
FREE
This pivot scanner implements five industry-standard pivot methodologies: Classic Pivot (HLC/3) Fibonacci Pivot (0.382 / 0.618 / 1.000 levels) Camarilla Pivot Woodie Pivot DeMark Pivot The scanner can operate with a fixed user-selected method or in adaptive mode, where the most suitable pivot model is selected automatically based on observed market behavior and historical performance. Designed as a fully configurable analysis and observation tool, the EA performs historical warmup, executes scan
FREE
筛选:
无评论
回复评论