Binance Library

5

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 Tools menu >> Options >> Expert Advisors and add URL:

        https://api.binance.com

        https://testnet.binance.vision

4. Open any chart and attach BinanceEA-Sample to the chart


Binance Library Functions:

This function must be called from the OnInit() function

      void init                      
      (
         string symbol,                   // symbol name
         string historicalData,           // historicalData: 1W = 1 week, 1M = 1 month, 3M = 3 months, 6M = 6 months, 1Y = 1 year
         string apiKey,                   // binance api key
         string secretKey,                // binance secret key
         bool   testnet = false           // testnet mode
      );


This function must be called from the OnTimer() function

      void getTickData();

 

This function must be called from the OnDeinit() function     

      void deinit();     


The function used to place order, returns orderId if successful, otherwise -1

      long order       
      (
         ORDERTYPE orderType,             // enum ORDERTYPE: BUY_MARKET, SELL_MARKET, BUY_LIMIT, SELL_LIMIT, BUY_STOP, SELL_STOP, BUY_STOPLIMIT, SELL_STOPLIMIT 
         double    quantity,              // order quantity
         double    limitPrice = 0,        // order limitPrice
         double    stopPrice = 0,         // order stopPrice
         string    timeInForce = "GTC",   // timeInForce: GTC, IOC, FOK, default GTC
         string    comment = ""           // order comment
      );

 

Cancel open orders, returns true if successful, otherwise false

      bool cancelOrder                    
      (
         long orderId = -1                // order Id, default -1 cancel all open orders
      );


Get the number of open orders

      int ordersTotal                     
      (
         ORDERTYPE orderType = -1         // enum ORDERTYPE: BUY_LIMIT, SELL_LIMIT, BUY_STOP, SELL_STOP, BUY_STOPLIMIT, SELL_STOPLIMIT, default -1 number of all open orders
      );


Get available asset balance

      double getBalance   
      (
         string asset                     // asset name
      );  

      

Get exchange info, returns ExchangeInfo structure if successful

      void getExchangeInfo                
      (
         ExchangeInfo &exchangeInfo       // [out] ExchangeInfo structure
      );


Get orderbook, returns OrderBook structure array if successful

      void getOrderBook                   
      (
         OrderBook &orderBook[],          // [out] OrderBook structure array
         int limit = 5                    // limit: 5, 10, 20, 50, 100, default 5
      );      


Get open orders, returns OpenOrders structure array if successful

      void getOpenOrders                  
      (
         OpenOrders &openOrders[]         // [out] OpenOrders structure array
      );                                       


Get trade history, returns TradeHistory structure array if successful

      void getTradeHistory                
      (
         TradeHistory &tradeHistory[],    // [out] tradeHistory structure array
         int limit = 10                   // limit default 10, max 1000
      );

      

Example how to call Binance Library from EA

#include <Binance.mqh>

input string Symbol         = "BTCUSDC";     
input string HistoricalData = "1W";    
input string ApiKey         = "";          
input string SecretKey      = "";    

Binance b;

int OnInit()
{
   b.init(Symbol,HistoricalData,ApiKey,SecretKey);
   
   return 0;
}

void OnTimer()
{
   b.getTickData();
}

void OnDeinit(const int reason)
{
   b.deinit();
}

