MT5 Logging API

This simple logging library is designed to provide clear and contextual log output with minimal hassle. It exposes five  methods:

  • LogErrorMessage(message)
  • LogWarnMessage(message)
  • LogInfoMessage(message)
  • LogDebugMessage(message)
  • LogTraceMessage(message)

Each method prints the provided message to the console only if the severity level meets or exceeds the current threshold set by a global variable logLevel. This means you control the verbosity of your application's logs by adjusting logLevel.

What sets this library apart is its built-in context awareness: every log message is automatically prefixed with the source file name, the exact line number, and the function from which the call originated. This provides pinpoint accuracy when tracking down issues and simplifies the debugging process.

By combining tidy output control with detailed contextual information, this library is an ideal tool for developers who need to quickly identify and resolve issues while keeping their code clean and maintainable.

You can download the free source code of this library from github and you can include it directly in your EA code; please note that the source file is compatible with both MT4 and MT5 platforms.


Here is an example of use:

#define LOGLEVEL_OFF 0
#define LOGLEVEL_ERROR 1
#define LOGLEVEL_WARNING 2
#define LOGLEVEL_INFO 3
#define LOGLEVEL_DEBUG 4
#define LOGLEVEL_TRACE 5

// Include the logging API header
#import "vladefix/logging-api-v1.00.ex5"
   void SetLoggerLevel(int);
   void LogErrorMessage(string);
   void LogWarnMessage(string);
   void LogInfoMessage(string);
   void LogDebugMessage(string);
   void LogTraceMessage(string);
#import

//-------------------------------------------------------
// Initialization function (OnInit)
//-------------------------------------------------------
int OnInit()
{
        /* 
          Set the global log level using one of the predefined log levels:
          
          LOGLEVEL_OFF     -> No logging at all 
          LOGLEVEL_ERROR   -> Only error messages
          LOGLEVEL_WARNING -> Errors and warnings
          LOGLEVEL_INFO    -> Information messages and above
          LOGLEVEL_DEBUG   -> Debug messages (and above)
          LOGLEVEL_TRACE   -> All logging messages
        */
        
        SetLoggerLevel(LOGLEVEL_INFO);  // For this example, we log info and above.
        return INIT_SUCCEEDED;
}

//-------------------------------------------------------
// Main tick event handler
//-------------------------------------------------------
void OnTick()
{
        // Log an informational message on each tick.
        LogInfoMessage("OnTick event triggered.");
}


