PostgreSQL Client

A complete PostgreSQL client implemented in pure MQL5 over native MetaTrader 5 TCP sockets.

The library implements the PostgreSQL client with MD5 and SCRAM-SHA-256 authentication, SSL/TLS, the Simple Query Protocol, and explicit transactions.

No DLLs, no external dependencies, no third-party services.

Features

  • Direct TCP connection to any PostgreSQL-compatible database
  • MD5 and SCRAM-SHA-256 authentication, auto-detected
  • SSL/TLS via PostgreSQL's SSLRequest flow
  • Full transaction support
  • Typed result accessors with NULL detection
  • Bad-handle safe — never crashes your EA

Compatibility

Designed for PostgreSQL > 7.4 through 18

  • RDS PostgreSQL
  • Amazon Aurora PostgreSQL
  • Google Cloud SQL for PostgreSQL
  • Azure Database for PostgreSQL
  • Supabase (cloud and self-hosted)
  • CockroachDB
  • CrateDB
  • YugabyteDB


Getting Started

Pass useSSL = true to Pg_Connect. The library performs the standard PostgreSQL SSLRequest negotiation and upgrades to TLS via SocketTlsHandshake. If the server rejects the request the client logs a warning and continues unencrypted.

Run any SQL statement —  INSERT ,  UPDATE ,  DELETE , DDL — through a single Pg_Query call. Each call returns a result handle whose lifecycle is managed by the client: the previous result on the same client is freed automatically when the next query runs.

Pg_Begin ,  Pg_Commit , and Pg_Rollback provide one-call wrappers around the standard SQL transaction commands. For nested error recovery use savepoints ( SAVEPOINT name  /  ROLLBACK TO name ) via Pg_Query.

Client functions
Function Description
Pg_Version() Returns the library version string.
Pg_Create() Allocates a new client handle. Returns 0 on failure.
Pg_Destroy(h) Frees the client handle and its current result.
Pg_Connect(h, host, port, db, user, pass, ssl, app) Connects and authenticates against the server.
Pg_Disconnect(h) Sends a Terminate message and closes the socket cleanly.
Pg_IsConnected(h) True only when the connection is in READY state.
Pg_IsAlive(h) True if the socket is open and the protocol is at least READY.
Pg_Ping(h) Executes SELECT 1 to verify the connection is healthy.
Pg_Query(h, sql) Runs any SQL statement and returns a result handle.
Pg_Begin(h) Starts a transaction and returns a result handle.
Pg_Commit(h) Commits the current transaction.
Pg_Rollback(h) Rolls back the current transaction.
Pg_LastError(h) Returns the last protocol- or socket-level error message.
Result functions
Function Description
Res_IsOk(r) True if the query succeeded.
Res_HasRows(r) True if the result contains at least one row.
Res_CommandTag(r) Server command tag, for example INSERT 0 1 or UPDATE 3.
Res_AffectedRows(r) Rows affected by INSERT, UPDATE, or DELETE.
Res_NumRows(r) Number of rows in the result.
Res_NumFields(r) Number of columns in the result.
Res_FieldName(r, col) Column name at the given index.
Res_FieldIndex(r, name) Column index for a given name. Returns -1 if not found.
Res_Next(r) Advances the row iterator. Returns true while rows remain.
Res_ResetIterator(r) Resets iteration to before the first row.
Res_IsNull(r, col) True if the current row's value at col is NULL.
Res_GetValue(r, col) Current row value as string by column index.
Res_GetValueByName(r, name) Current row value as string by column name.
Res_GetInt(r, col) Parses the current value as int.
Res_GetLong(r, col) Parses the current value as long.
Res_GetDouble(r, col) Parses the current value as double.
Res_GetBool(r, col) Parses the current value as bool.
Res_GetDatetime(r, col) Parses the current value as datetime.
Res_ErrorMessage(r) Server error message text when Res_IsOk is false.
Res_ErrorSQLState(r) 5-character PostgreSQL SQLSTATE code.


#include <PostgresLib.mqh>

