Trading libraries for MetaTrader 5

Here you will find many programs for the MetaTrader 5 trading platform, which save the trader from routine operations and help him concentrate only on the really important things

Special offer

Time Left to Buy:

Up to 29% OFF

Shopping cart

The cart is empty

MetaTrader 5

Not enough Bitcoins for your order?

You can buy them at the following places


Mercuryo Buy

ChangeHero Buy

Coinmama Buy

Indacoin Buy

ChangeNow Buy

Changelly Buy

BTCDirect Buy (Euro)

Top Rated Products MT5

995.00 USD706.45 USD Aura Rocket MT5
Stanislav Tomilov
999.00 USD709.29 USD Darwin Evolution MT5
Guillaume Duportal
715.00 USD507.65 USD Divo EA
Anton Kondratev

Binance Futures Library

binance-futures-library-logo-200x200-8612
450.00 USD319.50 USD

Free updates are included

We Accept Cryptocurrency Payments

We guarantee that all our
products are 100% authentic

Information

Libraries
MetaTrader 5
Hadil Mutaqin SE
1.47
5

Overview

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.zip

  • Copy BinanceFutures.mqh header file to folder \MQL5\Include
  • Copy BinanceFuturesEA-Sample.mq5 to folder \MQL5\Experts

- Attach BinanceFuturesEA-Sample to the chart


Example how to call Binance Futures Library from EA

#include <BinanceFutures.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

BinanceFutures binance;

int OnInit()
{  
   binance.init(Symbol,HistoryData,ApiKey,SecretKey);        
   binance.showChart();
  
   /*
      //--Place buy market order BTCUSDT quantity 0.01 BTC at market price--//
          binance.orderBuyMarket("BTCUSDT"   // symbol name
                                 ,0.01       // order quantity
                                 ,0          // stopLoss price
                                 ,0);        // takeProfit price
                                                 
      //--Place buy limit order BTCUSDT quantity 0.01 BTC at limit price 15500 USDT--//
          binance.orderBuyLimit("BTCUSDT"    // symbol name
                                ,0.01        // order quantity
                                ,15500       // limit price
                                ,"GTC"       // time in force: GTC, IOC, FOK, default GTC  
                                ,0           // stopLoss price
                                ,0);         // takeProfit price
                                                
      //--Place sell market order BTCUSDT quantity 0.02 BTC at market price--//
          binance.orderSellMarket("BTCUSDT"  // symbol name
                                  ,0.02      // order quantity
                                  ,0         // stopLoss price
                                  ,0);       // takeProfit price                                                                    
                                                  
      //--Place sell limit order BTCUSDT quantity 0.02 BTC at limit price 25500 USDT--//
          binance.orderSellLimit("BTCUSDT"   // symbol name
                                 ,0.02       // order quantity
                                 ,25500      // limit price
                                 ,"GTC"      // time in force: GTC, IOC, FOK, default GTC  
                                 ,0          // stopLoss price
                                 ,0);        // takeProfit price    
  
      //--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 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;
             bool   closePosition = openOrders[i].closePosition;
          }          
  
      //--Get open positions--//
          OpenPositions openPositions[];
          binance.getOpenPositions(Symbol(),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;
          }
  
      //--Check Balance-//
          double balance = binance.balance();
      
      //--Set Leverage to 10x--//
          binance.setLeverage(10);                                      
   */
   
   return 0;
}

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

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

void OnTick()
{ 

}            


30 DAYS MONEY BACK GUARANTEE

If for any reason you do not like the purchased program, you can request a refund within 30 days from the date of purchase. You can also make an exchange for any other product at an equal cost or by paying the difference.

Simply send a request for refund or exchange with your order number by email: support@fx-market.pro.

Refund requests received more than 30 days after purchase will be rejected.

Email Us Now! Support is available 24/7
by Email: support@fx-market.pro

Do You Need Help?
Click Here To Start Live Chat

Contact Us

Copyright © 2022 FX-Market.pro. All rights reserved. Terms and conditions | Privacy policy     We speak your language EN|CN|DE|ES|RU

RISK WARNING: fx-market.pro is a software reseller, we do not offer investment advice or execute trades. The software we provide is a tool where the settings are input by the end user to design their own trading strategy. Trading forex and CFDs carry a high degree of risk to your capital and it is possible to lose your entire deposit. Only speculate with money you can afford to lose. As with any trading, you should not engage in it unless you understand the nature of the transaction you are entering, and the true extent of your exposure to the risk of loss. These products may not be suitable for all investors, therefore if you do not fully understand the risks involved, please seek independent advice.

Search