void OnTick()
{ 


   // Place buy market order
   // b.order(BUY_MARKET,0.001);                        
   
   // Place buy limit order
   // b.order(BUY_LIMIT,0.001,75000);              
   
   // Place buy stop order
   // b.order(BUY_STOP,0.001,0,120000);                       
   
   // Place buy stoplimit order
   // b.order(BUY_STOPLIMIT,0.001,110000,120000);  

 
   // Place sell market order
   // b.order(SELL_MARKET,0.001);                         
   
   // Place sell limit order
   // b.order(SELL_LIMIT,0.001,120000);            
   
   // Place sell stop order
   // b.order(SELL_STOP,0.001,0,75000);                          
   
   // Place sell stoplimit order
   // b.order(SELL_STOPLIMIT,0.001,80000,75000);	


   // Cancel all open orders        					   
   // b.cancelOrder();             					                 

   // Get available asset balance
   // double balanceBTC = b.getBalance("BTC");      
   // double balanceUSDC = b.getBalance("USDC");
   
   // Get the number of all open orders
   // int ordTotal = b.ordersTotal();    
     

/* // Get exchangeInfo

   ExchangeInfo exchangeInfo;
   b.getExchangeInfo(exchangeInfo);
   
   string baseAsset   = exchangeInfo.baseAsset;
   string quoteAsset  = exchangeInfo.quoteAsset;
   double minQty      = exchangeInfo.minQty;
   double maxQty      = exchangeInfo.maxQty;
   double minNotional = exchangeInfo.minNotional;
   int    qtyDigit    = exchangeInfo.qtyDigit;
   int    priceDigit  = exchangeInfo.priceDigit;
*/

   
/* // Get orderBook

   OrderBook orderBook[];
   b.getOrderBook(orderBook);
   
   for(int i = 0; i < ArraySize(orderBook); i++)
   {
      double askPrice = orderBook[i].askPrice;
      double askQty   = orderBook[i].askQty;
      double bidPrice = orderBook[i].bidPrice;
      double bidQty   = orderBook[i].bidQty;
   } 
*/
 
     
/* // Get open orders

   OpenOrders openOrders[];
   b.getOpenOrders(openOrders);
   
   for(int i = 0; i < ArraySize(openOrders); i++)
   {
      long   orderId     = openOrders[i].orderId;         
      string symbol      = openOrders[i].symbol;       
      string side        = openOrders[i].side;              
      string type        = openOrders[i].type;     
      string status      = openOrders[i].status;    
      string timeInForce = openOrders[i].timeInForce; 
      double price       = openOrders[i].price;      
      double stopPrice   = openOrders[i].stopPrice;     
      double origQty     = openOrders[i].origQty;   
      double executedQty = openOrders[i].executedQty;       
      ulong  time        = openOrders[i].time;      
   }          
*/  


/* // Get trade history

   TradeHistory tradeHistory[];
   b.getTradeHistory(tradeHistory);
   
   for(int i = 0; i < ArraySize(tradeHistory); i++)
   {
      long   orderId         = tradeHistory[i].orderId;      
      string symbol          = tradeHistory[i].symbol;        
      double price           = tradeHistory[i].price;               
      double qty             = tradeHistory[i].qty;              
      double quoteQty        = tradeHistory[i].quoteQty;         
      double commission      = tradeHistory[i].commission;       
      string commissionAsset = tradeHistory[i].commissionAsset;  
      ulong  time            = tradeHistory[i].time;             
      bool   isBuyer         = tradeHistory[i].isBuyer;          
      bool   isMaker         = tradeHistory[i].isMaker;          
   }                   
*/
} 


评分 1
Konstantin
21
Konstantin 2021.08.27 10:06 
 

The best Binance library. I do recommend it to everyone.

