• Visão global
  • Comentários
  • Discussão (15)
  • O que há de novo

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; 
   }
*/
}     


Produtos recomendados
Pionex API EA Connector para MT5 – Integração Perfeita com MT5 Visão Geral O Pionex API EA Connector para MT5 permite a integração perfeita entre MetaTrader 5 (MT5) e a API da Pionex . Com esta ferramenta poderosa, os traders podem executar e gerenciar operações, obter informações de saldo e acompanhar o histórico de ordens diretamente no MT5 . Principais Funcionalidades Gerenciamento de Conta e Saldo Get_Balance(); – Obtém o saldo atual da conta na Pionex . Execução e Gerenciamento de Ord
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
Ajuste BRA50
Claudio Rodrigues Alexandre
4.4 (5)
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
K Trade Lib5
Kaijun Wang
2 (1)
MT4/5通用交易库(  一份代码通用4和5 ) #import "K Trade Lib5.ex5"    //简单开单    long OrderOpen( int type, double volume, int magic, string symbol= "" , string comment= "" , double opprice= 0 , double sl= 0 , double tp= 0 , int expiration= 0 , bool slsetmode= false , bool tpsetmode= false );    //复杂开单    void SetMagic( int magic, int magic_plus= 0 ); void SetLotsAddMode(int mode=0,double lotsadd=0);    long OrderOpenAdvance( int mode, int type, double volume, int step, int magic, string symbol= "" , string comm
FREE
Shawrie
Kevin Kipkoech
This Pine Script implements a Gaussian Channel + Stochastic RSI Strategy for TradingView . It calculates a Gaussian Weighted Moving Average (GWMA) and its standard deviation to form an upper and lower channel. A Stochastic RSI is also computed to determine momentum. A long position is entered when the price closes above the upper Gaussian band and the Stoch RSI K-line crosses above D-line . The position is exited when the price falls back below the upper band. The script includes commission, cap
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
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
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
1. Copiar pedidos, de 12 contas master para 100 contas slave. O número de contas slave pode ser personalizado, de 12 a 100. 2. Suporte MT4 a MT4, MT4 a MT5, MT5 a MT4, MT5 a MT5. 3. Identifique os sufixos de variedades de negociação em diferentes plataformas, como EURUSD, EURUSDm, EURUSDk. 4. Correspondência de moeda personalizada, como XAUUSD=GOLD. 5. Pode copiar todas as transações ou apenas copiar as instruções BUY, SELL, CLOSE 6. Você pode escolher se deseja copiar o stop profit e o stop lo
Essa biblioteca é usada para classificar matrizes de chave e valor, geralmente precisamos classificar valores. como na linguagem python sorted(key_value.items(), key = lambda kv:(kv[ 1 ], kv[ 0 ])) função de importação Exemplo de cenários de uso 1. As ordens do Grid EA são classificadas de acordo com o preço de abertura void SortedByOpenPride()   {    long     OrderTicketBuffer[];    double   OpenPriceBuffer[];    for ( int i = PositionsTotal ()- 1 ; i>= 0 ; i--)      {        if (m_positio
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
Santa Scalping MT5
Morten Kruse
3.33 (3)
Santa Scalping is a fully automated Expert Advisor with no use of martingale. Night scalping strategy. The SMA indicator filter are used for entries. This EA can be run from very small accounts. As small as 50 EUR. General Recommendations The minimum deposit is 50 USD,  default settings reccomend for eurusd m5 gmt +2 . Please use max spread 10 if you will not have orders change it to -1. Use a broker with good execution and with a spread of 2-5 points. A very fast VPS is required, preferably wi
LT Mini Charts
Thiago Duarte
4.88 (8)
Este é um indicador utilitário que cria gráficos em miniatura no lado esquerdo do gráfico que você está observando. Ele é muito útil para observar diversos tempos gráficos simultaneamente, sem ter que transitar entre múltiplos gráficos. Sua configuração é simples. Você pode ter até 4 mini gráficos abertos. Eles automaticamente carregam o template do gráfico "pai". Faça bom uso! Este é um indicador gratuito, porém levou horas para desenvolvê-lo. Se desejar me pagar um café, eu agradeceria muito
FREE
Didi Index
Flavio Javier Jarabeck
4.8 (25)
The famous brazilian trader and analyst Didi Aguiar created years ago a study with the crossing of 3 Simple Moving Averages called "Agulhada do Didi", then later was also named Didi Index, as a separate indicator. The period of those SMAs are 3, 8 and 20. As simple as that, this approach and vision bring an easy analysis of market momentum and trend reversal to those traders looking for objective (and visual) information on their charts. Of course, as always, no indicator alone could be used wit
FREE
Our team - @Supremacy_Lab - are glad to introduce our first product - EA_Supremacy_NT - a unique technical solution for day trading, scalping, and trend following. EA_Supremacy_NT is a non-trading version of our core automated advisor, that will be released later. It is a truly innovative product that is based on an unconventional approach to market data processing. The underlying algorithm allows traders to reap the maximum possible profit from short-term price movements. The system uses a si
You can see Binance Futures data instantly in Metatrader 5 and it allows you to use all the features that Metatrader has provided to you. You can access the data of all symbols listed on Binance Futures. Don't forget to set the timezone. Binance it's 00:00 UTC. You need to fix it according to your own country You need to pre-install the free Binance Future Symbol List plugin. https://www.mql5.com/tr/market/product/82891 After loading, it automatically downloads the data of the cryptos in the m
Based on the trading model/strategy/system of gold double-position hedging and arbitrage launched by Goodtrade Brokers, problems encountered in daily operations: 1. Account B immediately places an order immediately following account A. 2: After account A places an order, account B will automatically copy the stop loss and take profit. 3: Account A closes the position of Account B and closes the position at the same time. 4: When account B closes the position, account A also closes the position.
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
SMC Structure Markup
Seyed Mohammad Hosseini Hejazi
5 (6)
Overview The Smart Money Structure Markup Indicator for MetaTrader 5 is a powerful tool designed to help traders identify key market structures based on popular Smart Money Concepts (SMC) strategies. This indicator detects micro-market structures, providing insights into price movements and potential trend changes. It highlights important elements such as valid Break of Structure (BOS), Change of Character (CHoCH), and Inducement (IDM), helping traders to make informed decisions. Key Features Ma
FREE
Second Level Candles And Alligator Indicators 每12秒产生一个K线,而且自带Alligator指标,对超短线选手交易非常有帮助。程序启动时可能不成功,是因为MT5 MqlTick 数据加载少的原因。可以通过修改显示的数据参数避免,比如display=100,程序正常之后再将参数调大 display=300 。如果数据不正常,也可以采用重新加载的方式解决。 如果您对这个指标有任何建议,请联系作者。  Second Level Candles And Alligator Indicators  produced a candle per 12 seconds,include Alligator, it's helpful to Short-Term Trading。You'd better reload the indicator every start MT5 or change display parameter to reslove data bug. Please attach author when  you had some su
FREE
Steady Runner NP EA
Theo Robert Gottwald
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
SilverPulse AI
Babak Alamdar
3.64 (14)
Diversifique sua negociação com novos instrumentos, seu portfólio ficará mais forte    Live Signal 1    Live Signal 2 Este preço é temporário durante a promoção e será aumentado em breve Preço final: 5.000 $  Restam apenas algumas cópias com o preço atual, o próximo preço é -->> 745 $ Welcome to the SilverPulse AI Hey, I'm SilverPulse AI! Este é o primeiro robô mais inteligente que negocia Prata ou XAG com pares completos como XAGUSD, XAGEUR e XAGAUD! Acompanho as notícias todos os dias e ap
Mergulhe no emocionante mundo da negociação manual e descubra as possibilidades ilimitadas que temos pela frente. Com a sua experiência e o seu conhecimento do mercado, pode alcançar um sucesso impressionante e aumentar continuamente o seu portefólio. A negociação manual permite-lhe assumir o controlo das suas estratégias e decisões e ter uma influência direta nas suas atividades de negociação. Através do seu conhecimento profundo dos mercados e da sua compreensão dos vários instrumentos de neg
FREE
Advanced Trade Mirror   is a powerful Forex tool designed for traders who need instant, seamless trade replication across multiple terminals on the same machine. With lightning-fast execution, it ensures zero lag in copying trades, maintaining precision and efficiency in high-speed trading environments. Get the Trade Mirror Master here:  https://www.mql5.com/en/market/product/133891 Specification: Master ID: Identity value of master terminal, please use a unique value to prevent duplicated mas
FREE
Ferramenta de Posição de Negociação e Backtesting: A "Ferramenta de Posição de Negociação e Backtesting", também conhecida como "Ferramenta de Risco e Recompensa", é um indicador abrangente e inovador projetado para aprimorar sua análise técnica e estratégias de negociação. A Ferramenta de Risco é uma solução completa e fácil de usar para gestão eficaz de riscos na negociação forex. Com a capacidade de visualizar posições de negociação, incluindo preço de entrada, stop-loss (SL) e take-profit
FREE
Advanced Trade Mirror   is a powerful Forex tool designed for traders who need instant, seamless trade replication across multiple terminals on the same machine. With lightning-fast execution, it ensures zero lag in copying trades, maintaining precision and efficiency in high-speed trading environments. Get the Trade Mirror Follower here:  https://www.mql5.com/en/market/product/133890 Specification: Master ID: Identity value of master terminal, please use a unique value to prevent duplicated mas
FREE
O Expert Advisor permite que você promova a execução de transações feitas por outro Expert Advisor e salvas em um arquivo csv. Isso pode ser útil para verificar os resultados de uma estratégia de negociação em outro servidor. Use outro programa, como o Account History Exporter, para exportar o histórico de transações na conta para um arquivo csv do formato desejado ou conecte o código do Expert History Exporter ao seu expert History Exporter para exportar o histórico. No início do arquivo,
FREE
PROMOTION!! $499 until 1 Mar. After that, EA will be $1,050 Developed and tested for over 3 years, this is one of the safest EAs on the planet for trading the New York Open. Trading could never be easier.  Trade On NASDAQ US30 (Dow Jones Industrial Average) S&P 500  What Does The EA do? The EA will open a Buy Stop Order and a Sell Stop Order(With SL and TP) on either side of the market just a few seconds before the NY Open.  As soon as 1 of the 2 trades is triggered, the EA automatically delete
Automated Supply and Demand Tracker MT5. The following videos demonstrate how we use the system for trade setups and analysis.US PPI, Fed Interest Rates, and FOMC Trade Setup Time Lapse: U.S. dollar(DXY) and Australian dollar vs U.S. dollar(AUD/USD)  https://youtu.be/XVJqdEWfv6s  The EUR/USD Trade Setup time lapse 8/6/23.  https://youtu.be/UDrBAbOqkMY . US 500 Cash Trade Setup time lapse 8/6/23  https://youtu.be/jpQ6h9qjVcU .  https://youtu.be/JJanqcNzLGM ,  https://youtu.be/MnuStQGjMyg,&nbsp ;
News Scalper EA is an Expert Advisor for trading EURUSD - GBPUSD - XAUUSD pairs, positioning your positions during the news. Developed by an experienced trader with over 17 years of trading experience. News Scalper EA uses a news calendar from MQL5 and trades according to them. With sophisticated strategy and risk management, the EA protects your positions from larger losses! News Scalper EA lets you close the SL after the set time (1 minute, planned) when the position is in minus, which proves
FREE
Os compradores deste produto também adquirem
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
Nmt5
Liang Qi Quan
这段代码是一个简单的交易专家顾问(Expert Advisor)示例,主要功能如下: 使用两个移动平均线(MA)作为交易信号: 快速MA(FastMA)和慢速MA(SlowMA) 初始化函数(OnInit): 创建两个MA指标句柄 设置数组为时间序列模式 清理函数(OnDeinit): 释放指标句柄,防止内存泄漏 主要交易逻辑(OnTick): 获取最新的MA值 判断趋势和交易信号 在无持仓时执行交易 交易规则: 上升趋势+买入信号时开多单 下降趋势+卖出信号时开空单 使用固定的止损和止盈点数 风险管理: 使用输入参数设置交易手数、止损和止盈 每次只允许一个持仓(inTrade变量) 使用MQL5的Trade库进行交易操作,简化了下单过程 这个EA适合初学者学习,展示了基本的EA结构和简单的交易策略实现方法。但在实际使用前,还需要进行更多的测试和优化。
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
*****主要交易XAUUSD,如果测试的时候,建议调整到XAUUSD,其他交易标的不能保证盈利效果********* 需要测试的请留言(看到后会第一时间回复),为了保护工作成果,需要输入特定的参数,系统默认的参数无法实现截图回撤所示效果! 需要测试的请留言(看到后会第一时间回复),为了保护工作成果,需要输入特定的参数,系统默认的参数无法实现截图回撤所示效果! 需要测试的请留言(看到后会第一时间回复),为了保护工作成果,需要输入特定的参数,系统默认的参数无法实现截图回撤所示效果! **************************************************************************************************************************************************************** 1、【简述】主要为趋势交易,严格筛选交易信号,一旦交易信号明确,快速交易。 2、【止损止盈】每月止盈15%,止损30%。 3、【特殊说明】严格的交易执行逻辑,一旦当月达到止盈止损后,坚决不再开
Este produto esteve em desenvolvimento nos últimos 3 anos. É a base de código mais avançada para trabalhar com todos os tipos de inteligência artificial e aprendizado de máquina na linguagem de programação MQL5. Tem sido usado para criar vários robôs de trading e indicadores com tecnologia de IA no MetaTrader 5. Esta é a versão premium de um projeto gratuito e de código aberto sobre aprendizado de máquina para MQL5, disponível aqui:  https://github.com/MegaJoctan/MALE5 . A versão gratuita tem me
WalkForwardOptimizer MT5
Stanislav Korotky
3.63 (8)
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.
Native Websocket
Racheal Samson
5 (5)
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
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  
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
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
MetaCOT 2 CFTC ToolBox MT5
Vasiliy Sokolov
3.67 (3)
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
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
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 );    //复杂开单
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 é necessaria para o uso dos robos da TSU Investimentos, nele você tera todo o framework de funções para o funcionamento correto dos nossos Expert Advisors para MetaTrader 5  ツ . -   O Robos  Expert Advisors da TSU Invesitmentos não funcionarão sem esta biblioteca de funções, o T5L library podera receber atualizações e melhorias ao longo do tempo. - Na biblioteca que voçê encontrará f uncionalidades diversas como envio de ordens, compra e venda, verificação de gatilhos de entradas, an
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
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 
Esta biblioteca permitirá que você gerencie negociações usando qualquer um de seus EA e é muito fácil de integrar em qualquer EA que você mesmo pode fazer com o código de script mencionado na descrição e também exemplos de demonstração em vídeo que mostram o processo completo. - Pedidos Place Limit, SL Limit e Take Profit Limit - Ordens Place Market, SL-Market, TP-Market - Modificar ordem de limite - Cancelar pedido - Consulta de pedidos - Mudança de alavancagem, margem - Obter informaçõe
Applying these methods, I managed to arrive at a nuanced conclusion that is crucial to understanding the importance of unique strategies in contemporary trading. Although the neural network advisor showed impressive efficiency in the initial stages, it proved to be highly unstable in the long run. Various factors such as market fluctuations, trend changes, external events, etc. cause its operation to be chaotic and eventually lead to instability. With these experiences, I accepted the challenge
Introducing "TG Risk Service Manager" — your comprehensive toolkit for swift and precise risk management and lot size calculations in the dynamic world of trading. Designed to streamline development processes and enhance trading strategies, this indispensable library equips developers with essential tools for optimizing risk assessment and trade profitability. Metatrader4 Version |  All Products  |  Contact   Key Features: Efficient Lot Size Calculation : Harness the power of precise lot size c
Introducing "TG Trade Service Manager" — your all-in-one solution for seamless trade management in both MQL4 and MQL5 environments. With a focus on speed, reliability, and convenience, this powerful library simplifies the complexities of trade execution and management, empowering developers with a single interface for enhanced efficiency. Metatrader4 Version   |   All Products   |   Contact   Key Features: Unified Interface : TG Trade Service Manager" provides a unified interface for   MQL4   an
Mais do autor
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
Filtro:
Sem comentários
Responder ao comentário
Versão 1.53 2025.01.16
- Various bug fixes and improvements
- Optimized program code
Versão 1.52 2025.01.13
- Fixed minor bug and optimized program code
Versão 1.51 2025.01.12
- Fixed minor bug and optimized program code
Versão 1.50 2025.01.09
- Various bug fixes and improvements
- Optimized program code
Versão 1.49 2025.01.08
- Support Futures COIN-M
- Support testnet mode
- Various bug fixes and improvements
Versão 1.48 2024.12.30
- Various bug fixes and improvements
- Optimized program code
Versão 1.47 2022.02.02
- Fixed no connection issue
- Optimized program code
Versão 1.46 2021.10.31
- Fixed minor bug and optimized program code
Versão 1.45 2021.10.20
- Various bug fixes and improvements
Versão 1.44 2021.09.11
- Various bug fixes and improvements
Versão 1.43 2021.09.11
- Fixed timestamp issue
- Various bug fixes and improvements
Versão 1.42 2021.08.28
- Fixed history data issue
- Bug fixes and improvements
Versão 1.41 2021.08.25
- Added function to get orderbook data
- Added function to get open orders and open positions
- Various bug fixes and improvements
Versão 1.40 2021.08.21
- Added StopLoss and TakeProfit function
- Various bug fixes and optimized program code
Versão 1.39 2021.08.13
- Various bug fixes and improvements
Versão 1.38 2021.08.12
- Fixed timestamp issue
- Optimized program code
Versão 1.37 2021.08.09
- Various bug fixes and improvements
Versão 1.36 2021.08.07
- Add function to get open positions
- Various bug fixes and improvements
Versão 1.35 2021.08.01
- Fix Position side issue
- Optimized program code
Versão 1.34 2021.06.22
- Various bug fixes and improvements
Versão 1.33 2021.05.30
- Add delay parameter for data request rate
- Various bug fixes and improvements
Versão 1.32 2021.05.22
- Fix issue with history data
- Fix issue with chart properties
Versão 1.31 2021.05.15
- Add HistoryData parameter for maximum data
- Various bug fixes and improvements
Versão 1.3 2021.05.03
- Various bug fixes and improvements
Versão 1.2 2021.05.02
- Various bug fixes and improvements
Versão 1.1 2021.05.01
- Fixed minor bug for volume data
- Optimized program code