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 с продвинутыми функциями, обычно доступными только в специализированных фреймворках машинного обучения. "Секрет успеха в машинном обучении для трейдинга заключается в правильной обработке данных. Garba
Простая в использовании библиотека, предоставляющая разработчикам доступ к ключевым торговым статистикам для их MQL5 экспертов. Доступные методы библиотеки: Данные аккаунта и прибыль: GetAccountBalance() : Возвращает текущий баланс аккаунта. GetProfit() : Возвращает чистую прибыль от всех сделок. GetDeposit() : Возвращает общую сумму депозитов. GetWithdrawal() : Возвращает общую сумму снятий. Анализ торговли: GetProfitTrades() : Возвращает количество прибыльных сделок. GetLossTrades() : Возвраща
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
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
Here   is   the   English translation   of   your   description   for   the EA   (Expert   Advisor): --- This   is a   time -based   automatic trading   EA . It allows   you   to   set the   exact   time   for trading , down   to   the   second , and   specify the   maximum number   of   orders . You   can choose   to   place   either   buy   or   sell   orders . It   is possible to   set take   profit and   stop   loss   points . Additionally , you can   specify   how   long after   placing  
Эта библиотека предназначена для помощи в управлении сделками, расчета лота, трейлинга, частичного закрытия и других функций. Расчет лота Mode 0: фиксированный лот. Mode 1: Лот по Мартингейлу (1,3,5,8,13) может по-разному использоваться для расчета при убытке=1, при прибыли=0. Mode 2: Лот по Множителю (1,2,4,8,16) может по-разному использоваться для расчета при убытке=1, при прибыли=0. Mode 3: Лот по Инкременту (1,2,3,4,5) может по-разному использоваться для расчета при убытке=1, при прибыли=0.
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
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
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
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 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
PropFolio Command Manager Pro PropFolio Command Manager Pro is an advanced, multi-symbol execution terminal designed to automate your custom arrow indicators. Simply enter the name of your arrow indicator into the settings, and the Command Manager will monitor up to 30 currency pairs, indices, or metals simultaneously from a single chart. When your indicator generates a signal, the EA verifies the trend using the built-in Higher Timeframe (HTF) algorithm, checks the live spread, and manages the
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
Скрипт UZFX - Close All Open Buy & Sell Orders Instantly для MetaTrader 5 (MT5) - это мощный инструмент, позволяющий трейдерам немедленно закрыть все активные рыночные позиции одним исполнением. Этот скрипт идеально подходит для экстренного управления торговлей, помогая трейдерам быстро выйти из рынка во время высокой волатильности, новостных событий или корректировки стратегии. Функции: Закрывает все открытые позиции на покупку и продажу по всем символам. Использует последнюю цену Bid/Ask дл
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
Custom Alerts: Контролируйте все рынки и не упустите ни одного сигнала Обзор Custom Alerts — это динамический инструмент для трейдеров, которые хотят отслеживать потенциальные торговые сигналы по множеству инструментов в одном месте. Он объединяет данные от наших флагманских индикаторов — FX Power, FX Volume, FX Dynamic, FX Levels и IX Power — и автоматически уведомляет вас о важных изменениях на рынке. Теперь инструмент поддерживает все классы активов, предлагаемые вашим брокером. Вы можете н
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), основаны на времени вашего терминала. Различные брокеры могут работать в разных часовых поясах по Гринвичу (GMT), что может дополнительно изменяться из-за коррекции летнего времени (DST).** **Пожалуй
Данная библиотека предлагается как средство для использования API OpenAI напрямую в MetaTrader максимально простым способом. Для получения дополнительной информации о возможностях библиотеки прочитайте следующую статью: https://www.mql5.com/en/blogs/post/756106 The files needed to use the library can be found here: Manual ВАЖНО: Для использования EA необходимо добавить следующий URL для доступа к API OpenAI  как показано на приложенных изображениях Для использования библиотеки необходимо включит
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.
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
VIX Momentum Pro EA - Описание продукта Обзор VIX Momentum Pro — это сложная алгоритмическая торговая система, разработанная исключительно для синтетических индексов VIX75. Алгоритм использует продвинутый многотаймфреймовый анализ в сочетании с собственными методами обнаружения моментума для выявления высоковероятных торговых возможностей на рынке синтетической волатильности. Торговая стратегия Торговый советник работает на основе комплексного подхода, основанного на моментуме, который анализир
ProTraderCC
Hicham Mahmoud Almoustafa
ProTrader Command Center - Trading Analytics Dashboard Launch Price: $35 for the first 10 purchases. Price will increase to $60 after that. GUIDE --- You run multiple EAs on different accounts or servers. You check the results manually. You compare lot sizes, drawdowns, and win rates in your head or on spreadsheets. You wonder which EA is actually making money and which one is slowly draining your account. ProTrader Command Center solves this. Attach it to any chart and it reads your full t
С этим продуктом покупают
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
Применяя эти методы, мне удалось прийти к тонкому выводу, который имеет решающее значение для понимания важности уникальных стратегий в современной торговле. Хотя нейросетевой советник показал впечатляющую эффективность на начальных этапах, в долгосрочной перспективе он оказался крайне нестабильным. Различные факторы, такие как колебания рынка, изменения тенденций, внешние события и т. д., приводят к хаотичности его работы и в конечном итоге приводят к нестабильности. Получив этот опыт, я принял
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
* * * * * Основные транзакции XAUUSD, если во время тестирования рекомендуется настроить на XAUUSD, другие торговые объекты не могут гарантировать рентабельность * * * * * * * * * * * * * * * * Оставьте сообщение, которое нужно протестировать (вы ответите в первый раз после просмотра), чтобы защитить результаты работы, необходимо ввести определенные параметры, параметры по умолчанию системы не могут достичь эффекта, показанного в отзыве скриншота! Оставьте сообщение, которое нужно протестиров
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
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、减小仓位量,保持绝对的安全距离。 适用 场景:对未来趋势相对确定,不想错过当前行情,但是认为当前持仓体量又有点大,想降低仓位。
[Gold Intelligent Trading EA | Risk Control is Steady, Profit Breakthrough] The intelligent trading EA, which is customized for the fluctuation characteristics of gold, takes the hard-core trading system as the core, and each order is derived from the accurate judgment of market trends and supporting pressures by quantitative models, so as to eliminate subjective interference and make trading decisions more objective and efficient. Equipped with multi-dimensional risk control system, dynamic s
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
Automatic Replenishment Trading Within a Defined Range The EA operates only within the predefined price range . When an order is closed, filled, or cancelled (reducing the total number of orders), the EA will automatically place new orders to maintain the continuous operation of the trading strategy. This EA is designed for ranging / sideways market conditions . You can control the total number of orders using Max Orders . Example: Max Orders: 8 Active trades: 2 Pending Buy Limit orders: 6 In t
Automatic Replenishment Trading Within a Defined Range The EA operates   only within the predefined price range . When an order is   closed, filled, or cancelled   (reducing the total number of orders), the EA will   automatically place new orders   to maintain the continuous operation of the trading strategy. This EA is   designed for ranging / sideways market conditions . You can control the total number of orders using   Max Orders . Example: Max Orders:   8 Active trades:   2 Pending Sell L
Библиотека WalkForwardOptimizer позволяет выполнить пошаговую и кластерную форвард-оптимизацию ( walk-forward optimization ) советника в МетаТрейдер 5. Для использования необходимо включить заголовочный файл WalkForwardOptimizer.mqh в код советника и добавить необходимые вызовы функций. Когда библиотека встроена в советник, можно запускать оптимизацию в соответствии с процедурой, описанной в Руководстве пользователя . По окончанию оптимизации промежуточные результаты сохраняются в CSV-файл и наб
After downloading this service program, it will be used as a service support program for Dom BookHeatMAP Lightning Trading Panel. Dom BookHeatMAP Lightning Trading Panel   download link: https://www.mql5.com/zh/market/product/159414?source=Site+Market+MT5+Search+Rating006%3aDom+BookHeatMAP+Lightning+Trading+Panel Please first drag and drop the downloaded file to the corresponding service folder (` MQL5 \ Services `) in the MT5 data directory, and confirm that the file has been successfully pla
Простая в использовании, быстрая, асинхронная библиотека WebSocket для MQL5. Он поддерживает: ws:// и wss:// (защищенный веб-сокет "TLS") текстовые и бинарные данные Он обрабатывает: фрагментированное сообщение автоматически (передача больших объемов данных) кадры пинг-понга автоматически (подтверждение активности) Преимущества: DLL не требуется. Установка OpenSSL не требуется. До 128 соединений Web Socket из одной программы Различные уровни журнала для отслеживания ошибок Возможна синхронизац
Эта библиотека позволит вам управлять сделками с использованием любого вашего советника, и ее очень легко интегрировать в любой советник, что вы можете сделать самостоятельно с помощью кода сценария, упомянутого в описании, а также демонстрационных примеров на видео - Размещайте лимитные ордера, SL-лимитные и тейк-профитные лимитные ордера. - Размещайте ордера Market, SL-Market, TP-Market - Изменить лимитный ордер - Отменить заказ - Запрос заказов - Изменение кредитного плеча, маржи - По
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
突破交易策略:智能风控系统升级版‌ 当价格突破关键阻力位时,往往意味着趋势的质变时刻。我们的突破交易策略通过三重智能系统——‌动态阈值识别‌、‌量能验证机制‌和‌自适应止损算法‌,帮助交易者精准捕捉这些跃迁机会。 ‌核心优势‌: ‌智能预警‌:实时监测200+技术指标,自动标记潜在突破位 ‌风险对冲‌:突破失败时自动触发0.5秒内止损,保护本金安全 ‌多周期验证‌:结合日线/4小时/1小时数据过滤假信号 ‌实战案例‌: 2025年第二季度,该策略在现货黄金市场实现连续23次有效突破,平均持仓周期缩短至4.7小时,收益率达传统趋势策略的3.2倍。 ‌智能风控系统‌: ‌动态止盈‌:根据ATR指标自动调整止盈位,锁定利润的同时保留上行空间 ‌分级止损‌:首次突破失败后自动切换至1:1盈亏比保护模式,二次突破确认后恢复原策略 本EA依下图设置做黄金1小时图线,经长时期实盘验证年利润达到30多倍,修改参数可以用作比特币和纳斯达克指数都有很好的收益。
Друзья, присоединяйтесь к нам! Задать свои вопросы и пообщаться с единомышленниками: MetaCOT Public Group Информационный канал MetaCOT: новости, отчетность CFTC и сигналы: MetaCOT Channel Желаю нам удачной торговли и новых прибыльных сигналов! Внимание! Последнее время, некоторые страны блокируют доступ к сайту cftc.gov . Из-за этого, пользователи из этих стран ставят низкий рейтинг продукту. MetaCOT всегда придерживался самых высоких стандартов качества и не связан с этими блокировками. Пож
Это упрощенная и эффективная версия библиотеки для walk-forward анализа торговых экспертов. Она собирает данные о торговле эксперта во время процесса его оптимизации в тестере MetaTrader и сохраняет их в промежуточные файлы в каталоге MQL5\Files. Затем на основе этих файлов автоматически строится кластерный walk-forward отчет и уточняющие его rolling walk-forward отчеты (все они - в одном HTML-файле). С помощью вспомогательного скрипта WalkForwardBuilder MT5 можно на тех же промежуточных файлах
Order Book, известный также как Market Book, глубина рынка, стакан цен, Level 2, - это предоставляемая брокером динамически обновляемая таблица с данными по текущим объемам торговых заявок на покупку и продажу для различных уровней цен вблизи Bid и Ask конкретного финансового инструмента. MetaTrader 5 предоставляет возможность трансляции стакана цен , но только в реальном времени. Данная библиотека OrderBook History Library позволяет считывать состояния стакана в прошлом из архивов, создаваемых
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
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   Золотая выщипывание машины является советником разработан специально для торговли золотом. Операция основана на открытии ордеров с использованием индикатора быстрых и медленных линий, поэтому советник работает в соответствии со стратегией «Trend Follow», что означает следовать тренду. Заказать с помощью политики сетки без операции стоп - лосса, поэтому убедитесь, что счет достаточен. magic number      -  is a special number that the EA assigns to its orders. Lot Multipli
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 );    //复杂开单
Binance Library MetaTrader 5 позволяет использовать его в советниках для торговли и индикаторах для бирж Binance.com и Binance.us напрямую из терминала. Библиотека поддерживает все классы активов на бирже: Spot, USD-M и COIN-M фьючерсы. Доступны все необходимые функции для торговой деятельности: Добавление инструментов с Binance в список символов MetaTrader 5 Получение информации о парах и спецификациях Получение Ask, Bid и времени последней сделки по всем парам Загрузка исторических данных для
1. What is this The MT5 system comes with very few optimization results. Sometimes we need to study more results. This library allows you to output more results during backtest optimization. It also supports printing more strategy results in a single backtest. 2. Product Features The results of the optimized output are quite numerous. CustomMax can be customized. The output is in the Common folder. It is automatically named according to the name of the EA, and the name of the same EA will be au
T5L Library is necessary to use the EAs from TSU Investimentos, IAtrader and others. It contains all the functions framework needed to Expert Advisors working properly.  ツ - The Expert Advisors from  TSU Investimentos does not work without this library,  the T5L library can have updates during the year - At this Library you will find several funcionalities like order sends, buy and sell, trigger entry points check, candlestick analyses, supply and demmand marking and lines, and much more. 
AO Core
Andrey Dik
3.67 (3)
AO Core - ядро алгоритма оптимизации, это библиотека, построенная на авторском алгоритме HMA (hybrid metaheuristic algorithm). Обратите внимание на продукт  MT5 Optimization Booster , который позволяет очень просто управлять штатным оптимизатором МТ5. Пример применения AO Core описан в статье: https://www.mql5.com/ru/articles/14183 https://www.mql5.com/ru/blogs/post/756509 Данный гибридный алгоритм основан на генетическом алгоритме и содержит лучшие качества и свойства популяционных алгоритмов
Другие продукты этого автора
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.

Ответ на отзыв