推荐产品
Static Text display
Muhammad Saad Khan
静态文本显示 是一个轻量且用户友好的 MetaTrader 5 专家顾问(EA),旨在通过在您的图表上直接显示激励性交易提示来启发和教育交易者。凭借优雅的居中黑色背景和等宽字体白色文本,该 EA 以轮换片段形式提供简洁、可操作的建议,帮助您专注于纪律交易。适合初学者和经验丰富的交易者,它倡导风险管理、耐心和策略开发等关键原则。 主要功能: 动态提示显示 :将用户定义的交易提示分割为 50-60 个字符的可读片段,每隔几秒轮换一次(持续时间可自定义)。 专业设计 :在图表顶部中心显示提示,带有黑色背景,确保可读性和均匀填充。 响应式定位 :在图表大小调整或切换时自动调整文本和背景对齐。 可自定义设置 :根据您的偏好调整字体大小、文本颜色、背景颜色和显示持续时间。 开关控制 :无需移除 EA 即可轻松启用或禁用显示。 轻量高效 :资源占用极低,不影响平台性能。 为什么选择静态文本显示? 无论您是想提升交易纪律还是寻求每日动力,此 EA 始终将核心交易智慧置于显眼位置。默认提示强调风险管理、策略测试和情绪控制,但您可以自定义文本以匹配您的交易理念。适合重视教育和一致性的交易者。 输入参数:
FREE
Delete Only Pending Orders
Muhammad Usman Siddique
适用于 MetaTrader 5 (MT5) 的 UZFX - 仅删除挂单脚本是一款简单而有效的工具,可自动删除交易账户中的所有挂单(限价买入、限价卖出、止损买入、止损卖出)。该脚本非常适合希望在不影响活跃市场头寸的情况下即时清除挂单的交易者。 查看我的所有其他 MT4/MT5 指标和 EA >> 这里 功能: 删除所有挂单(买入限价单、卖出限价单、买入止损单、卖出止损单)。 不影响未结市场头寸。 通过专家选项卡提供实时执行反馈。 帮助交易者快速重置挂单策略,无需手动干预。 使用方法: 将脚本附加到 MT5 图表。 脚本将自动扫描并删除所有挂单。 注意: 该脚本不会关闭有效交易,只会删除挂单。 运行脚本前,请确保您要删除所有挂单。 它适用于账户中的所有交易符号,而不仅仅是所附图表。 开发者: UZFX-LABS Version: 1.00 Year: 2025 下载 mt4 脚本 : 133840
FREE
Lib5 EAPadPRO for MT5
Vladislav Andruschenko
4.5 (6)
EAPADPRO Library for MetaTrader 5 是一个免费的专业界面库,用于为您的 Expert Advisor 添加现代化的信息面板。 该库专为 MQL5 开发者设计,适合希望让自己的交易程序在 MetaTrader 5 图表上拥有更清晰、更专业、更有信息价值的视觉呈现。 MetaTrader 5 的 Expert Advisors 通常包含更复杂的逻辑、多组设置、Magic number 过滤、订单执行规则以及内部策略数值。EAPADPRO 可以将这些信息整理到一个结构化面板中,让用户更快、更直观地理解程序当前状态。 EAPADPRO for MT5 是一个免费库。 您可以使用它来提升 Expert Advisor 的界面、信息输出和整体视觉质量。 完整的分步集成说明: LIB - EAPADPRO 分步集成教程 EAPADPRO 面板详细说明: EAPADPRO 信息面板 MetaTrader 4 版本: EAPADPRO Library for MT4 MQL5   Channel  https://www.mql5.com/en/channels/expf
FREE
Set Stop Loss to Breakeven Instantly
Muhammad Usman Siddique
4.33 (3)
适用于 MetaTrader 5 (MT5) 的 UZFX - Set Stop Loss to Breakeven Instantly 脚本是一款功能强大的工具,允许交易者将所有未结头寸的止损点快速移动至其入场价格,确保无风险交易。该脚本尤其适用于有效管理活跃交易,确保一旦头寸出现有利变动,交易者就能免受潜在损失。 (访问简介并查看所有其他 MT4/MT5 产品) (请不要忘记给予评论) 功能: 自动将所有未结头寸的止损设置为盈亏平衡(入市价格)。 通过确保利润和尽量减少潜在损失来加强风险管理。 使用方法 将脚本附加到图表上;它将自动调整所有未结头寸。 如果某个仓位的止损已达到盈亏平衡点,则将跳过该仓位。 注意: 该脚本仅修改现有交易,不会下新订单。 它适用于所有未结头寸,与符号无关。 确保经纪商允许以准确的入市价格修改止损。
FREE
NATS (Niguru Automatic Trailing Stop) will help you achieve more profits, by setting the trailing stop automatically. Pair this NATS application with EA, or can also be used as a complement to manual trading. A trailing stop is a powerful tool in trading that combines risk management and profit optimization.  A trailing stop is a type of market order that sets a stop-loss at a percentage below the market price of an asset, rather than a fixed number. It dynamically adjusts as the asset’s pric
FREE
TeleSignal
Vincent Jean Robert Trolard
TeleSignal EA is an intelligent Expert Advisor designed to automatically send Telegram notifications whenever a position is opened, closed, or modified in MetaTrader 5 . It allows you to monitor your trades in real time , wherever you are — no need to keep your trading platform open. Through its direct integration with the Telegram API, you’ll receive clear and instant messages showing: Trade opened (symbol, lot size, order type, entry price) Trade closed (exit price, profit/loss, trade du
Sniper Utility Rimani sempre aggiornato sui tuoi trade, ovunque tu sia. Sniper Utility invia notifiche immediate ogni volta che uno dei tuoi ordini raggiunge il Take Profit o lo Stop Loss . Perfetta per trader attivi che desiderano monitorare le proprie operazioni senza dover controllare costantemente il terminale. ️ Funzionalità principali Notifica istantanea alla chiusura dell’ordine (TP o SL) Compatibile con notifiche push su dispositivi mobili Supporto per ordini manuali, EA e p
K Trade Lib5
Kaijun Wang
2 (1)
MT4/5通用交易库(  一份代码通用4和5 ) #import "K Trade Lib5.ex5"    //简单开单    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 );    //复杂开单    void SetMagic( int magic, int magic_plus= 0 ); void SetLotsAddMode(int mode=0,double lotsadd=0);    long OrderOpenAdvance( int mode, int type, double volume, int step, int magic, string symbol= "" , string comm
FREE
CloseAllOrders at once
Lamont Simone Reynecke
Simple program i created, to help close all your orders instantly when you are busy scalping the market or if you want to avoid news days but still have a lot of orders and pending orders open and can't close them in time.. with this script all you're problems will be solved. Simple drag and drop and the script automatically does it's thing, quick and easy  also a very good tool to use when scalping
FREE
适用于 MetaTrader 5 (MT5) 的 UZFX - 即时关闭所有未结买单和卖单脚本是一款功能强大的工具,交易者只需执行一次操作,即可立即关闭所有活跃的市场头寸。该脚本是紧急交易管理的理想工具,可帮助交易者在剧烈波动、新闻事件或策略调整期间快速退出市场。 功能 关闭所有符号的所有未结买入和卖出头寸。 使用最新的买入价/卖出价,执行准确。 帮助交易者即时退出市场,只需极少的手动操作。 使用方法 将脚本附加到 MT5 图表。 脚本将扫描并关闭所有未平仓的买入和卖出头寸。 专家选项卡中将显示每个平仓订单的确认信息。 注意 该脚本不会删除挂单,只会关闭活跃的市场头寸。 它适用于所有交易符号,而不仅仅是所附图表。 运行脚本前,请确保您要关闭所有仓位,因为脚本会立即执行。 开发者:Usman Zabir - UZ 乌斯曼-扎比尔 - UZFX 版本: 1.00 年份: 2025 网站: https://www.mql5.com/en/users/forextycoons
FREE
Market book tester
Aliaksandr Hryshyn
3 (2)
Using data from the order book in the strategy tester Key features: Simultaneous use of several symbols, up to 7 pieces DOM visualization With the visualization of order books, real-time simulation is available, as well as acceleration or deceleration Working with the library: This product also requires a utility to save data:  https://www.mql5.com/en/market/product/71642 Speed control utility:  https://www.mql5.com/en/market/product/81409 Include file:   https://c.mql5.com/31/735/Market_book_s
FREE
GW News Filter
Jose Martinez Hernandez
GW News Filter Filter trading around high-impact news. Avoid entries/exits during risky time windows using MetaTrader’s Calendar API or your own CSV files. Works in live, demo and Strategy Tester · Source: API or CSV · Per-currency files · Entry/Exit flags · Diagnostics (0–4) Features Works in real accounts, demo, and Strategy Tester Choose between: 0 = Auto (API for live/demo, CSV for Strategy Tester) 1 = API (MetaTrader’s built-in calendar) 2 = CSV (per-currency files, e.g. EUR.csv, USD.csv,
FREE
Universal MarketInfo Service Library for MT4 & MT5 Bring simplicity and power to your trading projects with the Universal MarketInfo Service — a professional library that exposes a unified API for both MetaTrader 4 and MetaTrader 5. No more rewriting code for each platform. With this library, you can: Access symbol data, OHLC prices, spreads, and volatility with a single call. Query account balance, free margin, stop levels, and lot constraints. Work with currency precision, pip values, and n
FREE
UZFX - 删除图表上的所有图形和对象是一个简单而功能强大的Metatrader 5(MT5)脚本,旨在立即从活动图表中删除所有绘图对象。该脚本对于需要从技术分析图,趋势线,斐波那契工具,文本标签和其他对象中快速清除图表的交易者很有用,而无需手动删除它们。 特征: 在活动图表上删除所有对象和图纸。 立即使用单个执行。 显示成功和失败删除的确认消息。 帮助交易者保持清洁无杂乱的图表以进行更好的分析。 用法: 将脚本连接到要删除所有对象的图表上。 脚本将自动循环遍历所有对象并删除它们。 专家选项卡中的一条消息将确认成功删除对象。 注意:此脚本不会影响图表上运行的开放订单,指标或专家顾问,而仅删除仅图形对象。 开发人员:Usman Zabir -UZFX 版本:1.00 年:2025年 网站:https:// www.mql5.com/en/users/forextycoons
FREE
适用于 MetaTrader 5 (MT5) 的 UZFX - 所需保证金和最大手数脚本旨在帮助交易者快速确定开立 1 手头寸所需的保证金,并根据其当前账户净值计算可交易的最大手数。该工具对于风险管理和头寸大小至关重要,可帮助交易者有效规划交易。 功能 计算对所选符号开仓 1 手交易所需的保证金。 根据可用资金确定交易者可以开仓的最大手数。 使用当前卖出价精确计算保证金。 使用评论功能直接在图表上显示结果。 帮助交易者在管理杠杆和风险的同时优化仓位大小。 使用方法: 将脚本附加到所需交易符号的图表上。 脚本将计算并显示结果: 1 手所需保证金 基于可用资金的最大可交易手数 结果将显示在图表的左上角。 注意 脚本使用买入订单类型计算保证金。 最大手数是根据净值计算的,而不是自由保证金。 本脚本不进行交易;纯粹用于提供信息。 开发者:Usman Zabir - UZ 乌斯曼-扎比尔 - UZFX 版本: 1.00 年份: 2025 网站: https://www.mql5.com/en/users/forextycoons
FREE
Important: This product is a Library for developers . It is suitable only for users who can write/modify MQL5 code and integrate a compiled library into their own EA/Script. It is not a “drag & run” notifier. Telegram SDK helps you send Telegram messages and photos from MetaTrader 5 in a simple and reliable way. Use it when you want Telegram notifications inside your own automation tools. If you need the MetaTrader 4 version, it is available separately in the Market:   Telegram SDK M T4 . Main f
Overview AlgoNLP.mqh   is a standalone MQL5 library that converts   human-written trading instructions   into   structured trade intents   that your Expert Advisor (EA) or indicator can understand. Example input: Buy gold at 2370 with TP 0.3% and SL 1% Output intent: Side: BUY | Type: LIMIT | Symbol: XAUUSD | Entry: 2370 | TP: 0.3% | SL: 1% | Lot: 0.00 This enables you to build   chat-controlled   or   Telegram-integrated EAs   that can interpret plain English commands and execute structured
FREE
BlitzGeist Telegram Notifier – Stay Connected to Your Trades Anywhere! BlitzGeist Telegram Notifier is a powerful tool that instantly connects your MetaTrader 5 account with Telegram . No matter where you are – you will always receive real-time notifications about your trading activity directly on your phone, PC, or any device with Telegram installed. Perfect for traders who want professional trade reporting, transparency, and risk management monitoring . ️ Key Features Easy Configuratio
该库允许您使用任何 EA(智能交易系统)来管理交易,并且非常容易集成到任何 EA 中。您可以通过描述中提供的脚本代码自行完成集成,同时还有演示视频示例,完整展示了整个流程。 该产品允许通过 API 在 Bybit 交易所执行交易操作。 图表说明: 用于 OHLC 数据的加密货币图表租赁,或带有订单簿深度的加密货币 Tick 数据是可选的。 下限价单和市价单 修改限价单 根据订单 ID 取消单个订单或取消所有订单 查询订单 更改杠杆 获取持仓信息 创建 Bybit 交易品种 从任意自定义日期加载 K 线历史数据 以及更多功能…… 脚本文档 该库允许您使用任何 EA(智能交易系统)来管理交易,并且非常容易集成到任何 EA 中。您可以通过描述中提供的脚本代码自行完成集成,同时还有演示视频示例,完整展示了整个流程。 该产品允许通过 API 在 Bybit 交易所执行交易操作。 图表说明: 用于 OHLC 数据的加密货币图表租赁,或带有订单簿深度的加密货币 Tick 数据是可选的。 下限价单和市价单 修改限价单 根据订单 ID 取消单个订单或取消所有订单 查询订单 更改杠杆 获取持仓信息 创建
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
MarketPro toolkit
Johannes Hermanus Cilliers
Start earning profits by copying All trades are sent by our successful Forex trader & are extremely profitable. You can earn profits by copying trades daily Trial Period included You'll also get access to extremely powerful trading education which is designed in a simple way for you to become a profitable trader, even if you have no trading experience. https://ec137gsj1wp5tp7dbjkdkxfr4x.hop.clickbank.net/?cbpage=vip
FREE
TradeGate
Alex Amuyunzu Raymond
TradeGate – Product Description / Brand Story “The gatekeeper for your trading success.” Overview: TradeGate is a professional MT5 validation and environment guard library designed for serious traders and EA developers who demand safety, reliability, and market-ready performance . In today’s fast-moving markets, even a small misconfiguration can cause EAs to fail initialization, skip trades, or be rejected by MQL5 Market. TradeGate acts as a smart gatekeeper , ensuring your EA only operates un
Trading Notes   is an innovative tool designed for traders to streamline their decision-making process by allowing them to write and display important reminders or short details directly over their trading charts. This essential feature ensures that traders have quick access to their personalized checklist before opening any positions, enhancing their trading efficiency and accuracy. MT4 Version -  https://www.mql5.com/en/market/product/120613 Join To Learn Market Depth -  https://www.mql5.co
FREE
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
This library allows you to automatically filter events by symbol. Additionally, it requires the use of "flags" to classify events based on their importance (high, low, etc.). Properties: Our library is simple and only requires the export of four functions to work properly. Requirements: The library uses OnTimer , so it is not compatible with programs that also use this event. If your bot utilizes OnTimer , this may interfere with the library’s functionality and prevent event filtering. We recomm
FREE
Takeandstop
Mary Kehinde Olaniyi
5 (1)
The "Takeandstop" script is a powerful tool designed to streamline your trading workflow by automatically setting Take Profit (TP) and Stop Loss (SL) levels on your MetaTrader 5 chart. This script is particularly useful for traders who want to efficiently manage their risk and reward without the hassle of manually calculating and entering these levels. Key Features: Effortless TP and SL Placement: With a few clicks, the script allows you to set predefined Take Profit and Stop Loss levels for you
FREE
INTRODUCING MML Data Bridge The demand for bridging external data and machine learning with trading platforms is higher than ever. MetaTrader 5 is a powerful environment for trading and back testing, but without a data bridge, MT5 is largely isolated from using any external data. MML Bridge is a developer tool that allows users to bridge external data into MT5 for back testing, live trading, and optimization. It's built for ease of use, providing users with a simple function API that drip-feeds
FREE
Scan a fixed list of assets (Ibovespa) in the chosen timeframe (TimeFrame). For each pair and for various periods. Calculate a regression model between the two assets (and, if desired, using the bova11 index as a normalizer). Generate the spread of this relationship, its mean, standard deviation, speculative deviation, and betas (B1 and B2). Apply an ADF test without exclusion (cointegration/stationarity). Calculate the Z-score of the current exclusion (how many standard deviations are away from
FREE
Want to AUTOMATE this strategy? We have released the fully automated Expert Advisor based on this logic. Check out Range Vector Fibo Logic EA here:  https://www.mql5.com/en/market/product/158065 UPGRADE AVAILABLE: Tired of manual trading? I just released the Automated MTF Version with Mobile Alerts and Auto-Targets. Get the Pro Version here: https://www.mql5.com/en/market/product/159350 Range Vector Fibo Logic (Indicator) One Candle Strategy Stop waking up at 3 AM to draw lines manually. Range
FREE
MarketMind AI
Perpetual Chinemerem Vincent
MarketMind AI Next-Generation Contextual Analysis for MetaTrader 5 Trade with the clarity of institutional-grade context. MarketMind AI is a professional decision-support system designed to bridge the gap between raw technical data and actionable market intelligence. Rather than generating signals or executing trades, MarketMind AI provides a structured, high-fidelity view of market conditions — enabling traders to make more informed discretionary decisions. USER GUIDE AND ANALYSIS PIPELINE AP
该产品的买家也购买
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
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
本服务程序下载后,将作为 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 闪电交易服务,包括实时深度图热力图监控和快速订单执行等核心特性。 请注意,为保障交易系统稳定运行,务必确保该服务程序中设置的交
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
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
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
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
这是一个可以定时自动交易的EA。根据你设定的时间,精确到秒,可以设置最多下几单。下单buy或者Sell.可以设置值止盈止损点。并且可以设定在下单后多久平仓。一般都是用来做事件。祝你好运。 请看图片自己根据设定来使用。每一次使用请重新加载EA。不用的时候记得关闭EA按钮。 我来举个例子。比如英国央行利率决议。你在最后两秒下单(设置的是你本机的时间)。因为可能瞬间点差扩大,你可能不敢直接下最大手数,所以你可以选择小手分批从最后5秒开始进场。我相信做过的人知道我说的意思。因为我专业做这个已经十年。最近才做出了这个自动化EA。并且这里面有个检测就是你点击开始之后如果超过了你设定的时间十秒他就不会执行了。保证你的安全。你自己用DEMO账户测试几次你就知道我这个有多好用了!
作者的更多信息
Universal MarketInfo Service Library for MT4 & MT5 Bring simplicity and power to your trading projects with the Universal MarketInfo Service — a professional library that exposes a unified API for both MetaTrader 4 and MetaTrader 5. No more rewriting code for each platform. With this library, you can: Access symbol data, OHLC prices, spreads, and volatility with a single call. Query account balance, free margin, stop levels, and lot constraints. Work with currency precision, pip values, and n
FREE
Just another plain Super Trend indicator.  On this one i have added another buffer (on index 2) which can be used on EA; the values is -1 to identify a bearish trend while for bullish trend the value  is 1. Here a code snippet:  int trend = ( int ) iCustom ( NULL , Timeframe, "SuperTrend" , Period , Multiplier, 2 , 1 );   It work on every timeframe.  If you need help to integrate it on your EA, don't hesitate to contact me.
FREE
Universal MarketInfo Service Library for MT4 & MT5 Bring simplicity and power to your trading projects with the Universal MarketInfo Service — a professional library that exposes a unified API for both MetaTrader 4 and MetaTrader 5. No more rewriting code for each platform. With this library, you can: Access symbol data, OHLC prices, spreads, and volatility with a single call. Query account balance, free margin, stop levels, and lot constraints. Work with currency precision, pip values, and n
FREE
This simple logging library is designed to provide clear and contextual log output with minimal hassle. It exposes five  methods: LogErrorMessage(message) LogWarn Message (message) LogInfo Message (message) LogDebug Message (message) LogTrace Message (message) Each method prints the provided message to the console only if the severity level meets or exceeds the current threshold set by a global variable logLevel. This means you control the verbosity of your application's logs by adjusting logLev
FREE
This  EA is a swing strategy  with a martingale  system used to recover trades whenever the trend goes in the opposite direction in order to minimize the looses. The settings are simplified in order to work in almost every condition and it was designed to work with small accounts; though, the minimum recommended is 500$. A s every martingale system, it works efficiently if it has enough margin, so keep enough margin free. Here some reccomended configurations:  Property Name GBPUSD AUDJPY  EURGB
筛选:
无评论
回复评论