void OnStart()
{
   long h = Pg_Create();
   Pg_Connect(h, "127.0.0.1", 5432, "postgres", "postgres", "postgres", false, "MQLPgClient");

   long r = Pg_Query(h, "SELECT symbol, price, timestamp FROM trades LIMIT 10");
   while(Res_Next(r))
      Print(Res_GetValueByName(r, "symbol"), " @ ", Res_GetDouble(r, Res_FieldIndex("price")), " at ", Res_GetValue(r, 2));

   Pg_Disconnect(h);
   Pg_Destroy(h);
}
推荐产品
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
Session Overlay Stop guessing where sessions begin and end. Most session indicators mark zones by fixed clock hours. The result? Boxes that start 30 minutes late, end at the wrong candle, and never quite align with where price actually reacted. Session Overlay is built differently. Every session boundary is calculated from the D1 bar open — not a hardcoded offset — so the shading, the overlap zones, and the high/low lines all share the exact same time reference. What you see is what the market a
FREE
本 EA 专为震荡 / 横盘行情设计。 在设定区间内自动补单交易 EA 仅在 预先设定的价格区间内运行 。 当订单平仓、成交、取消后(单数量少了),EA 会自动补充新的订单,以维持交易策略的持续运行。 您可以通过 Max Orders 来控制最大订单数量。 示例: 最大订单数(Max Orders):8 当前持仓订单:2 单 挂单 Sell Limit:6 单 在这种情况下,EA 不会继续下新单。 只有当订单 平仓、成交 、 取消 后,EA 才会 自动补单 ,持续捕捉 震荡行情 中的利润。 注意: Sell Limit   订单 只会挂在当前市场价格的上方 。 产品参数说明 Trade Symbol : 交易品种  XAUUSD、USDJPY、BTCUSD 等等... 区间设置 Zone Low :区间下边界 Zone High :区间上边界 说明: 例如,您将BTCUSD的交易区间设定为: Zone Low : 92000 Zone High : 94500 EA 只会在该价格区间内挂单并自动交易。 当价格突破区间范围时,EA 将停止交易。 当价格回到区间内,EA 会自动恢复
Ai Prediction MT5
Mochamad Alwy Fauzi
A free indicator for those who purchase the full version This indicator is created by this Ai, with your desired settings Artificial Intelligence at your service Have a complete artificial intelligence and use it in your codes This artificial intelligence is trained to tell you on each candle whether the market is moving up or down. In general, artificial intelligence can be used in all markets, all timeframes and all symbols However, due to the increasing complexity and decreasing accuracy of
Ajuste BRA50
Claudio Rodrigues Alexandre
4.33 (6)
Este script marca no gráfico do ativo BRA50 da active trades o ponto de ajuste do contrato futuro do Mini Índice Brasileiro (WIN), ***ATENÇÃO***  para este script funcionar é necessário autorizar a URL da BMF Bovespa no Meta Trader. passo a passo: MetaTrader 5 -> Ferramentas -> Opções -> Expert Adivisors * Marque a opção "Relacione no quadro abaixo as URL que deseja permitir a função WebRequest" e no quadro abaixo adicione a URL: https://www2.bmf.com.br/ este indicador usa a seguinte página par
FREE
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
快速关仓,无需任何操作。 当前版本的一键关仓主要针对的是来不及手动关仓的情况,目前是不分交易标的类别,是对所有的持仓进行关仓。 未来可能升级的方向: 1、分类别、分标的关仓。 适用场景:开了多个标的的仓位,并且波动不一,快速频繁的波动影响了整体的判断。 2、增加只关闭盈利仓位、只关闭亏损仓位。 适用场景:持仓较多,趋势发生变化。 个人建议:一般建议选择一键全部关仓,因为如果行情与持仓方向一致,只关闭盈利仓位无形就是扩大了亏损。如果行情方向与持仓方向相反,只关闭亏损仓位,当前已盈利的后面又会变为亏损,盈利无法变现。 3、按照仓位顺序由大到小关仓、按照仓位顺序由小到大关仓。 适用 场景:行情发生波动,对于未来行情判断把握不确定的,可根据自己需求选择仓位关仓顺序,由大到小关仓的话,可以避免亏损的进一步扩大。 4、减小仓位量,保持绝对的安全距离。 适用 场景:对未来趋势相对确定,不想错过当前行情,但是认为当前持仓体量又有点大,想降低仓位。
本 EA 专为震荡 / 横盘行情设计。 在设定区间内自动补单交易 EA 仅在 预先设定的价格区间内运行 。 当订单平仓、成交、取消后(单数量少了),EA 会自动补充新的订单,以维持交易策略的持续运行。 您以通过 Max Orders 来控制最大订单数量。 示例: 最大订单数(Max Orders):8 当前持仓订单:2 单 挂单 Buy Limit:6 单 在这种情况下,EA 不会继续下新单。 只有当订单 平仓、成交 、 取消 后,EA 才会 自动补单 ,持续捕捉 震荡行情 中的利润。 注意: Buy Limit 订单 只会挂在当前市场价格的下方 。 产品参数说明 Trade Symbol : 交易品种  XAUUSD、USDJPY、BTCUSD 等等... 区间设置 Zone Low :区间下边界 Zone High :区间上边界 说明: 例如,您将黄金的交易区间设定为: Zone Low :4420 Zone High :4455 EA 只会在该价格区间内挂单并自动交易。 当价格突破区间范围时,EA 将停止交易。 当价格回到区间内,EA 会自动恢复交易。 订单设置
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
FREE
1.7*24小时全时在线,安全,可靠,低延时ping; 2.按券商要求智能跟单,详见英文简介   3.本系统仅提供跟单软件服务,不提供交易策略,不代单操作; 4.不限交易手数,客户自行设置A仓手机app端即可,不额外收费 5.客户可按月,季,年付费方式,不同方式,不同优惠,先付费后使用; 6.因券商MT5服务器异常,导致断网后跟单异常,客户需自行风控处理,本系统不提供风控处理 7.券商下单规则改变,会自动更新最新跟单系统 8.详细购买流程,请咨询  wehcat  :zfflyer; 9.再次强调,本系统,仅保障以技术层面实现跟单功能,不参与客户的下单,交易策略,以及风控措施。 10.本系统已稳定运行9个月,经历各种复杂行情考验,稳定,可靠
HTTP ea
Yury Orlov
4.27 (11)
How To Trade Pro (HTTP) EA — 来自拥有25年以上经验的作者的专业交易顾问,用于交易任何资产,无需马丁格尔或网格。 大多数顶级顾问处理上涨黄金。它们在测试中看起来出色……只要黄金上涨。但当趋势耗尽时会怎样?谁来保护您的存款?HTTP EA 不相信永恒增长 — 它适应不断变化的市场,并旨在广泛分散您的投资组合并保护您的存款。它是一个纪律严明的算法,在任何模式下都能同样成功:上涨、下跌、横盘。它像专业人士一样交易。HTTP EA 是精确的风险和时间管理系统。不要根据历史上的漂亮图表选择顾问。根据工作原理选择。 资产 任意,每种资产购买后有自己的 .set 文件 时间框架 M5-H4(在顾问设置中指定) 原理 处理动态价格缺失区域 存款 从 $100 起。杠杆 1:25+ 经纪商 任意,ECN/Raw 低点差 测试 策略测试器:EURUSD,01.01.2025 — 今天,每跳 特性 SL/TP,追踪止损,保本,紧急模式,图形面板。 How To Trade Pro EA 不猜测 — 它跟随变化并适应。这是一个纪律严明、活的算法,随着市场变化而变化,并在其他算法崩溃
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
Accurate Action on
Felix Okiemute Afo
The Gold trading (XAUUSD) 5min Chart Robot comes equipped with built-in risk management tools that automatically adjust your trading parameters to protect your capital and optimize returns.   Global Compatibility: Regardless of your location or preferred broker, the Accurate_Action EA seamlessly integrates with MetaTrader 4 and MetaTrader 5 platforms, making it accessible to traders around the world.   Continuous Updates: The financial markets are ever evolving, and so is our robot. You wi
Kaseki
Ben Mati Mulatya
The Hybrid Metaheuristic Algorithm (HMA) is a cutting-edge optimization approach that combines the strengths of genetic algorithms with the best features of population-based algorithms. Its high-speed computation ensures unparalleled accuracy and efficient search capabilities, significantly reducing the total time required for optimization while identifying optimal solutions in fewer iterations. HMA outperforms all known population optimization algorithms in both speed and accuracy. Use Cases AO
### Unlock the Power of Profitable Trading with Our Cutting-Edge Trend Following EA! Are you tired of watching the market move without you? Frustrated by missed opportunities and inconsistent results? It's time to revolutionize your trading strategy with the **Ultimate Trend Following EA** – your key to consistent profits and stress-free trading! #### Why Choose Our Trend Following EA? **1. Proven Profitability:**   Our EA leverages time-tested trend following strategies that have consistent
CloseOrdersEa
Yusuf Watinani Umar
Overview: This utility serves as a tool to provide easy navigation for closing open positions. • Close all open buy positions at market price.  • Close all open sell positions at market price.  • Close all orders at market price based on predefined conditions for efficient trading management.  • Close orders for the current chart at market price, allowing focused control over specific trading instruments.
Trend Vision
Abderrahmane Benali
Important Reminder: If you find this tool helpful ,   please support the work by leaving a comment or rating . Avoid using it without showing support. Your feedback motivates further development! Trend Vision -   SuperTrend PRO   Take your trading to the next level with a powerful upgrade to one of the market’s most trusted trend-following indicators! SuperTrend PRO has been optimized to deliver precise signals based on the strength of the ATR, with smart alerts sent instantly to your phone wh
FREE
Blackwave Bitcoin Hedge Recovery 比特币(BTCUSD)自适应对冲恢复系统 Blackwave Bitcoin Hedge Recovery 是一款专业级 MT5 Expert Advisor,专为帮助交易者通过基于 ATR 的自适应对冲篮子系统稳定手动 Bitcoin(BTCUSD)仓位的回撤而设计。 Bitcoin 市场以以下特征闻名: 极端波动性 剧烈方向性波动 情绪化交易行为 高波动期间快速增加的保证金压力 该 EA 的开发目标是解决加密货币手动对冲中最常见的问题之一: 对冲本身可能成为下一次回撤的来源。 许多交易者会在 Bitcoin 市场情绪极端时建立对冲仓位。 当价格随后剧烈反转时,原始仓位可能开始恢复,而对冲篮子却仍然陷于亏损。 Blackwave Bitcoin Hedge Recovery 通过以下方式降低这一风险: 受控的对冲部署 基于 ATR 的波动率间距 协调式篮子管理 恢复方向选择 EA 支持两种可选恢复模式: 恢复手动 SELL 仓位 检测手动 Bitcoin SELL 持仓 建立自适应 BUY 对冲篮子 恢复手动 BUY
专家顾问允许您模拟由另一位专家执行并保存在csv文件中的事务的执行。 这对于在另一台服务器上检查交易策略的结果很有用。 使用另一个程序,例如,帐户历史导出器将帐户上的交易历史导出为所需格式的csv文件,或将程序代码从专家历史导出器连接到您的专家以导出历史。 在文件的开头应该有这样一行: DATE,TICKET,TYPE,SYMBOL,VOLUME,ENTRY,PRICE,STOPLOSS,TAKEPROFIT,PROFIT,COMMISSION,FEE,SWAP,MAGIC, COMMENT 它可能不是从文件的一开始就找到的,也就是说,任何其他信息都可能在它之前。 在它们之后和文件的末尾,有一行以逗号分隔的字段值用于一个事务。 行中字段的值: DATE - date in the format YYYY.MM .DD HH:MM:SS TICKET - transaction ticket (integer) TYPE - transaction type from ENUM_DEAL_TYPE (integer) SYMBOL - trading instrumen
FREE
Bookeepr
Marvellous Peace Kiragu
Bookeepr is an advanced MQL5 trading bookkeeping software that automates trade logging, tracks real-time P&L, and integrates a ledger-style financial system for deposits, withdrawals, and expenses. It supports multi-currency assets , generates detailed performance reports , and provides risk management tools to help traders optimize their strategies. With secure cloud storage, exportable reports, and seamless MetaTrader 5 integration , Bookeepr ensures accurate, transparent, and hassle-free fina
SimpleLotCalculator
Itumeleng Mohlouwa Kgotso Tladi
SimpleLotCalculator: Professional Multi-Symbol Risk Manager Library Stop guessing your lot sizes and start trading with institutional precision. SimpleLotLogic is a high-performance MQL5 developer library designed to solve the number one problem for algorithmic and manual traders: Risk Management. Instead of writing complex math for every new EA, simply plug in this library to calculate the perfect lot size based on your account equity and stop-loss distance. Why Choose SimpleLotLogic? Precis
E2C Lines
Eduardo Cristian De Carvalho
Descubra o poder do nosso indicador de alta precisão, projetado para identificar as regiões de alvo e exaustão de qualquer ativo. Testado e validado por mais de 3 anos nos mercados de mini dólar e mini índice, ele oferece confiabilidade e eficácia incomparáveis. Transforme sua estratégia de trading e alcance novos patamares de sucesso com nossa ferramenta inovadora.
Manyal trading system, CovEchoTrend Robot, focuses on reliability and flexibility. By employing statistical analysis methods to study the relationships between the base indicator and market patterns, the system enables a deeper understanding of market processes. Intelligent pattern analysis: The application of statistical data processing helps identify key trend reversal points more accurately, signaling significant market shifts. Informed decision-making is based on the intersection of indicato
DGoldInfinity
Worapong Kanpet
DGoldInfinity – 专业 级 黄金 自动 交易 系统 DGoldInfinity EA 是 一 款 为 黄金 市场( XAUUSD ) 打造 的 全 自动 交易 系统 , 适用 于 M15 时间 框架 , 专 为 高 频 剥 头皮 策略 设计。 它 结合 了 高 精度 入 场 逻辑、 AI 智能 过滤 器、 严格 的 风险 控制 系统 以及 纪律 性的 执行 机制, 旨 在 实现 持续 稳定 的 利润。   核心 功能 亮 点   1. 高 精度 智能 入 场 系统 多重 技术 过滤 器: EMA、 RSI、 MA10、 随机 指标( Stochastic)、 趋势 过滤 器 入 场 前 进行 全面 的 市场 条件 分析 使用 ATR 自动 计算 动态 止 损/ 止 盈 自动 反向 交易 机制 : 当 方向 错误 时 自动 止 损 并 立即 开 立 反向 仓 位, 快速 进行 修复   2. 智能 风险 管理 根据 账户 余 额 和 风险 百分比 自动 计算 开 仓 手数 支持 两 种 类型 的 恢复 机制: 固定 手数 和 阶梯 加 仓 可 设置 每日 的 最大 交
MT5 Quantum Gold Pro
Gaya Chibane
5 (2)
MT QUANTUM GOLD PRO — 终极机构级黄金交易系统 精准。韧性。经过验证的卓越表现。   重要提示:购买后请私信我,获取优化的 XAUUSD M1 设置文件、安装指南和 24/7 专属支持。   限时发布促销 — 仅需 $49(3 笔销售后恢复原价 $499) 促销期间每天涨价 $50 超过 100 位用户后 → $999,最终定价 $4,999 赠品:   私信联系,赠送价值 $199 的附加 EA 简介 我是   MT QUANTUM GOLD PRO 。 我不是普通的零售交易顾问。我是由专业交易员   Gaya CHIBANE   设计的机构级系统,他拥有超过 10 年的交易经验,是机构交易机器人的专业开发者。 继此前系统的成功之后,MT QUANTUM GOLD PRO 代表了最终进化:一款 专为 XAUUSD(黄金)打造的自适应自校准 GRID EA ,针对 2024–2026 年市场环境全面优化。 我不是随机交易。我基于专有的 HASARD/VAS 框架执行结构化逻辑,已在真实市场条件下经过全面测试。 规格与建议 交易品种:   仅限 XAU
FREE
Perfect Trade EA FXGold 2026 для MT5 — советник на золото XAUUSD с новостным фильтром и мультифрейм-анализом Perfect Trade EA FXGold 2026 — современный автоматический торговый советник для MetaTrader 5 (MT5), созданный специально для торговли XAUUSD (Gold / золото). Алгоритм ориентирован на качество входов и строгий риск-контроль: золото часто даёт резкие импульсы и откаты, поэтому советник не “строчит” сделками, а выбирает только подходящие ситуации и защищает прибыль. Если вам нужен советни
Flying Turtles
Roland Aimua Akenuwa
Flying Turtles EA for MT5 Breakout Power with Turtle Trading DNA. The Flying Turtles EA is inspired by the legendary Turtle Trading System , built to detect breakouts from consolidation zones and ride trends with discipline and precision. Whether you’re trading forex, indices, or metals, this EA aims to capture big moves after price breaks out of key levels. Key Features : Classic Turtle Trading Logic : Identifies breakout levels based on recent highs/lows and executes trades with trend-follow
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
默认设置(XAUUSD、M1、最低存款:1,000 美元) 以下信号使用可信经纪商(IC 市场) MQL5 Singal https://www.mql5.com/en/signals/2315194 Formula One EA Formula One EA 代表一种专为黄金 (XAUUSD) 交易而设计的尖端自动交易系统,利用针对一分钟时间范围优化的复杂高频策略。该先进系统经过精心设计,可通过精确的进入和退出点利用快速的市场变动。EA 在严格控制的交易条件下(特别是在零差价的环境中)表现出色,持续为在高频交易的动态世界中茁壮成长的交易者创造快速利润。通过实施最先进的算法交易策略,该系统无缝集成了闪电般的执行能力和全面的风险管理协议。这些精心平衡的功能使其成为活跃交易者特别有吸引力的解决方案,这些交易者专注于利用短期市场低效,同时保持对其交易风险的严格控制。其编程的复杂性确保每笔交易都精确执行,而内置的保护措施有助于防止意外的市场波动。 Formula One EA 的主要特点:全面概述 • 高频交易卓越:利用专门针对 M1 时间范围优化的复杂自动化 XAUUSD 交易
这是一套原创的、敏捷型、极佳趋势系统。无论您是刚入门的交易新手还是专业级的交易人士,这套指标均可助您快捷及时的追踪市场趋势的最新变化。它具有以下特点: 使用方法极简单,即插即用,且所有趋势分析结果的显示方式一目了然 ; 不需配置 任何功能参数   ,趋势追踪指标将根据市场数据自动分析显示日/周/月级别的趋势大方向; 本日,本周及当前月度的趋势信息同时显示在同一个图表窗口中; 不依赖于任何其他传统/经典指标的数据 ; 支持 MT平台的 所有交易品种; 支持5分钟到日线的各级图表(MT5平台用户没有任何限制); 这套指标 采用特有的市场行为分析算法,以不同于传统趋势分析方法的维度,快速辨识即将形成的趋势。因此您 可以将本指标结合任何其他经典分析方法一起使用,从多方角度衡量您的交易决策。
该产品的买家也购买
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
【黄金智能交易EA|风控稳守,盈利突围】 专为黄金波动特性定制的智能交易EA,以硬核交易系统为核心,每笔下单均源自量化模型对行情趋势、支撑压力的精准研判,杜绝主观干扰,让交易决策更客观高效。 搭载多维风控体系,动态止损止盈+仓位智能调控双保险,严格锁定单笔风险阈值,即便面对黄金跳空、黑天鹅行情,也能有效规避大幅回撤,守护本金安全。 更具备浮盈加仓智能算法,趋势明朗时自动放大盈利头寸,让利润在顺势中滚动增长,既不浪费单边行情红利,又通过阶梯式加仓策略平衡风险与收益,实现“风控打底,盈利上不封顶”的交易闭环! 本款EA历经38次修改与测试,每一次升级都境加了EA的稳定盈利能力,才最终确定此为终极版本发布。 本款EA目前只针对现货黄金 交易的长期回测和实盘验证,按照下图设置实现长期的稳定 盈利。如果需要交易期它品种,请根据实际情况更改设置。 本EA为阶梯定价,每卖出10份价格增加10%
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
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
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.
If you just want to simply copy your positions and orders from MetaTrader to Binance use the Binance Copier If you're a developer looking to use Binance.com and Binance.us exchanges directly from your MetaTrader 5 terminal, you'll want to check out Binance Library MetaTrader 5. This powerful tool allows you to trade all asset classes on both exchanges, including Spot, USD-M   and COIN-M futures, and includes all the necessary functions for trading activity. Important: you need to have source c
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 闪电交易服务,包括实时深度图热力图监控和快速订单执行等核心特性。 请注意,为保障交易系统稳定运行,务必确保该服务程序中设置的交
该库将允许您使用任何 EA 来管理交易,并且非常容易集成到任何 EA 上,您可以使用描述中提到的脚本代码以及显示完整过程的视频演示示例自行完成。 - 下限价、止损限价和止盈限价订单 - 下达市场订单、SL 市场订单、TP 市场订单 - 修改限价订单 - 取消订单 - 查询订单 - 更改杠杆、保证金 - 获取位置信息 和更多... 租赁加密货币图表是可选的,除非您的 MT5 上没有币安图表。 对于脚本演示:单击此处 如果您想与交易面板进行交易,您可能对此产品感兴趣 该产品是加密图表的插件 该库将允许您使用任何 EA 来管理交易,并且非常容易集成到任何 EA 上,您可以使用描述中提到的脚本代码以及显示完整过程的视频演示示例自行完成。 - 下限价、止损限价和止盈限价订单 - 下达市场订单、SL 市场订单、TP 市场订单 - 修改限价订单 - 取消订单 - 查询订单 - 更改杠杆、保证金 - 获取位置信息 和更多... 租赁加密货币图表是可选的,除非您的 MT5 上没有币安图表。 对于脚本演示: 单击此处 如果您想与交易面板进行交易, 您可能对
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
这是一个可以定时自动交易的EA。根据你设定的时间,精确到秒,可以设置最多下几单。下单buy或者Sell.可以设置值止盈止损点。并且可以设定在下单后多久平仓。一般都是用来做事件。祝你好运。 请看图片自己根据设定来使用。每一次使用请重新加载EA。不用的时候记得关闭EA按钮。 我来举个例子。比如英国央行利率决议。你在最后两秒下单(设置的是你本机的时间)。因为可能瞬间点差扩大,你可能不敢直接下最大手数,所以你可以选择小手分批从最后5秒开始进场。我相信做过的人知道我说的意思。因为我专业做这个已经十年。最近才做出了这个自动化EA。并且这里面有个检测就是你点击开始之后如果超过了你设定的时间十秒他就不会执行了。保证你的安全。你自己用DEMO账户测试几次你就知道我这个有多好用了!
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
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     
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. 
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 
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
MyTradingHistory
Max Timur Soenmez
一个易于使用的库,为开发者提供关键交易统计数据的便捷访问,适用于其MQL5 EA。 库中的可用方法: 账户数据和收益: GetAccountBalance() : 返回当前账户余额。 GetProfit() : 返回所有交易的净利润。 GetDeposit() : 返回总存款金额。 GetWithdrawal() : 返回总取款金额。 交易分析: GetProfitTrades() : 返回盈利交易的数量。 GetLossTrades() : 返回亏损交易的数量。 GetTotalTrades() : 返回执行的总交易数。 GetShortTrades() : 返回卖空交易的数量。 GetLongTrades() : 返回多头交易的数量。 GetWinLossRatio() : 返回盈利与亏损交易的比例。 GetAverageProfitTrade() : 返回每笔盈利交易的平均利润。 GetAverageLossTrade() : 返回每笔亏损交易的平均亏损。 GetROI() : 计算投资回报率。 GetLargestProfitTrade() : 返回单笔交易的最大利润。 Get
作者的更多信息
Crypto Charts
Romeu Bertho
4.11 (9)
Crypto Charts is a Service that connects to cryptocurrency exchanges and delivers three types of market data in a single package: historical and live OHLCV candles, real-time tick data, and Depth of Market (order book). All data is pushed into MT5 as custom symbols that behave like native instruments, accessible on charts, in indicators, Expert Advisors, and the Strategy Tester. Traders who prefer MT5's analysis environment can use Crypto Charts to work with cryptocurrency markets using the same
Percent Crosshair is a powerful and easy percentage measure tool. Measure the chart percentage quickly! Don't waste your time anymore! Just attach the Percent Crosshair indicator to the chart, select crosshair mode at toolbars or press Ctrl+F and start using the crosshair as you always do! The percent measure will be next to the indicative price. Customize your indicator the way you want! There are four entry parameters: Positive % color: set the desired color when % is positive. Negative % colo
Percent Crosshair is a powerful and easy percentage measure tool. Measure the chart percentage very quick! Don't waste your time anymore! Just attach the Percent Crosshair indicator in the chart, select crosshair mode at toolbars or press "Ctrl+F" and start using the crosshair as you always do! The percent measure will be next to the indicative price. Customize your indicator the way you want! There are 4 entry parameters: Positive % color: set the desired color when % is positive. Negative % co
Order Flow Balance
Romeu Bertho
5 (1)
Order Flow Balance is a powerful indicator for Tape Reading (Time & Sales). It helps you analysis Order Flow Market, find where the players are moving in, market imbalance, possible reversal points and much more! The indicator works on MOEX, BM&FBOVESPA, CME, etc. It has 5 different indicator types Cumulative Delta: Also know as Cumulative Volume Delta, it is an advanced volume analysis method where traders can see the daily difference between aggressive buyers and aggressive sellers. Comparison
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
筛选:
无评论
回复评论