推荐产品
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
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
LSTM Library
Thalles Nascimento De Carvalho
LSTM Library - MetaTrader 5的高级神经网络 专业算法交易神经网络库 LSTM Library为您的MQL5交易策略带来递归神经网络的强大功能。这个专业级实现包括LSTM、BiLSTM和GRU网络,具有通常只在专业机器学习框架中才能找到的高级功能。 "交易机器学习成功的秘诀在于正确的数据处理。 垃圾进,垃圾出 –您的预测质量永远不会超过您的训练数据质量。" — 马科斯·洛佩兹·德·普拉多博士, 金融机器学习进展 主要特点 完整实现LSTM、BiLSTM和GRU 递归Dropout实现更好的泛化 多种优化算法(Adam, AdamW, RAdam) 高级归一化技术 全面的指标评估系统 训练进度可视化 支持通过类权重处理不平衡数据 技术规格 纯MQL5实现 - 无外部依赖 为交易应用程序优化 全面的错误处理和验证 完全支持保存/加载训练模型 详尽的文档 集成说明 要将LSTM Library集成到您的Expert Advisor中,请按照以下步骤操作: 1. 完整库导入 #import "LSTM_Library.ex5"    // 库信息    void Get
MyTradingHistory
Max Timur Soenmez
一个易于使用的库,为开发者提供关键交易统计数据的便捷访问,适用于其MQL5 EA。 库中的可用方法: 账户数据和收益: GetAccountBalance() : 返回当前账户余额。 GetProfit() : 返回所有交易的净利润。 GetDeposit() : 返回总存款金额。 GetWithdrawal() : 返回总取款金额。 交易分析: GetProfitTrades() : 返回盈利交易的数量。 GetLossTrades() : 返回亏损交易的数量。 GetTotalTrades() : 返回执行的总交易数。 GetShortTrades() : 返回卖空交易的数量。 GetLongTrades() : 返回多头交易的数量。 GetWinLossRatio() : 返回盈利与亏损交易的比例。 GetAverageProfitTrade() : 返回每笔盈利交易的平均利润。 GetAverageLossTrade() : 返回每笔亏损交易的平均亏损。 GetROI() : 计算投资回报率。 GetLargestProfitTrade() : 返回单笔交易的最大利润。 Get
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
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
这是一个可以定时自动交易的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
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
Shawrie
Kevin Kipkoech
This Pine Script implements a Gaussian Channel + Stochastic RSI Strategy for TradingView . It calculates a Gaussian Weighted Moving Average (GWMA) and its standard deviation to form an upper and lower channel. A Stochastic RSI is also computed to determine momentum. A long position is entered when the price closes above the upper Gaussian band and the Stoch RSI K-line crosses above D-line . The position is exited when the price falls back below the upper band. The script includes commission, cap
ELTRA Guardian EA
Aziz Maulidi Wimantara
Proven consistent performance — backtested from 2021 to 2025 with steady growth every week, month, and year. ELTRA Guardian EA is a fully automated Expert Advisor exclusively optimized for trading XAU/USD (Gold) . It combines precise level-based entries with EMA trend filtering to deliver consistent performance in volatile gold markets. Key Features: Gold-Only Strategy: Specifically designed and tuned for XAU/USD. Fixed Price Levels: Executes trades only when price touches 4-point interv
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
License Manager EA
Timothy Chuma Ifiora
License Panel Integration Guide This EA uses a license panel system to verify usage before running trading logic. File Placement Place LICENSE_SINGLE.mqh in the same folder as your EA .mq5 file. If using a subfolder, update the #include path in the EA file. Integration Steps Include the License File #include "LICENSE_SINGLE.mqh" Initialization (OnInit) Call the license check when the EA starts: VerifyLicense(); Deinitialization (OnDeinit) Clean up license resources when EA is removed: HandleLi
Introducing the BlackWing Signal Provider—an advanced EA designed to enhance your trading experience by facilitating seamless communication between your MetaTrader 5 platform and Telegram channels, groups, or individual users. Key Features: 1. Real-Time Event Notifications: Receive instant alerts on new trades, modified orders, closed positions, and deleted orders. Stay informed and make well-timed decisions. 2. Interactive Chart Snapshots: Share chart snapshots along with new trades and ord
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
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
The Simple Manual Trading Panel (v2.11) Is a professional trade management tool designed with a clean, movable UI to streamline manual execution and automated exit strategies. Core Features Dynamic Visual Interface: A movable GUI panel that provides real-time information including a bar countdown timer, live spread, and advanced volume analysis. Flexible Lot Size setting, with 2 decimals (If broker supports it). Multi-Stage Take Profit: Supports three distinct Take Profit (TP) levels in either
适用于 MetaTrader 5 (MT5) 的 UZFX - 即时关闭所有未结买单和卖单脚本是一款功能强大的工具,交易者只需执行一次操作,即可立即关闭所有活跃的市场头寸。该脚本是紧急交易管理的理想工具,可帮助交易者在剧烈波动、新闻事件或策略调整期间快速退出市场。 功能 关闭所有符号的所有未结买入和卖出头寸。 使用最新的买入价/卖出价,执行准确。 帮助交易者即时退出市场,只需极少的手动操作。 使用方法 将脚本附加到 MT5 图表。 脚本将扫描并关闭所有未平仓的买入和卖出头寸。 专家选项卡中将显示每个平仓订单的确认信息。 注意 该脚本不会删除挂单,只会关闭活跃的市场头寸。 它适用于所有交易符号,而不仅仅是所附图表。 运行脚本前,请确保您要关闭所有仓位,因为脚本会立即执行。 开发者:Usman Zabir - UZ 乌斯曼-扎比尔 - UZFX 版本: 1.00 年份: 2025 网站: https://www.mql5.com/en/users/forextycoons
FREE
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
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
Telegram to MT5 Coppy
Sergey Batudayev
5 (10)
Telegram 到 MT5: 终极信号复制解决方案 使用 Telegram 到 MT5 简化您的交易,这款现代化工具可直接从 Telegram 频道和聊天室复制交易信号到您的 MetaTrader 5 平台,无需 DLL 文件。这款强大的解决方案可确保精准的信号执行、丰富的自定义选项,节省时间并提高您的效率。 [ Instructions and DEMO ] 主要特点 直接 Telegram API 集成 通过电话号码和安全码进行身份验证。 通过用户友好的 EXE 桥轻松管理聊天 ID。 添加、删除和刷新多个频道/聊天以同时复制信号。 使用高级过滤器进行信号解析 跳过包含异常词(例如“报告”、“结果”)的不需要的信号。 支持灵活的 SL 和 TP 格式:价格、点数或点数。 自动计算指定点而不是价格的信号的切入点。 订单定制和灵活性 使用多种模式配置订单大小:固定手数、动态手数(% 风险)或特定符号手数。 使用信号数据或自定义参数调整 SL/TP。 设置滑点限制、挂单到期时间和重试参数,以实现无缝执行。 综合符号管理 排除特定符号或映射到特定经纪人的符号。 自定义信号和经纪商符号之间
SD Trader Combined — Product Description SD Trader Combined Find the zone. Trade the reaction. Protect the account. A single-file, broker-safe Expert Advisor for MetaTrader 5 that detects high-quality supply & demand zones, scores them objectively, and executes three configurable strategies with strict, rules-based risk control. At a glance Platform MetaTrader 5 (build 3815+) Account Hedging or Netting Symbols Any liquid FX, metals, indices, crypto Timeframes M5 – H4 (optimized for M15 / H1) Fil
Custom Alerts:监控多个市场,绝不错过关键交易信号 概述 Custom Alerts 是一款动态工具,专为希望集中监控多个交易品种潜在机会的交易者设计。通过整合我们旗舰工具(如 FX Power、FX Volume、FX Dynamic、FX Levels 和 IX Power)提供的数据, Custom Alerts 可自动通知您关键的市场变化,无需频繁切换图表,也不会错过交易良机。现在,它支持您的经纪商提供的所有资产类别,只需在设置中选择相应的资产类别即可,无需手动输入任何品种名称。 1. 为什么 Custom Alerts 对交易者非常有帮助 一体化市场监控 • Custom Alerts 收集并整合来自外汇、贵金属、加密货币、指数,甚至(若经纪商支持)股票市场的信号。 • 无需频繁切换图表,一切通知集中呈现。 根据策略定制提醒 • 精准设置提醒条件。无论是追踪成交量激增、强度突破,还是极端价格波动, Custom Alerts 都能确保您不会错过任何关键信号。 • 可与 Stein Investments 工具无缝集成,助您更深入分析与优化交易决策。 节省时
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
AO Trade
Ka Lok Louis Wong
AO Trade 系統是專門為趨勢交易而設計,利用競價時段或新聞時間作為參考點,與其他特定時間進行比較,以預測市場趨勢。 ** EA 中使用的所有時間參數均基於您的終端時間。不同的經紀人可能運作在不同的格林尼治標準時間區域,亦可能因夏令時調整而進一步變化。 請確保在實施之前對齊您終端的時間設置進行全面驗證。** 推薦設置: Use in   M1  timeframe HK50 / DE40 / ustec / UK100 在時間檢查期間,您將注意到價格檢查發生在特定檢查時間分鐘之後的1分鐘(1.2檢查時間分鐘)。這個設計是有意的,允許參考的柱子完成,從而確保開盤價、最高價、最低價和收盤價可以用於與訂單時間進行準確比較。 設置: -----------------1 Timers------------------- 1.1 Check time hour (HH)    --  用於記錄價格的時間戳。 1.2 Check time minute (MM) 1.3 Order time hour (HH)    -- 用於與檢查價格進行比較以開啟訂單的時間戳。 1.4 Order
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
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
TradeMetrics Pro
Hussein Adnan Kadhim
The TradeMetrics Pro indicator enhances trade analysis and performance evaluation by presenting trade history and metrics directly on the chart. It accomplishes this through three key features: Summary Trade Panel: The Summary Trade Panel provides a concise overview of open and closed trades. It organizes trade summaries by symbol, lots traded, pips gained or lost, profit, and advanced statistics. This panel enables quick assessment and comparison of trade performance across different symbols.
Institutional Risk Manager
Santiago Nicolas Pla Casuriaga
Institutional Risk Manager 在 MetaTrader 5 的单一图表面板中完成仓位规模计算、订单执行、分批离场、追踪止损、投资组合敞口监控以及基于事件的过滤 — 全部集中管理。 手数根据账户余额和止损距离自动计算。分批离场按可配置的 R 倍数执行,并在最终目标位同时设置经纪商端止盈,即使 EA 离线该止盈也会生效。风险纪律以机械方式强制执行,而非依赖人工判断。 风险引擎 设置风险百分比,拖动止损线到目标位置,EA 会根据账户余额和到止损的距离实时计算精确手数 — 无需手动计算,不存在四舍五入误差。基于 ATR 的最大止损上限可防止在宽止损设置下承担过大风险;同样基于 ATR 的最小止损下限则会阻止统计上过于紧凑、缺乏意义的止损入场。 机构级失效位 基于近期价格行为识别摆动结构位,并建议在逻辑失效点设置止损 — 即交易逻辑在结构上失效的价格,而非单纯固定点数距离。回溯周期、ATR 距离范围及汇合半径均可配置。 订单执行 可直接从面板下达市价单及全部四种挂单类型(Buy/Sell Stop、Buy/Sell Limit),无需单独的订单窗口。 分批离场系统 三阶段
RazorQuant AI
Steffen Schmidt
RAZORQUANT AI v3.7 (MT5 EA)  Purpose: Automated trading EA that combines classic technical filters with machine-learning signals and optional external AI (LLM) advice to decide BUY/SELL/HOLD and manage trades. Core trading + risk rules: Runs on a chosen timeframe (default M1 ), with MagicNumber , max trades per symbol/day , minimum minutes between trades , max spread , and daily loss limit (% of balance) . Position sizing supports fixed lot or risk-% . Technical filters (rule-based): Trend/MA s
该产品的买家也购买
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
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
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
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
近段时间买家运行良好,但同时也有朋友担心: 1、EA测试回测数据的真实性; 2、回测效果好不代表实测效果好,而免费演示版的可测试时间太短,无法判断EA的实用性。 针对以上问题,现推出一个完美的解决方案,直接给到限定时间的测试版本,需要的可以私信留言,或者聊天窗口找我,看到后会发送测试版本过来。 此外,为了方便部分已购买源代码的客户熟悉了解代码,进一步优化和提升空间,并且让更多的有意向的客户了解这个EA的编辑逻辑,特将代码拆解,不定期的讲解基本思路,跟着走即便是小白也可以快速上手,以便后续购买源代码后快速上手优化! 知乎专栏: Day01:初始MQL5量化系统 - quanter的文章 - 知乎 https://zhuanlan.zhihu.com/p/1969031679428530490 Wordpress个人网站: https://quanter001.wordpress.com/ 如有任何问题,欢迎邮件沟通:quanter001@163.com ****************************************************************
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
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
快速关仓,无需任何操作。 当前版本的一键关仓主要针对的是来不及手动关仓的情况,目前是不分交易标的类别,是对所有的持仓进行关仓。 未来可能升级的方向: 1、分类别、分标的关仓。 适用场景:开了多个标的的仓位,并且波动不一,快速频繁的波动影响了整体的判断。 2、增加只关闭盈利仓位、只关闭亏损仓位。 适用场景:持仓较多,趋势发生变化。 个人建议:一般建议选择一键全部关仓,因为如果行情与持仓方向一致,只关闭盈利仓位无形就是扩大了亏损。如果行情方向与持仓方向相反,只关闭亏损仓位,当前已盈利的后面又会变为亏损,盈利无法变现。 3、按照仓位顺序由大到小关仓、按照仓位顺序由小到大关仓。 适用 场景:行情发生波动,对于未来行情判断把握不确定的,可根据自己需求选择仓位关仓顺序,由大到小关仓的话,可以避免亏损的进一步扩大。 4、减小仓位量,保持绝对的安全距离。 适用 场景:对未来趋势相对确定,不想错过当前行情,但是认为当前持仓体量又有点大,想降低仓位。
【黄金智能交易EA|风控稳守,盈利突围】 专为黄金波动特性定制的智能交易EA,以硬核交易系统为核心,每笔下单均源自量化模型对行情趋势、支撑压力的精准研判,杜绝主观干扰,让交易决策更客观高效。 搭载多维风控体系,动态止损止盈+仓位智能调控双保险,严格锁定单笔风险阈值,即便面对黄金跳空、黑天鹅行情,也能有效规避大幅回撤,守护本金安全。 更具备浮盈加仓智能算法,趋势明朗时自动放大盈利头寸,让利润在顺势中滚动增长,既不浪费单边行情红利,又通过阶梯式加仓策略平衡风险与收益,实现“风控打底,盈利上不封顶”的交易闭环! 本款EA历经38次修改与测试,每一次升级都境加了EA的稳定盈利能力,才最终确定此为终极版本发布。 本款EA目前只针对现货黄金 交易的长期回测和实盘验证,按照下图设置实现长期的稳定 盈利。如果需要交易期它品种,请根据实际情况更改设置。 本EA为阶梯定价,每卖出10份价格增加10%
SniperkickEA
Mohamed Maguini
Questo Expert Advisor (EA) è stato progettato per offrire un'esperienza di trading automatizzata di alto livello, adatta sia ai trader principianti che a quelli esperti. Utilizzando algoritmi avanzati e tecniche di analisi del mercato, l'EA è in grado di identificare opportunità di trading redditizie con precisione e velocità. L'EA è configurabile per operare su vari strumenti finanziari, tra cui forex, indici e materie prime, garantendo una flessibilità senza pari. Le caratteristiche princip
本 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 会自动恢复交易。 订单设置
本 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 会自动恢复
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 res
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
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
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     
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. 
作者的更多信息
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
筛选:
Konstantin
21
Konstantin 2021.08.27 10:06 
 

The best Binance library. I do recommend it to everyone.

回复评论