• 미리보기
  • 리뷰 (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
Parallax FX
Michael Prescott Burney
Parallax EA for AUDUSD H1 Chart Experience the next level of automated trading with Parallax EA , meticulously crafted for the AUDUSD H1 chart. This expert advisor leverages the power of 300 finely-tuned strategies , each contributing to an exceptionally high win rate over the past five years . Designed for traders who demand perfection, Parallax EA is the culmination of extensive research, optimization, and real-world testing. Key Features: Unparalleled Strategy Integration: Harness the collec
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
Trade Dashboard MT5
Fatemeh Ameri
4.96 (52)
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  Details of
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
Apolo AI MT5
Nestor Alejandro Chiariello
안녕하세요 거래자 여러분, 저는 이 도구를 실제 결과로 엄격하게 설계했습니다. Apolo AI는 캐나다 통화의 AI 및 노드 구조로 구성된 트렌드 알고리즘을 사용하여 두피를 의도하고 특별히 설계했습니다. 여기에서 10,000에서 1,000까지의 1년 백테스트 결과를 볼 수 있습니다. 40k, 비슷한 결과로 실제 돈이 승리하는 실제 계좌 신호도 볼 수 있습니다. Apollo는 놀랍습니다! USDCAD와 같은 안정적인 통화의 추세에 따라 두피에 노드 범위를 기반으로 디자인에 대해 조금 설명하겠습니다. 이러한 방식으로 AI는 위험도가 낮은 항목을 만들기 위해 적절한 지점을 구조화하는 일을 담당합니다. 반대의 경우에는 복구 또는 종료 후 다시 복구할 가능성에 따라 복구 요소가 입력되는 고정 지점을 만드는 노드가 있습니다. 내부 분석을 통해 시간에 따른 슬리피지를 수용할 수 있으며, 슬리피지 순위가 낮은 위치를 알 수 있는 경우 나의 전략 개발은 전문 트레이더로서 수년에 걸쳐 설
The Market Destroyer
Victor Cosme Cuenca
TheMarketDestroyer를 소개합니다, MQL5에서 전문가 트레이더를 위한 궁극의 반자동 EA! 주요 특징: 반자동 제어: TheMarketDestroyer는 구매 또는 판매 위치에서 진입점을 정의할 수 있는 유연성을 제공합니다. 시장이 설정된 테이크 프로핏(TP)에 도달하면 거래가 자동으로 종료됩니다. 그런 다음 다음 거래를 위해 진입점을 다시 설정하기만 하면 됩니다. 사용자 지정 로트 배수: 로트 배수 시스템으로 전략을 조정하십시오. 시장이 스톱 로스(SL)에 도달할 때마다 로트 크기를 조정하여 회복 기회를 최적화할 수 있습니다. 중복 설정: EA가 로트 배수를 적용하기 전에 SL을 몇 번 터치해야 하는지 설정하십시오. 이러한 유연성은 위험을 보다 효과적이고 사용자 스타일에 맞게 관리할 수 있게 합니다. 입증된 전략: 우리가 보여주는 이미지와 비디오는 MQL5 전략 테스터에서 봇의 자동 테스트를 기반으로 합니다. 이러한 테스트는 EA의 잠재력을 입증하기 위해 무한 루프
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
Intro to Range Breakout Strategy (pre-close clearance) Range = yesterday high - Yesterday low On track = opening price + range *k; Lower rail = Open price - range *K Stop-loss closing position: When the price breaks up the upper track or breaks down the lower track, it breaks the opening price of the day again Parameters: Pairs List (comma separated)       = "GBPUSD,GBPJPY,USDJPY,XAUUSD,XTIUSD,USTEC"; - TimeFrame = PERIOD_D1; - MagicNumber      = 60037;          - OrderComment     = "RangeBre
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
MA Gold Sniper Entry
Samson Adekunle Okunola
MA Gold Sniper Entry EA로 거래 잠재력 극대화하기 우리의 전문적으로 설계된 EA를 통해 귀하의 거래 경험을 변화시켜 일관된 수익성과 최적의 성과를 제공합니다. 안전한 거래 접근 방식: 위험한 전략 회피: 그리드나 마틴게일과 같은 고위험 거래 방식을 피해 더 안전하고 안정적인 거래 경험을 보장합니다. 일관된 방법론: 장기적인 성공과 지속 가능성을 위해 검증된 신뢰할 수 있는 거래 전략을 사용합니다. 주요 특징들: 간단한 MA 스나이퍼 진입 전략: 정밀한 진입: 고도로 정확한 이동 평균 (MA) 크로스오버 시스템을 활용하여 최적의 진입 지점을 식별합니다. 일일 추세 분석: 1일 (D1) 기간을 분석하여 시장의 전반적인 방향을 결정하고 거래가 주요 추세와 일치하도록 합니다. 시간별 정밀도: 1시간 (H1) 기간 동안 5 MA가 10 MA를 상회할 때 거래를 실행하여 가장 적절한 순간에 거래합니다. 고급 자금 관리: 스마트 포지션 사이징: 동적 포지션 사이징 알고리즘을 사
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
Zen MT5
Elena Kusheva
I slippage=0; - allowed slippage, 0 - not used   S cmt=""; - comment on orders   I Magic=20200131; - magic, the order ID of the EA   S WorkTime="00:00-24:00"; - the format is HH: MM-HH:MM, all day 0-24 or 00: 00-24:00   D fix_lot=0.01; / / fix lot - working lot   Order_tp D=100.0; //TP. I recommend – 10.0-take profit in points as for 4 characters! the EA automatically detects 5-character instruments and will increase the value 10 times automatically.   D order_sl=0.0; / / SL-stop loss in points
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. 
이 응용 프로그램은 당신이 당신의 개인 정보를 보호 할 수 있습니다. 이는 다른 서버에서 거래 전략의 결과를 확인하는 데 유용 할 수 있습니다. 예를 들어,계정 내역 내보내기를 사용하여 계정의 거래 내역을 원하는 형식의 파일로 내보내거나,전문가 내역 내보내기의 프로그램 코드를 전문가에게 연결하여 내역을 내보낼 수 있습니다. 파일의 시작 부분에 이러한 라인이 있어야합니다: 날짜,티켓,유형,기호,볼륨,항목,가격,정지 손실,수익,이익,수수료,수수료,스왑,매직 이 파일의 처음부터 위치하지 않을 수 있습니다,즉,다른 정보는 그 앞에 갈 수 있습니다. 그 후 파일의 끝에 하나의 트랜잭션에 대해 쉼표로 구분 된 필드 값이있는 줄이 있습니다. 행의 필드 값: DATE - date in the format YYYY.MM .DD HH:MM:SS TICKET - transaction ticket (integer) TYPE - transaction type from ENUM
FREE
FF4 Scalper
Valerii Gabitov
Ea does not use martingale or grid and has a stop loss for every position.  Symbols: EURCHF, EURCAD, USDCHF and other. Time frame: M15 Best results on EURCAD M15. Live signals and other products here -  https://www.mql5.com/ru/users/leron34/seller#products The EA should run on a VPS continuously without interruption.  Multicurrency advisor. You can enter pairs in the EA settings for tests. I recommend the default settings. You can install an adviser on any pair on M15. The EA has a news filter
Candle Bot
Steve Zoeger
Welcome to the MT 5 Candle 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, the bot places entry positions. 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 contac
Binance is a world-renowned cryptocurrency exchange! In order to facilitate MT5 users to directly trade Binance Futures, the program provides the following trading functions: 1. Imitate the trading style of Binance Futures and provide a friendly operation panel; 2. Enter api and secret by yourself (you need to open futures trading permission in Binance api) to get leverage, balance and other information; 3. Support limitOrder (limit order), marketOrder (market order), stopLimit (limit sto
Correlation NN
Konstantin Katulkin
It works according to the spread trading strategy. The essence of spread strategies is to profit from the difference between asset prices. When prices diverge, two opposite transactions are opened for different currency pairs. Closing occurs when prices converge backwards or according to signals from the neural network.   Parameters Symbol1                           -   the first currency pair Symbol1                            - the second currency pair DiffPrevCurrOpenB          -  the discr
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
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
AO Trade
Ka Lok Louis Wong
AO Trade 시스템은 경매 또는 뉴스 시간을 기준으로 하여 다른 특정 주문 시간과 비교하여 시장 트렌드를 예측하기 위해 특별히 설계되었습니다. **EA에서 사용하는 모든 시간 매개 변수는 귀하의 터미널 시간을 기반으로 합니다. 다양한 브로커들은 서로 다른 GMT 시간대에서 작동할 수 있으며, 여름 시간 조정으로 인해 더욱 다양할 수 있습니다.** **구현하기 전에 귀하의 터미널에 맞는 시간 설정을 주의 깊게 확인하십시오.** 권장 설정: M1 시간대에서 사용 HK50 / DE40 / ustec / UK100 시간 체크 중에는 특정 체크 시간 분(1.2 체크 시간 분) 후에 가격 확인이 발생한다는 것을 알 수 있습니다. 이 설계는 의도적으로 이루어졌으며, 참조중인 바(bar)가 완료되도록하고, 주문 시간과의 정확한 비교를 위해 개방, 고점, 저점 및 종가 값을 활용할 수 있도록 합니다. 설정 -----------------1 타이머-------------------
Pound Pulse
Simen Staaby Knudsen
The "Pound Pulse" is a robot I have developed that is trading the gbd/usd pair on a 30min chart. This is "real" strategy that actually got an edge in the market. The strategy is a combination of pure price action, and signals from the RSI and MACD indicator. This robot is perfect for traders who want to make steady gains without taking big risks that may blow the account. NO martingale NO adding to losers Pure robust trading The profit factor is 1.91 and the Sharpe ratio is 6.25, showing stron
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
이 제품의 구매자들이 또한 구매함
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
Nmt5
Liang Qi Quan
这段代码是一个简单的交易专家顾问(Expert Advisor)示例,主要功能如下: 使用两个移动平均线(MA)作为交易信号: 快速MA(FastMA)和慢速MA(SlowMA) 初始化函数(OnInit): 创建两个MA指标句柄 设置数组为时间序列模式 清理函数(OnDeinit): 释放指标句柄,防止内存泄漏 主要交易逻辑(OnTick): 获取最新的MA值 判断趋势和交易信号 在无持仓时执行交易 交易规则: 上升趋势+买入信号时开多单 下降趋势+卖出信号时开空单 使用固定的止损和止盈点数 风险管理: 使用输入参数设置交易手数、止损和止盈 每次只允许一个持仓(inTrade变量) 使用MQL5的Trade库进行交易操作,简化了下单过程 这个EA适合初学者学习,展示了基本的EA结构和简单的交易策略实现方法。但在实际使用前,还需要进行更多的测试和优化。
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
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.
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
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 WebSocket Connections from a single program. Various Log Levels for error tracing Can be synchronized to MQL5 Virtual Hosting . Completely native to
이 라이브러리를 사용하면 EA를 사용하여 거래를 관리할 수 있으며 설명에 언급된 스크립트 코드와 전체 프로세스를 보여주는 비디오의 데모 예제를 사용하여 모든 EA에 통합하기가 매우 쉽습니다. - Place Limit, SL Limit, Take Profit Limit 주문 - 플레이스 마켓, SL-마켓, TP-마켓 주문 - 지정가 주문 수정 - 주문 취소 - 쿼리 주문 - 레버리지, 마진 변경 - 위치 정보 얻기 그리고 더... MT5에 바이낸스 차트가 없는 경우를 제외하고 암호화폐 차트 대여는 선택 사항입니다. 스크립트 데모를 보려면 여기를 클릭하세요. 트레이딩 패널과 거래하고 싶다면 이 제품에 관심이 있으실 것입니다. 이 제품은 Crypto Charting의 애드온입니다. 이 라이브러리를 사용하면 EA를 사용하여 거래를 관리할 수 있으며 설명에 언급된 스크립트 코드와 전체 프로세스를 보여주는 비디오의 데모 예제를
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
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. Pay attention to the MT5 Optimization Booster product , which makes it very easy to manage the regular MT5 optimizer . An example of using AO Core is described in the article: https://www.mql5.com/ru/articles/14183 https://www.mql5.com/en/blogs/post/756510 This hybrid algorithm is based on a genetic algorithm and contains the best qualities and properties of
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
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 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
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. 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
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
이 라이브러리는 키 및 값 배열을 정렬하는 데 사용되며 종종 값을 정렬해야 합니다. 파이썬 언어처럼 sorted(key_value.items(), key = lambda kv:(kv[ 1 ], kv[ 0 ])) 가져오기 기능 사용 시나리오의 예 1. 그리드 EA 주문은 시가에 따라 정렬됩니다. void SortedByOpenPride()   {    long     OrderTicketBuffer[];    double   OpenPriceBuffer[];    for ( int i = PositionsTotal ()- 1 ; i>= 0 ; i--)      {        if (m_position.SelectByIndex(i))         {          OrderTicketBuffer[i] = long (m_position.Ticket());          OpenPriceBuffer[i] = m_position.PriceOpen();         }
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