Binance Futures Library

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 BinanceFuturesEA-Sample.mq5 to folder \MQL5\Experts

3. Allow WebRequest from MT5 Tools menu >> Options >> Expert Advisors and add URL:

        https://fapi.binance.com

        https://dapi.binance.com

        https://testnet.binancefuture.com

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


Binance Futures 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
         double    stopLossPrice = 0,     // stopLoss price
         double    takeProfitPrice = 0,   // takeProfit price
         string    timeInForce = "GTC",   // timeInForce: GTC, IOC, FOK, default GTC
         string    comment = ""           // order comment
      );


Set stoploss and takeprofit, returns true if successful, otherwise false     

      bool setSLTP                        
      (
         SIDE side,                       // enum SIDE: BUY, SELL
         double stopLossPrice,            // stopLoss price
         double takeProfitPrice           // takeprofit price
      );     


Cancel open orders, returns true if successful, otherwise false

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


Close open positions, returns true if successful, otherwise false

      bool closePosition                  
      (
         SIDE side = -1                   // enum SIDE: BUY, SELL, default -1 close all open positions
      );


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 open positions, returns OpenPositions structure array if successful

      void getOpenPositions               
      (                               
         OpenPositions &openPositions[]   // [out] OpenPositions structure array 
      );


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 the number of all open orders
      );   

 

Get the number of open positions

      int positionsTotal                  
      (
         SIDE side = -1                   // enum SIDE: BUY, SELL, default -1 the number of all open positions
      );          

  

Set leverage, returns true if successful, otherwise false

      bool setLeverage   
      (
         int leverage                     // leverage value
      ); 


Get available balance

      double getBalance(); 


Set hedge position mode, returns true if successful, otherwise false

      bool setHedgeMode();               


Set one-way position mode, returns true if successful, otherwise false

      bool setOneWayMode();         


Set isolated margin type, returns true if successful, otherwise false

      bool setIsolatedMargin();          


Set crossed margin type, returns true if successful, otherwise false

      bool setCrossedMargin();            


Example how to call Binance Futures Library from EA

#include <BinanceFutures.mqh>

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

BinanceFutures 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,115000);                       
   
   // Place buy stoplimit order   
   // b.order(BUY_STOPLIMIT,0.001,110000,115000);  
 
 
   // Place sell market order 
   // b.order(SELL_MARKET,0.001);                         
   
   // Place sell limit order
   // b.order(SELL_LIMIT,0.001,115000);            
   
   // 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();             			             
  
   // Close all open positions
   // b.closePosition();           			     	   
   
   // Set leverage to 10x
   // b.setLeverage(10);           				  	                     
   
   // Set crossed margin type
   // b.setCrossedMargin();        			     	              
   
   // Set isolated margin type
   // b.setIsolatedMargin();       			     	                 
   
   // Set hedge position Mode
   // b.setHedgeMode();            			     	                   
   
   // Set oneWay position Mode
   // b.setOneWayMode();           			                        
     
   // Get the number of all open orders
   // int ordTotal = b.ordersTotal();
      
   // Get the number of all open positions    
   // int posTotal = b.positionsTotal();

   // Get available balance
   // double balance = b.getBalance();              
      
      
/* // Get exchangeInfo data

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

   
/* // Get orderBook data

   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++)
   {
      bool closePosition = openOrders[i].closePosition;
      
      if(closePosition == false)
      {     
         long   orderId      = openOrders[i].orderId;                  
         string symbol       = openOrders[i].symbol;             
         string side         = openOrders[i].side;             
         string positionSide = openOrders[i].positionSide;    
         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 avgPrice     = openOrders[i].avgPrice;        
         double origQty      = openOrders[i].origQty;         
         double executedQty  = openOrders[i].executedQty;
         ulong  time         = openOrders[i].time;     
      }     
   }          
*/  


/* // Get open positions

   OpenPositions openPositions[];
   b.getOpenPositions(openPositions);
   
   for(int i = 0; i < ArraySize(openPositions); i++)
   {
      string symbol           = openPositions[i].symbol;       
      string side             = openPositions[i].side;          
      string positionSide     = openPositions[i].positionSide;  
      double positionAmt      = openPositions[i].positionAmt; 
      double entryPrice       = openPositions[i].entryPrice;    
      double markPrice        = openPositions[i].markPrice;      
      double unRealizedProfit = openPositions[i].unRealizedProfit; 
      double liquidationPrice = openPositions[i].liquidationPrice; 
   }
*/
}     


