• 概述
  • 评论 (1)
  • 评论 (2)
  • 新特性

Binance Library

5

The library is used to develop automatic trading on Binance Spot Market from MT5 platform.

  • Support all order types: Limit, Market, Stop-Limit and Stop-Market.
  • Support margin trading.
  • Automatically display the chart on the screen.

Usage:

- Open MQL5 demo account

- Move BinanceLib.ex5 from folder \MQL5\Scripts\Market to MQL5\Libraries

- Download Header file and EA sample https://www.mql5.com/en/code/download/34972_260999.zip

  • Copy Binance.mqh header file to folder \MQL5\Include
  • Copy BinanceEA-Sample.mq5 to folder \MQL5\Experts

- Attach BinanceEA-Sample to the chart


Example how to call Binance Library from EA

#include <Binance.mqh>

string Symbol      = "BTCUSDT";  // Symbol name
string HistoryData = "1W";       // History data: 1W = 1 week, 1M = 1 month, 3M = 3 months, 6M = 6 months, 1Y = 1 year, MAX = maximum available data
string ApiKey      = "";         // Binance api key
string SecretKey   = "";         // Binance secret key

Binance binance; 

int OnInit()
{  
   binance.init(Symbol,HistoryData,ApiKey,SecretKey);  
   binance.showChart();      

   /* 
      double balanceBTC  = binance.balance("BTC");  //--Check BTC balance--//	
      double balanceUSDT = binance.balance("USDT"); //--Check USDT balance--//   
   
      //--Place buy market order BTCUSDT quantity 0.001 BTC at market price--//
          binance.orderBuyMarket("BTCUSDT"     // symbol name
                                 ,0.001);      // order quantity
                                                               
      //--Place buy limit order BTCUSDT quantity 0.001 BTC at limit price 15500 USDT--//                             
          binance.orderBuyLimit("BTCUSDT"      // symbol name
                                ,0.001         // order quantity
                                ,15500         // limit price
                                ,"GTC");       // time in force: GTC, IOC, FOK, default GTC  
                                                                             
      //--Place sell market order BTCUSDT quantity 0.001 BTC at market price--//
          binance.orderSellMarket("BTCUSDT"    // symbol name
                                  ,0.001);     // order quantity
                                                      
      //--Place sell limit order BTCUSDT quantity 0.001 BTC at limit price 25500 USDT--//
          binance.orderSellLimit("BTCUSDT"     // symbol name
                                 ,0.001        // order quantity
                                 ,25500        // limit price
                                 ,"GTC");      // time in force: GTC, IOC, FOK, default GTC  
   
      //--Get exchange info--//
          ExchangeInfo info;
          binance.getExchangeInfo(Symbol(),info);
            
          Print("quantityDigit: ",info.quantityDigit);
          Print("priceDigit: ",   info.priceDigit);
          Print("minNotional: ",  info.minNotional);
          Print("minQty: ",       info.minQty);
          Print("maxQty: ",       info.maxQty);
          Print("stepSize: ",     info.stepSize);

      //--Get orderBook data--//
          OrderBook orderBook[];
          binance.getOrderBook(Symbol(),orderBook);
   
          for(int i = 0; i < ArraySize(orderBook); i++)
          {
             Print("AskPrice[",i,"] = ",orderBook[i].askPrice);
             Print("AskQty[",i,"]   = ",orderBook[i].askQty);
       
             Print("BidPrice[",i,"] = ",orderBook[i].bidPrice);
             Print("BidQty[",i,"]   = ",orderBook[i].bidQty);
          }

      //--Get open orders--//
          OpenOrders openOrders[];
          binance.getOpenOrders(Symbol(),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[];
          binance.getTradeHistory(Symbol(),tradeHistory);
   
          for(int i = ArraySize(tradeHistory)-1; i >= 0; 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;          
          }
   */ 

   return 0;
}

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

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

void OnTick()
{   

} 


评论 1
Konstantin
21
Konstantin 2021.08.27 10:06 
 

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