推荐产品
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
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
Pionex API EA 连接器(MT5) – 无缝集成MT5 概述 Pionex API EA 连接器 允许 MetaTrader 5(MT5) 无缝集成 Pionex API ,让交易者直接在 MT5 上执行交易、管理订单、获取账户余额并跟踪交易历史。 主要功能 账户和余额管理 Get_Balance(); – 获取 Pionex 账户的当前余额。 订单执行和管理 orderLimit(string symbol, string side, double size, double price); – 按指定价格下 限价单 。 orderMarket(string symbol, string side, double size, double amount); – 以指定数量执行 市价单 。 Cancel_Order(string symbol, string orderId); – 取消特定订单(通过 ID )。 Cancel_All_Order(string symbol); – 取消该交易对的所有 未完成订单 。 订单跟踪和历史 Get_Order(str
Dow theory by Trendlines
Jerome Stephane Eric Brivet
JB Dow Theory -- 自动趋势形态检测 Dow Theory是所有技术分析的基础:趋势由更高的高点和更高的低点(上升趋势)或更低的高点和更低的低点(下降趋势)的序列来定义。但手动识别这些形态既缓慢又主观。 该指标通过跟踪摆动枢轴点并在发现有效序列时用趋势线连接它们,实现了Dow Theory形态检测的自动化。 检测到的4种形态类型: 下降波峰(看跌)-- 3个以上连续降低的摆动高点。市场形成更低的高点 = 卖方占据主导。这是Dow Theory经典的下降趋势信号。 上升波谷(看涨)-- 3个以上连续抬高的摆动低点。市场形成更高的低点 = 买方正在入场。经典的上升趋势确认。 上升波峰(看涨延续)-- 3个以上连续抬高的摆动高点。上升趋势正在加速。 下降波谷(看跌延续)-- 3个以上连续降低的摆动低点。下降趋势正在加速。 当波峰和波谷同时确认同一方向时(例如:下降波峰 + 下降波谷),形态强度翻倍 -- 这是Dow Theory最强的信号。 图表上显示的内容: - 连接枢轴序列的彩色趋势线 - 显示形态类型和强度的标签(例如:"4 Falling Peaks
Introducing Your New Go-To Trading EA! Boost your trading performance with this Bollinger Bands-based Expert Advisor, specially designed for XAU (Gold) and various Forex pairs. Why this EA is a must-have: Clean, user-friendly interface – perfect for all trader levels Built-in Hidden Take Profit & Stop Loss for added strategy security Ideal for both beginners and experienced traders Ready to use out of the box – no complex setup required. Trade smarter, not harder!
Key Features: 200+ Fully Implemented Patterns   across all categories Advanced Market Structure Analysis Smart Money Integration   (Wyckoff, Order Blocks, Liquidity) Professional Risk Management Multi-Timeframe Analysis AI-Powered Confidence Scoring Advanced Visualization Real-time Alerts Pattern Categories: Single Candle Patterns (Hammer, Doji, Marubozu, etc.) Multi-Candle Patterns (Engulfing, Stars, Harami, etc.) Chart Patterns (Head & Shoulders, Cup & Handle, Triangles, etc.) Harmonic Pattern
FREE
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
Algo Pumping
Ihor Otkydach
4.76 (21)
PUMPING STATION – 您的专属“全包式”交易策略 我们为您推出PUMPING STATION —— 一款革命性的外汇指标,它将使您的交易变得更加有趣且高效。这不仅仅是一个辅助工具,而是一套完整的交易系统,具备强大的算法,帮助您开始更加稳定的交易。 购买本产品,您将免费获得: 专属设置文件:用于自动配置,实现最大化性能。 逐步视频教程:学习如何使用PUMPING STATION策略进行交易。 Pumping Utility:专为PUMPING STATION打造的半自动交易机器人,让交易变得更加方便和简单。 购买后请立即联系我,我将为您提供所有额外资源的访问权限。 PUMPING STATION如何工作: 趋势监控:能够即时识别市场趋势方向。趋势是您最好的朋友。 进场信号:图表上的箭头会提示您何时进场以及交易方向。 明确的交易目标:指标会自动识别最佳的平仓时机。 回调交易:内置的基于布林带的价格通道可检测修正结束并发出新趋势开始的信号。 效率分析:如果当前设置效果较差,系统会自动提示。只需调整PUMPING STATION,即可获得最佳性能。 交易資產:我推薦我親自測試過的
快速关仓,无需任何操作。 当前版本的一键关仓主要针对的是来不及手动关仓的情况,目前是不分交易标的类别,是对所有的持仓进行关仓。 未来可能升级的方向: 1、分类别、分标的关仓。 适用场景:开了多个标的的仓位,并且波动不一,快速频繁的波动影响了整体的判断。 2、增加只关闭盈利仓位、只关闭亏损仓位。 适用场景:持仓较多,趋势发生变化。 个人建议:一般建议选择一键全部关仓,因为如果行情与持仓方向一致,只关闭盈利仓位无形就是扩大了亏损。如果行情方向与持仓方向相反,只关闭亏损仓位,当前已盈利的后面又会变为亏损,盈利无法变现。 3、按照仓位顺序由大到小关仓、按照仓位顺序由小到大关仓。 适用 场景:行情发生波动,对于未来行情判断把握不确定的,可根据自己需求选择仓位关仓顺序,由大到小关仓的话,可以避免亏损的进一步扩大。 4、减小仓位量,保持绝对的安全距离。 适用 场景:对未来趋势相对确定,不想错过当前行情,但是认为当前持仓体量又有点大,想降低仓位。
Trading Machine Tool
Fudheni Petrus Nambambi
TRADING MACHINE TOOL v3.3 - USER GUIDE Professional SMC + Volume Profile Fusion Indicator for GOLD (XAUUSD) Overview Trading Machine Tool is a professional-grade indicator that fuses Smart Money Concepts (SMC) Order Blocks with Volume Profile analysis to deliver high-probability trading signals for GOLD (XAUUSD). The indicator automatically calculates a 7-factor probability score and displays clear, color-coded Order Blocks with entry signals.   Recommended Configuration | Parameter |   Sp
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
Magic EA MT5
Kyra Nickaline Watson-gordon
Magic EA is an Expert Advisor based on Scalping, Elliot Waves and with filters such as RSI, Stochastic and 3 other strategies managed and decided with the robot smartly. Large number of inputs and settings are tested and optimized and embedded in the program thus inputs are limited and very simple. Using EA doesn't need any professional information or Forex Trading Knowledge. EA can trade on all symbols and all time frames, using special and unique strategies developed by the author. The EA w
SURMAchannelPRO
Roman Surmanidze
SURMAchannelPRO 是一款高级多用途指标,可生成动态价格通道和清晰的趋势跟踪信号。它以平滑的赫尔移动平均线(HMA)为核心,围绕其构建多条通道线(内轨、中间轨、外轨),这些线充当动态支撑和阻力。该指标在通道突破/重新入场时提供直观的买入/卖出箭头信号,并根据用户定义的通道宽度百分比自动绘制水平止盈(TP)和止损(SL)线。其关键特点是集成的统计面板,可跟踪设定历史周期内所有过去信号的表现(总数、T/P、S/L、利润、亏损)。它还包含一个实时显示下一根K线倒计时的计时器。 主要特点: 动态多线通道:   生成主要上下轨以及基于斐波那契的中间轨线,用于精确分析市场结构。 自动信号与回测:   根据价格与通道的交互绘制买入(绿色)和卖出(粉色)箭头。完整记录所有历史信号的表现。 自动止盈止损投影:   为每个交易信号绘制水平止盈和止损线,距离根据当前通道宽度的百分比计算。 表现统计面板:   直接在图表上显示所有过去信号的详细摘要(总数、T/P命中、S/L命中、以点数为单位的利润/亏损)。 完全可定制:   可调整通道周期、各时间框架下的宽度、线型、颜色和信号逻辑参数。 集成计时
BOT NOTIF - 6 - DUAL MODE - BB is a Notifier-type Expert Advisor (EA) specifically designed to monitor market saturation points (Overbought/Oversold) with high accuracy through a three-layer filter: RSI, Wick Validation (Candle Tail), and Bollinger Bands. This bot does not execute automated trades (Auto-Trade); instead, it acts as a smart assistant that sends visual signals and comprehensive Telegram notifications, including real-time chart screenshots. It is ideal for traders seeking price reve
What is SMC Market Structure Pro? SMC Market Structure Pro is an automated trading Expert Advisor for MetaTrader 5 , developed based on Smart Money Concept (SMC) and market structure analysis . The EA is designed to help traders follow the natural flow of the market , focusing on price structure instead of indicators or lagging signals. How Does the EA Work? The EA analyzes market structure changes using pure price action: Detects higher highs & higher lows for bullish structure Detects l
FREE
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
GRID for MT5
Volodymyr Hrybachov
GRID for MT5 是一種方便的工具,適用於那些使用訂單網格進行交易的人,專為在外匯金融市場上進行快速而舒適的交易而設計。 MT5 的 GRID 有一個可定制的面板,其中包含所有必要的參數。適合有經驗的交易者和初學者。與任何經紀商合作,包括有 FIFO 要求的美國經紀商 - 首先,關閉之前打開的交易。訂單網格可以是固定的——訂單以固定的步長開倉,或者有動態的開倉水平——以更好的價格開倉,它只適用於市價單。 GRID for MT5 交易面板具備開倉、平倉和追踪訂單功能。訂單由一籃子關閉,可以是單向 - 僅買入或賣出,或雙向買入和賣出。要平倉,可以使用止損、止盈、盈虧平衡和追踪止損功能。止損和止盈可以設置為餘額的百分比。具有最短持倉時間和新訂單開倉最小間隔(秒)功能。 MT4 版本: https://www.mql5.com/en/market/product/46234 選項: MULTIDIRECTIONAL_MODE - 同時關閉雙向訂單,如果為 true - 關閉一籃子訂單,如果為 false - 買入和賣出訂單分別關閉; MIN_HOLDING_SEC - 最小持
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
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
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
Bolt
Faith Wairimu Kariuki
BOLT – The Gold Trading Powerhouse BOLT is a next-generation AI-driven gold trading robot built for precision, consistency, and explosive profitability. Powered by the GPT-TURBO Core, BOLT is not just another Expert Advisor — it is a fully intelligent trading system designed to dominate the XAU/USD market with unmatched accuracy. Since its launch in 2024, BOLT has achieved remarkable results — turning an initial 1,000 USD into more than 1.3 million USD, all with 100% verified history quality. It
Prime H1 Trader
Phinnustda Warrarungruengskul
Unleash the Power of Precision Trading Prime H1 Trader is a sophisticated, professional-grade EA engineered for the EURUSD currency pair on the H1 timeframe. This expert advisor isn't just another automated system; it's a meticulously crafted trading tool that integrates a powerful technical strategy to pinpoint optimal entry signals with high accuracy. The core of Prime H1 Trader's strategy is its unique dual-indicator approach. It leverages Envelope signals as the primary market trigger , th
FREE
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
More speed, precision, and control in your operations Introducing the StreamDeck for Trading, pre-programmed with Hotkeys, a solution developed to make your order execution much faster and more efficient. With dedicated Buy and Sell buttons, you execute trades with just one touch, with programmable Stop Loss and Take Profit, ensuring greater control over risk management. The system also features automatic Trailing Stop, which follows market movement and intelligently protects your profits wi
1.7*24小时全时在线,安全,可靠,低延时ping; 2.按券商要求智能跟单,详见英文简介   3.本系统仅提供跟单软件服务,不提供交易策略,不代单操作; 4.不限交易手数,客户自行设置A仓手机app端即可,不额外收费 5.客户可按月,季,年付费方式,不同方式,不同优惠,先付费后使用; 6.因券商MT5服务器异常,导致断网后跟单异常,客户需自行风控处理,本系统不提供风控处理 7.券商下单规则改变,会自动更新最新跟单系统 8.详细购买流程,请咨询  wehcat  :zfflyer; 9.再次强调,本系统,仅保障以技术层面实现跟单功能,不参与客户的下单,交易策略,以及风控措施。 10.本系统已稳定运行9个月,经历各种复杂行情考验,稳定,可靠
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
️   Ex-Calibur   EA is Professional Trading Robot with Inside Bar Strategy.   Key Features:   Powerful Inside Bar Strategy - Automatic Inside Bar pattern detection for precise entry points - Colored indicator box visualization for easier analysis - Automated entry system with pending orders to capture breakouts   Advanced Risk Management - Flexible Trailing Stop system to secure profits - Automatic Break Even to protect capital - Adaptive Stop Loss and Take Profit based on market vol
近段时间买家运行良好,但同时也有朋友担心: 1、EA测试回测数据的真实性; 2、回测效果好不代表实测效果好,而免费演示版的可测试时间太短,无法判断EA的实用性。 针对以上问题,现推出一个完美的解决方案,直接给到限定时间的测试版本,需要的可以私信留言,或者聊天窗口找我,看到后会发送测试版本过来。 此外,为了方便部分已购买源代码的客户熟悉了解代码,进一步优化和提升空间,并且让更多的有意向的客户了解这个EA的编辑逻辑,特将代码拆解,不定期的讲解基本思路,跟着走即便是小白也可以快速上手,以便后续购买源代码后快速上手优化! 知乎专栏: Day01:初始MQL5量化系统 - quanter的文章 - 知乎 https://zhuanlan.zhihu.com/p/1969031679428530490 Wordpress个人网站: https://quanter001.wordpress.com/ 如有任何问题,欢迎邮件沟通:quanter001@163.com ****************************************************************
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
AILibrary
Marius Ovidiu Sunzuiana
AI Utility Library for MQL5 The AI Utility Library for MQL5 is a next‑generation development framework that brings artificial intelligence, adaptive logic, and intelligent data processing directly into the MetaTrader ecosystem. Designed for traders, quants, and algorithm developers who demand more than traditional indicator logic, this library transforms MQL5 into a smarter, more predictive, and more efficient environment for building advanced trading systems. Built with a modular architectur
该产品的买家也购买
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
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 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
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
【黄金智能交易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
First contact Telegram - @BerlinOG for more files and installation The   Telegram Signal EA   is a powerful tool designed to bridge your Telegram communications with your MetaTrader 5 (MT5) charts. It enables you to display messages from your Telegram channels, groups, and private chats directly on your MT5 charts as comments. This integration simplifies the process of monitoring trading signals and important messages while you're actively trading. Features Real-time Message Display : View mes
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
本 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 会自动恢复
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.
本服务程序下载后,将作为 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 闪电交易服务,包括实时深度图热力图监控和快速订单执行等核心特性。 请注意,为保障交易系统稳定运行,务必确保该服务程序中设置的交
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
该库将允许您使用任何 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
TupoT3
Li Guo Yin
突破交易策略:智能风控系统升级版‌ 当价格突破关键阻力位时,往往意味着趋势的质变时刻。我们的突破交易策略通过三重智能系统——‌动态阈值识别‌、‌量能验证机制‌和‌自适应止损算法‌,帮助交易者精准捕捉这些跃迁机会。 ‌核心优势‌: ‌智能预警‌:实时监测200+技术指标,自动标记潜在突破位 ‌风险对冲‌:突破失败时自动触发0.5秒内止损,保护本金安全 ‌多周期验证‌:结合日线/4小时/1小时数据过滤假信号 ‌实战案例‌: 2025年第二季度,该策略在现货黄金市场实现连续23次有效突破,平均持仓周期缩短至4.7小时,收益率达传统趋势策略的3.2倍。 ‌智能风控系统‌: ‌动态止盈‌:根据ATR指标自动调整止盈位,锁定利润的同时保留上行空间 ‌分级止损‌:首次突破失败后自动切换至1:1盈亏比保护模式,二次突破确认后恢复原策略 本EA依下图设置做黄金1小时图线,经长时期实盘验证年利润达到30多倍,修改参数可以用作比特币和纳斯达克指数都有很好的收益。
这是一个可以定时自动交易的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
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
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     
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 );    //复杂开单
If you're a trader 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 code to properly implement the library. With Binance Library MetaTrader 5, you can easily add instruments from Bi
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
作者的更多信息
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
筛选:
无评论
回复评论