推荐产品
The MetaCOT 2 CFTC ToolBox Demo is a special version of the fully functional MetaCOT 2 CFTC ToolBox MT5 library. The demo version has no restrictions, however, unlike the fully functional version, it outputs data with a delay. The library provides access to the CFTC (U.S. Commodity Futures Trading Commission) reports straight from the MetaTrader terminal. The library includes all indicators that are based on these reports. With this library you do not need to purchase each MetaCOT indicator sepa
FREE
Survivor
Pavel Nikiforov
Название советника : Survivor  (есть расширенная версия: https://www.mql5.com/ru/market/product/36530 ) Валютные пары : USDJPY, EURUSD, GBPUSD, AUDUSD, GBPJPY, XAUUSD, EURCHF Рекомендованная валютная пара : USDJPY Таймфрейм : М5 Время торговли : круглосуточно Описание : Трендовый  советник с возможностью мартингейла и построением сетки ордеров. В советнике используются три группы аналогичных сигналов для открытия, закрытия и дополнительных сделок. При наличии тренда(определяется МА) ловится отс
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 pr
FREE
This expert is best when running on GBPUSD M30 and is designed to give consistent mid/long term revenues. It doesn't use any dangerous strategies as martingale or grid trading. All orders are protected by a stoploss and the money management feature allows to protect the account balance. This expert also includes a sophisticated time management system to target best times to trade. This EA is not a scalper and will be less affected by slippages and spreads from brokers. It will trade less than a
Derivonit EA
Lungile Mpofu
Derivonit EA  is fully automated Expert Advisor for trading Boom 1000 Index  offered by Deriv formerly known as Binary Dotcom. The EA uses more than seven strategies to open trades and close. It is based on CCI, STOCHASTICH, BANDS, ALLIGATOR and ENVELOPES for opening trades and then uses ATR, ADX, Accelerator Oscillator and RSI for closing trades. The EA will automatically open trades and close on Take Profit. Lot size and number of trades can be also changed depending on account balance you hav
Tenkan Kijun Master
Sylvain Christian Mercier
Tenkan Kijun Master - 您的MT5高级交易伙伴 描述: Tenkan Kijun Master是为MetaTrader 5设计的高级专家顾问,专为使用Ichimoku指标的交易者定制。该EA实现了基于Tenkan和Kijun线交叉的复杂策略。它提供了一种独特且精确的方法来利用市场机会,不依赖于网格或马丁策略。这种方法确保了一种坚固可靠的交易策略,适合最苛刻的交易者。 参数和配置: 默认参数:为USD/CHF H1优化。 其他.Set文件 :评论部分提供了更多配置选项,可灵活适应不同的金融工具。 主要特点: 坚韧性和适应性 :为在多种资产上表现出色而设计,Tenkan Kijun Master以其在不同市场环境中的卓越稳定性脱颖而出。 实时跳点手动优化 :允许深度定制和根据当前市场条件进行精确调整。 按需定制 :完全可定制的设置,满足每个交易者的特定需求。 准确回测 :使用真实跳点数据进行高质量回测,确保可靠的策略模拟。 风险管理 :集成演示模式,安全评估EA的效果。 额外优势 :定期提供配置文件(.set),以进一步优化您使用“Tenkan Kijun Maste
Exp Crassula
Aleksey Luppey
The Exp Crassula expert Advisor can start working with a minimum Deposit of $ 20. it is possible to enable automatic lot increase (calculated from the result of the last transaction.) The expert is working around the clock in fully automatic mode. The expert showed good results on the history of the EURUSD H1 pair. You can enable it on other timeframes and currency pairs by first testing and selecting the minimum size for the calculation in paragraphs parameter. it is recommended to use fr
PZ Goldfinch Scalper EA MT5
PZ TRADING SLU
3.64 (42)
这是我著名的剥头皮机Goldfinch EA的最新版本,它是十年前首次发布。它以短期内突然出现的波动性扩张为市场提供了头条:它假设并试图在突然的价格加速后利用价格变动的惯性。这个新版本已经过简化,使交易者可以轻松使用测试仪的优化功能来找到最佳交易参数。 [ 安装指南 | 更新指南 | 故障排除 | 常见问题 | 所有产品 ] 简单的输入参数可简化优化 可定制的贸易管理设置 交易时段选择 工作日选择 金钱管理 谨防... ick牛黄牛是危险的,因为许多因素都会破坏收益。可变的点差和滑点降低了交易的数学期望,经纪人的低报价密度可能导致幻像交易,止损位破坏了您获取利润的能力,并且网络滞后意味着重新报价。建议注意。 回溯测试 EA交易仅使用报价数据。请以“每笔交易”模式回测。 它根本不使用HLOC(高-低-开-关)数据 交易时间无关紧要 为了获得更好的性能,请为您希望在每个刻度线模式下交易的每个交易品种运行云优化。稍后分享! 输入参数 触发点:触发点差所需的价格变动。 (预设= 10) 最小时间窗口:价格波动发生的最短时间。 (默认= 3) 最长时间窗口:价格波
FREE
Apolo AI MT5
Nestor Alejandro Chiariello
你好,交易者,我严格地设计了这个工具,并提供了真实的结果,Apolo AI 旨在并专门设计用于利用由人工智能和加拿大货币节点构建的趋势算法进行剥头皮,在这里我们可以看到其 1 年回测的结果,从 10k 到 40k,我们还可以看到真实账户信号,真钱中奖,结果类似,Apollo 太不可思议了! 我会告诉你一些关于设计的信息,基于在稳定货币(如美元兑加元)的趋势中进行剥头皮的节点范围,通过这种方式,人工智能负责构建适当的点以进行低风险入场,在 相反的情况,我们有一些节点,您根据恢复或退出并再次恢复的可能性设置恢复因素进入的固定点 如果我们知道滑点的排名较低,则根据时间进行内部分析以适应滑点 需要注意的是,我的策略开发是我作为专业交易员多年来设计的,加入了人工智能的自适应来优化性能,使其变得更好。 应该高度注意的是,这是真正的黄牛,利润将是真实的,通过止盈和止损进行控制 这样你的钱就会受到保护 您不需要有交易经验,我的工具是为初学者和专家设计的,只需两次简单的点击即可安装,因为它将像专业交易者一样完成工作 购买我的产品后,要求我获得最佳配置,您还可以在这里看到我的
K Trade Lib5
Kaijun Wang
3.5 (2)
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
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 installa
区间突破策略简介(收盘前清仓)      区间=昨高-昨低 上轨=开盘价+区间*k;下轨=开盘价-区间*K 止损平仓: 当价格向上突破上轨或向下突破下轨后, 再次回破当日开盘价  参数: Pairs List (comma separated)     = "GBPUSD,GBPJPY,USDJPY,XAUUSD,XTIUSD,USTEC"; - TimeFrame = PERIOD_D1; - MagicNumber    = 60037;          - OrderComment   = "RangeBreakOut"; - FixedLots( RiskPercent = 0)  = 0.1;            - RiskPercent(0 - 100)     = 1;              - RangeMultiplier   = 1;               - DistancePoints   = 10; - Exit Method   =  backopen;      - Close all positions n hours before c
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
The strategy which is applied in finance market all around the world is known as CTA strategy. A successful CTA always includes multi-strategies, multi-instruments and multi-timeframe. The series of Multi Instruments TrendSystem (MITS) provide a profitable strategy which can be used in different instruments with different timeframe. Multi Instruments TrendSystem 3 BS  MT5 (Blood Sword)  is a fully automated multi-instrument Expert Advisor. This EA is one of our trend strategies EA, it can be u
The Trade-Buddy Dashboard MT5 Is a simple colorful panel, with some useful and some stuff that maybe other people may not find SO useful. Regardless, I made this for people like myself who like no Standard Tab or Line Studies displayed on the chart, but still want to be sure of my accounts current state. So basically this Dashboard displays info that isn’t usually displayed on the chart, on the chart. This can also be used by people who want to add an ‘Algorithmic Feel’ to their charts or simply
FREE
Zen MT5
Elena Kusheva
我滑点=0;-允许滑点,0-不使用   S cmt="";-评论订单   我魔法=20200131;-魔术,EA的订单ID   工作时间="00:00-24:00"; - 格式为HH:MM-HH:MM,全天0-24或00:00-24:00   D fix_lot=0.01;//fix lot-working lot   Order_tp D=100.0;//TP. 我建议-10.0-以点为4个字符获利! EA自动检测5个字符的工具,并将自动增加值10倍。   D order_sl=0.0;//SL-止损点数为4个字符!   B AverageUse=true;-使用平均或不   D LotMn=1.59;-用于平均的很多乘数。   D AverageStep=30;-订单之间的步骤. 我推荐-100   D平均值平均值=60;-当平均值时获利。   I MaxOrders=20;-平均网格中的最大订单数。 我推荐-5   TF tf=PERIOD_D1;-working TF 我BarRepeat=3;酒吧重复-在同一方向重复酒吧的最小数目
Wave Bot
Steve Zoeger
Welcome to the MT 5 Wave Bot Simply set the Indicator Filter as you want and the Robot does the Job for you. This Robot works on all frames time frames  and all pairs Features: - Magic Number - Spread Filter - Take Profit - Stop Loss - Bar Shift - Exit at opposite Signal - Filter (adjustable) - Trailing (adjustable) - Martingale (adjustable) and many  more. Please feel free to download it and trade 24/7. If you need help setting it up please feel free to contact me. The best is to run an optimiz
Twenty 23th EA
Piet Tshobi Mahlangu
ABOUT TWENTY 23th EA This is one of the EA's in the market that trades martingale with moving averages, this ea trades using 2 moving averages and the other moving average id for the trailing user don't need to worry about setting trailing stops.This ea martingale on both side at the same time. TRADING PLAN We also have daily trading plan whereby the user will be able to set the trading plan on how much each day the trader is willing to loss or gain. once the daily target is reached ea stops wor
Top Performance EA
Lorenzo Capasso Barbato
4.33 (6)
The EA works with 24 pairs, it has been programmed with specific indicators designed by me, it is not the result of optimizations on past facts and events. The EA is fully customizable from input. The EA is able to detect countertrend movements and therefore opens hedging positions until the new signal to protect the account from strong drawdowns (this is a rare fact. In the backtest 2 or 3 times at most) but it still manages to reduce the drawdoWn and avoid major stop losses. Don't judge EA by
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. 
专家顾问允许您模拟由另一位专家执行并保存在csv文件中的事务的执行。 这对于在另一台服务器上检查交易策略的结果很有用。 使用另一个程序,例如,帐户历史导出器将帐户上的交易历史导出为所需格式的csv文件,或将程序代码从专家历史导出器连接到您的专家以导出历史。 在文件的开头应该有这样一行: DATE,TICKET,TYPE,SYMBOL,VOLUME,ENTRY,PRICE,STOPLOSS,TAKEPROFIT,PROFIT,COMMISSION,FEE,SWAP,MAGIC, COMMENT 它可能不是从文件的一开始就找到的,也就是说,任何其他信息都可能在它之前。 在它们之后和文件的末尾,有一行以逗号分隔的字段值用于一个事务。 行中字段的值: DATE - date in the format YYYY.MM .DD HH:MM:SS TICKET - transaction ticket (integer) TYPE - transaction type from ENUM_DEAL_TYPE (integer) SYMBOL - trading i
FREE
币安是全球知名的加密数字货币交易所!为方便MT5用户直接进行币安期货交易,程序提供以下交易功能: 1、模仿币安期货交易风格,提供友好的操作面板; 2、自行输入api、secret(需要在币安api开通期货交易权限)即可获取杠杆,余额等信息; 3、支持limitOrder(限价订单), marketOrder(市价订单), stopLimit(限价止盈止损单), stopMarket(市价止盈止损单); 4、市价单时可根据最新价格算出最大开仓量和成本信息; 5、可显示所有的订单列表,并可取消订单; 6、可现实所有的仓位列表,并可按照市价订单清空仓位; 7、支持深度信息自动显示(需要深度Websocket产品,可参考: https://www.mql5.com/zh/market/product/68977 ); 8、支持api代理,适合于不能直接访问币安的用户。默认提供的代理为:trade.crossers.net,注意需要将地址放入:工具——选项——EA——WebRequest列表中; 如果需要在的EA中直接交易币安期货,可联系我们提供币安期货交易源代码库 注意:基于mt5开发的量化平
QuantumAlert RSI Navigator is a free indicator available for MT4/MT5 platforms, its work is to provide "alerts" when the market is inside "overbought and oversold" regions in the form of "buy or sell" signals. This indicator comes with many customization options mentioned in the parameter section below, user can customise these parameters as needful. Join our MQL5 group , where we share important news and updates. You are also welcome to join our private channel as well, contact me for the priva
FREE
Bullish Harami GA
Osama Echchakery
The   Bullish Harami candlestick pattern   is formed by two candles. Here’s how to identify the Bullish Harami candlestick pattern: The first candle must be bearish and have a big body The second candle must be small and bullish The second candle is inside the body of the first candle This 2-candle bullish candlestick pattern is a reversal pattern, meaning that it’s used to find bottoms. For this reason, we want to see this pattern after a move to the downside, showing that bulls are starting t
Market Markers EA
Tshepo Michael Motaung
This EA is sessions trading robot that allows you to trade the trading session of yours choice as it waits for market markers to make decision for the direction of the day before taking any trades. It has 3 entry signals that uses candle stick patterns, Moving Averages and Range Break to maximize profits and to take advantage of the trending market. The EA practices risk management and has the ability to grow account by risking certain percentage of your account(risk percentage) each time there
Bear GPX
Milan Cihak
Strategy Introduction The EA will find the best entry and exit points based on the data trained by the neural network and the current market trend. It includes multiple loss exit strategies to ensure capital safety. Because the market is full of uncertainties, it is impossible to enter at the most ideal point every time. Our EA uses a unique batch entry method, adding up to 5 entry points. Each order has a fixed stop loss (SL) and take profit (TP), leaving enough room to deal with sudden market
Multi Strategy Dashboard EA MT5
Kevin Beltran Keena
5 (1)
Multi instrument and multi time frame EA, with the best indicators.  The MSD EA can be used for automated and manual trading. Click on the '?' button on the dashboard to obtain information about the various elements of the MSD EA. Uses ATR Take Profits, ATR Stop Losses and ATR Trailing Stops. Comes with an FX Currency Strength meter and a Market Sessions indicator. Has the option to place Trade Lines (Buy, Sell, Close, Alarm). When the price reaches the trendline, the EA will perform the approp
The library is used to develop automatic trading on Binance Futures Market from MT5 platform. Support all order types: Limit, Market, Stop-Limit, Stop-Market , StopLoss and TakeProfit. Automatically display the chart on the screen. Usage: - Open MQL5 demo account - Move BinanceFuturesLib.ex5 from folder \MQL5\Scripts\Market to MQL5\Libraries -  Download Header file and EA sample https://www.mql5.com/en/code/download/34976_252386.zip Copy BinanceFutures.mqh header file to folder \MQL5\Include C
Trade Dashboard MT5
Fatemeh Ameri
5 (25)
Tired of complex order placement and manual calculations? Trade Dashboard is your solution. With its user-friendly interface, placing orders becomes effortless, by a single click, you can open trades, set stop loss and take profit levels, manage trade lot size, and calculate risk to reward ratios, allowing you to only focus on your strategy. Say goodbye to manual calculations and streamline your trading experience with Trade Dashboard. Download   demo version   right now. You can find   deta
该产品的买家也购买
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 c
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,
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 cl
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
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>       //--- 包含用于A
Native Websocket
Racheal Samson
5 (2)
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 WebSocket Connections from a single program. Various Log Levels for error tracing Can be synchronized to MQL5 Virtual Hosting . Completely native to
WalkForwardOptimizer MT5
Stanislav Korotky
3.86 (7)
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.
AO Core
Andrey Dik
3 (2)
AO Core is the core of the optimization algorithm, it is a library built on the author's HMA (hybrid metaheuristic algorithm) algorithm. 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 population algorithms.  High-speed calculation in HMA guarantees unsurpassed accuracy and high search capabilities,
该库将允许您使用任何 EA 来管理交易,并且非常容易集成到任何 EA 上,您可以使用描述中提到的脚本代码以及显示完整过程的视频演示示例自行完成。 - 下限价、止损限价和止盈限价订单 - 下达市场订单、SL 市场订单、TP 市场订单 - 修改限价订单 - 取消订单 - 查询订单 - 更改杠杆、保证金 - 获取位置信息 和更多... 租赁加密货币图表是可选的,除非您的 MT5 上没有币安图表。 对于脚本演示:单击此处 如果您想与交易面板进行交易,您可能对此产品感兴趣 该产品是加密图表的插件 该库将允许您使用任何 EA 来管理交易,并且非常容易集成到任何 EA 上,您可以使用描述中提到的脚本代码以及显示完整过程的视频演示示例自行完成。 - 下限价、止损限价和止盈限价订单 - 下达市场订单、SL 市场订单、TP 市场订单 - 修改限价订单 - 取消订单 - 查询订单 - 更改杠杆、保证金 - 获取位置信息 和更多... 租赁加密货币图表是可选的,除非您的 MT5 上
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
MetaCOT 2 CFTC ToolBox is a special library that provides access to CFTC (U.S. Commodity Futures Trading Commission) reports straight from the MetaTrader terminal. The library includes all indicators that are based on these reports. With this library you do not need to purchase each MetaCOT indicator separately. Instead, you can obtain a single set of all 34 indicators including additional indicators that are not available as separate versions. The library supports all types of reports, and prov
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 c
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 / OnBookEv
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,
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, Stop-Limit and Stop-Market. Support margin trading. Automatically display the chart on the screen. Usage: - Open MQL5 demo account - Move BinanceLib.ex5 from folder \MQL5\Scripts\Market to MQL5\Libraries - Download Header   file and EA sample https://www.mql5.com/en/code/download/34972_260999.zip Copy Binance.mqh header file to folder \MQL5\Include Copy  BinanceEA-
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     
Gold plucking machine S   Gold plucking machine  S Gold plucking machine S   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
The Trade Tracker Library is used to automatically detect and display trade levels on custom charts. It is an especially useful add-on for EAs that trade on custom charts in MT5. With the use of this library, the EA users can see trades as they are placed via the EA (Entry, SL & TP levels) in real-time. The header file and two examples of EA skeleton files are attached in the comments section (first comment). The library will automatically detect the tradable symbol for the following custom
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. With Binance Library MetaTrader 5, you can easily add instruments from Binance to the Symbols list of MetaTrader 5, as well as obtain information ab
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
This library implements a few functions to simplify the programming of Expert Advisors. * Build your own EA for MT5 / Binance, with a easy support for multisymbol / multytimeframe * Different SFE EAs based on the library provided. * Base signals of SFE EAs are inlcuded in base version. All the Pro filters and management are included in the base version all the 2022. * Customize the provided SFE Lib EA by changing or implementing its rules.. * Review the existing or ask for video tutorials to
The Matrix
Omega J Msigwa
Matrix is the foundation of complex trading algorithms as it helps you perform complex calculations effortlessly and without the need for too much computation power, It's no doubt that matrix has made possible many of the calculations in modern computers as we all know that bits of information are stored in array forms in our computer memory RAM, Using some of the functions in this library I was able to create machine learning robots that could take on a large number of inputs To use this libra
This is standard library built for flexible neural Networks with performance in mind. Calling this Library is so simple and takes few lines of code:    matrix Matrix = matrix_utils.ReadCsv( "Nasdaq analysis.csv" );       matrix x_train, x_test;    vector y_train, y_test;         matrix_utils.TrainTestSplitMatrices(Matrix,x_train,y_train,x_test,y_test, 0.7 , 42 );    reg_nets = new CRegressorNets(x_train,y_train,AF_RELU_,HL, NORM_MIN_MAX_SCALER); //INitializing network       reg_nets.RegressorN
这个库用于key 和 value 数组进行排序, 我们常常需要对值进行排序。 像python语言里面的 sorted(key_value.items(), key = lambda kv:(kv[ 1 ], kv[ 0 ])) 导入函数 #import "SortedByValue.ex5" bool SortedByDouble( long       &key[], double    & value []); bool SortedByDouble( string    &key[], double    & value []); bool SortedByInteger( long      &key[], long      & value []); bool SortedByInteger( string   &key[], long      & value []); bool SortedByDateTime( long     &key[],datetime & value []); bool SortedByDateTime( string &key[],
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 
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 cl
作者的更多信息
This script allows you to close all orders and delete all pending orders. Set to true order type you want to close and cancel. Parameters: AllCurrency  = set true to close position and cancel order in all pair, set false for current pair. CloseBUY  = set true to close buy position. CloseSELL  = set true to close sell position. DeleteBUYSTOP   = set true to cancel buy stop order. DeleteSELLSTOP  = set true to cancel sell stop order. DeleteBUYLIMIT  = set true to cancel buy limit order. DeleteSEL
Binance MT5
Hadil Mutaqin SE
Binance MT5 is a tool for charting & manual trading Bitcoin and Altcoin on Binance Spot Market from MT5 platform. Support all order types: Limit, Market, Stop-Limit and Stop-Market . Parameters Symbol           = symbol name HistoryData    = start time to download history data API Key           = your binance api key Secret Key      = your binance secret key * You should allow WebRequest from Tools menu >> Options >> Expert Advisors and add URL: https://api.binance.com * For automatic tradin
Bitcoin Trading Bot 101 is a fully automated trading system which trades based on market movement to identify trend with smart hedging strategy. The system is running on Binance spot market. Parameters API Key              = your binance api key Secret Key           = your binance secret key Symbol              = symbol name TargetProfit (%) = target profit in percent TimeBased         = period to check target *You should allow WebRequest from Tools menu >> Options >> Expert Advisors and a
BitMEX MT5
Hadil Mutaqin SE
BitMEX MT5 is a tool for charting and manual trading Bitcoin and Altcoin on BitMEX from MT5 platform. Support all order types:: Limit, Market, Stop-Limit, Stop-Market, TakeProfit, StopLoss and Trailing Stop. Parameters API Key  = your bitmex api key Secret Key  = your bitmex secret key Symbol  = symbol name Leverage = to set leverage HistoryData  = start time to download history data TestnetMode  = set to true for testnet, set to false for real trading *You should allow WebRequest from Tools
The library is used to develop automatic trading on Binance Futures Market from MT5 platform. Support all order types: Limit, Market, Stop-Limit, Stop-Market , StopLoss and TakeProfit. Automatically display the chart on the screen. Usage: - Open MQL5 demo account - Move BinanceFuturesLib.ex5 from folder \MQL5\Scripts\Market to MQL5\Libraries -  Download Header file and EA sample https://www.mql5.com/en/code/download/34976_252386.zip Copy BinanceFutures.mqh header file to folder \MQL5\Include C
Binance Futures MT5 is a tool for charting and manual trading Bitcoin & Altcoin on Binance Futures Market from MT5 platform. Support all order types: Limit, Market, Stop-Limit, Stop-Market , StopLoss and TakeProfit. Parameters Symbol            =  symbol name HistoryData      =  start time to download history data APIKey             =  your binance api key SecretKey       =  your binance secret key Leverage         = to set leverage MarginType     =  to set margin type (crossed or isolated) Po
筛选:
Konstantin
21
Konstantin 2021.08.27 10:06 
 

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

回复评论
版本 1.80 2022.02.02
- Fixed no connection issue
- Optimized program code
版本 1.79 2021.10.20
- Various bug fixes and improvements
版本 1.78 2021.09.12
- Various bug fixes and improvements
版本 1.77 2021.09.10
- Added Margin Trading functions
- Added Stop-Market order function
- Various bug fixes and improvements
版本 1.76 2021.08.29
- Added function to get exchange info and orderbook data
- Added function to get open orders, order history and trade history
- Various bug fixes and improvements
版本 1.75 2021.06.22
- Various bug fixes and improvements
版本 1.74 2021.05.30
- Add delay parameter for data request rate
- Various bug fixes and improvements
版本 1.73 2021.05.22
- Fix issue with history data
- Fix issue with chart properties
- Various bug fixes and improvements
版本 1.72 2021.05.19
- Add option for 1 day history data
- Optimized program code
版本 1.71 2021.05.15
- Add HistoryData parameter for maximum data
- Various bug fixes and improvements
版本 1.7 2021.05.08
- Fix issue with exchangeInfo data
版本 1.6 2021.05.07
- Fixed minor bugs
- Optimized program code
版本 1.5 2021.05.03
- Various bug fixes and improvements
版本 1.4 2021.05.02
- Various bug fixes and improvements
版本 1.3 2021.05.01
- Fixed minor bug for volume data
- Optimized program code
版本 1.2 2021.02.16
- Various bug fixes and improvements