MetaApi REST and websocket API for MT5
What is MetaApi?
MetaApi is a powerful MetaTrader API including MetaTrader REST API and MetaTrader websocket API.
Note: Demo download will not do anything useful as the EA can not be executed in the strategy tester. Please do not blame us for this miss as this is an MQL limitation.
Note: Due to MQL marketplace restrictions we can make only self-hosted MT5 version available via marketplace. For MT4 support or cloud-based version please contact me via direct message.
MetaApi provides a comprehensive set of tools via standard-based REST and Websocket APIs for interacting with the MetaTrader platform in order to create variety of classic trading applications using virtually any programming language. Primary anticipated use cases of MetaApi are creating automated trading strategies, monitoring your trading and streaming real-time quotes from MetaTrader terminal.
- read terminal state, such as account information, positions and open orders
- read trading history (deals and history orders)
- execute trades
- read market data such as contract specifications and current prices
Note: one of the features we implemented in our API is ability to use MetaTrader terminal as market data server (e.g. for strategy backtesting). However MQL marketplace restrictions forced us to remove this feature from this EA. Please contact me directly if you want to use this feature.
The features described above are available for use using the RESTful API or socket.io WebSocket server. We choose socket.io protocol for our Websocket server because socket.io clients are available on most popular programming languages.
Although you can trade via REST API, the primary intended use of REST API is creating trade monitoring applications. For automatic trading we recommend using Websocket server since it provides lower latencies and real time synchronization with terminal state.
We created detailed API docs for you, they are available here: https://metaapi.cloud/docs/client/
The list of supported client SDKs is presented on the https://metaapi.cloud/sdks page. Feel free to contact me if you need support for other languages. Please note since the API is standard-based it should be pretty straightforward for you to implement API client in the language of your choice.
Accessing the API
In order to access API you will need to supply authorization token and MT account id. These values are both printed in the MetaTrader terminal Experts log on EA startup, so that you can copy them from there. (see attached screenshot)
REST API endpoint - https://mt-client-api-v1.agiliumtrade.agiliumtrade.ai
Websocket API endpoint - https://mt-client-api-v1.agiliutrade.agiliumtrade.ai/ws
EA configuration parameters
EA configuration is straightforward and parameters are explained on the EA inputs screen (see attached screenshot).
When configuring the EA you need to supply the email and password you want to use in order to access the MetaApi API. Please create a MetaApi API password different from your MT password. The password must contain uppercase, lowercase letters and digits and be at least 8 characters long.
DST setting - defines an algorithm which will be used to detect MetaTrader time timezone. Supported values are EU (which means that your broker will switch time according to EET timezone) and NY (which means that your broker will switch time according to America/New_York timezone).
Synchronization mode - automatic or user. Select automatic if you do not need to know real-time state of your MetaTrader terminal on the client side and plan to use REST or websocket request-response API only. Select user if you need it (e.g. for coding an automated strategy). See https://metaapi.cloud/docs/client/websocket/synchronizationMode/ for more information about this feature.
Please make sure to allow WebRequests to the following URLs (see attached screenshot):
The EA is not a scalper. The EA uses a strategy based on the breakdown of local support and resistance levels, also uses the reverse and rebound from support and resistance levels. The EA is based on the original author's strategy. Real monitoring: https://www.mql5.com/en/signals/author/profi_mql Detailed description of the strategy here: https://www.mql5.com/ru/blogs/post/728430 This is a link for general discussion of the EA: https://www.mql5.com/ru/blogs/post/728430 Hidden Take profit,
Standing at the trough of life, I look up at the mountain, looking forward to one day standing on the top of the mountain, say to the world: I dream of success. The following is the ea and test data developed by myself: Ea name: top of Dream. Ea type: multi-variety arbitrage. Applicable currency exchange: eurusd,eurgbp,gbpusd. Parameter settings: The risk ratio = 9 / / this parameter determines the number of hands, but also affects the profit and loss. Profit target = 150. The
Only profit! This is a smart grid trading robot. It works on my original algorithm! At medium risks, it shows more than 100% profit per year. ( Tested exclusively on real ticks and real accounts ) This robot is created to receive income more than any bank offers. It trades automatically around the clock on any currency pair! ( I do not recommend "exotic" currency pairs ) Adjustable risks. Adjustable position volume. Adjustable mesh pitch. Adjustable profit level. Not tied to a time f
Советник торгует по индикатору iMA (Moving Average, MA). В рынке держит не более одной позиции. Правила для открытия (Revers signals == false): Open BUY: цена ASK > MA на баре #0 - MA delta Open SELL: цена BID < MA на баре #0 + MA delta При Revers signals == true сигналы на открытие переворачиваются. Правила для закрытия (Revers signals == false): Close BUY: цена ASK < MA на баре #0 - ( MA delta * MA delta coefficient for close ) Close SELL: цена BID > MA на баре #0 + ( MA delta * MA
This is a universal automatic Expert Advisor for MetaTrader 5 working on standard indicators . UniversalEA The Constructor EA is provided with a large set of functions. You can select one of 20 signals to open a position and 5 of 20 filters to sort out the signals of the standard indicators included in the MetaTrader package. Besides, you can adjust the indicator parameters, select a timeframe, and specify a signal bar for each signal. You can also download The X EA for the MetaTrader 4 term
Dark Scalping is a fully automatic Expert Advisor for Scalping Trading and Intraday Trading. Dark Scalping is based on 4 different indicators, Rsi, Ma, Atr and Adx. The expert advisor is able to get a very high-rate of winning trades. Why do you choose a robot ? Backtest ? look at the pictures, Live Trading ? follow the link! https://www.mql5.com/en/signals/571485 The expert advisor was tested from mid-2017 to present on eurusd and other pairs. You can download the demo and test it yourse
There are 1001 techniques for opening positions. There are various kinds of recovery techniques, hedging, averaging, pyramid, martingale, anti martingale, single shoot martingale. There are various ways to close a position, with stop loss, cut loss and trailling. Are you still confused about how to put all these theories into practice? Found a method that suits your trading style according to your personality? Good news, now all of these techniques are available in Trendline Trader. You
GridScalperMT5 - grid scalper fully automated expert Advisor for low-volatile night of trade GridSalperMT5 EA version for MT4 terminal https://www.mql5.com/ru/market/product/35871 Monitoring of the EA's performance can be viewed here https://www.mql5.com/ru/signals/732548 Peculiar properties -The EA trades 10 currency pairs(USDCHF, EURCHF, EURGBP, AUDUSD, USDCAD, GBPUSD, EURUSD, NZDUSD, CADCHF, EURAUD) from a single graphics -The EA uses more than five sets of optimal parameters for each curr
This is a multicurrency adviser where, when opening positions, the conditions of two correlation pairs are taken into account at the same time, which is impossible to see when testing in MT4. For testing, use the version for MT5: https://www.mql5.com/en/market/product/42798 ALSO IMPORTANT: Before use, make sure that in in the MT4 terminal, the currency pairs used in trade are has loaded into the window /Market Watch/ (description of currency pairs below)! Advisor to attach only to one chart (
Free automatic fibonacci is an indicator that automatically plots a fibonacci retracement based on the number of bars you select on the BarsToScan setting in the indicator. The fibonacci is automatically updated in real time as new highest and lowest values appears amongst the selected bars. You can select which level values to be displayed in the indicator settings. You can also select the color of the levels thus enabling the trader to be able to attach the indicator several times with differe
This is an adviser for manual trading. Designed for both beginners and professionals. Advisor shows the entry and exit points. Indicates where to open an order, when to increase the lot, and when to close. This is an excellent tool for implementing such trading strategies as Scalping, Grid, Trend Trading, Martingale, Trading with levels, etc. The program uses indicators of its own design: - Current trend indicator - Indicator for determining support / resistance levels - Indicator for determinin
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 w
The best time to trade Using this Indicator is when the time reach exactly hour,half,45 minutes,15 minutes and sometimes 5 minutes This indicators is helpful to those who trade boom and crash indecies.How to read this indicator first you'll see Blue allow and Red allow all these allows used to indicate or to detect the spike which will happen so the allow happens soon before the spike happen.This indicator works properly only in boom and crash trading thing which you have to consider when y
The safest Martin EA实际表现可见信号 https://www.mql5.com/zh/signals/814986 The safest Martin 是一个多货币 EA，采用马丁策略，以其自有的波段算法为基础，并配以控仓技巧。只有价格到达关键位后EA才会发生交易。 The safest Martin 使用即时交易 4种货币对：EURUSD、AUDNZD、NZDUSD、USDCAD，GBPCAD。算法信号通过十年数据跑测验证，可以实现平稳盈利。 EA 在所有时间框架上都有效，不会丧失其盈利能力。然而，在 H4上观察到了最大效率。在此周期上的风险/盈利比最好。 建议使用账户余额在美元 10000 以上，且每一万美金的仓Lots建议0.01开始。 Lots 是选择固定手数后的具体数值。 H01Symbol--H05Symbol 是参与操作的7个货币对。请根据交易商特有商品表示对应改动。货币对后缀添加。
WHY TO USE BLOCK METERS? With Block Meters you can easily follow trading market situation, market activity and market noise, all in one visualized tool. You don’t need any charts. Block Meters helps you to detect strong and weak signals in market situation. You can easily follow each currency and currency pair, and see all market forces and changes real-time. HOW TO USE BLOCK METERS? It is easy to open new chart by one click in Block Meters window. Just choose the right currency name and click
一键操作订单类型: 多单, 空单,限价空单 ,限价多单,突破空单,突破多单,....先选出要执行的动作.在图标上的按钮上会显示出相应的命令, 单击执行,单击CANCEL 取消执行, 执行命令 长时间不执行自动取消 一键操作持仓类型:平多单,平空单,全部平仓,平盈利单子,平亏损单,取消挂单 特定货币对切换 特定周期切换 最近三天高低点 以及日内 亚盘欧盘美盘开盘时间\每天的FIBO 创建30分钟缩略图 一键切换循环图表 一键切换 5分钟 30分钟周期 切换缩放 5-0 一键左右平移图表 每分钟价格提示 以及周期剩余时间提示 动态显示 指标信号, 指标值可以自己设定 MA 交叉点 MACD 背离 随机震荡指标 RSI 指标 CCI 指标 WPR 指标\布林带指标, 鳄鱼指标\AMA指标,
Советник скальпер торгует в тиковом канале основанном на канале Дончиана. Уникальный алгоритм расчета канала учитывает тиковые движения рынка и подстраивается под канал, для получения максимальной прибыли. Советник рассчитан на брокеров с минимальным спредом и комиссиями. Работает на многих кроссах. В роботе возможна торговля фиксированным лотом или лотом пропорциональным депозиту. Так же предусмотрен виртуальный стоплосс который отрабатывает расширения спреда в Ролловер и на новостях.
TSO Loss Management is an Expert Advisor that incorporates advanced mechanics to eliminate losses from losing trades. Adapts to diverse market conditions and micromanages each position to cover losses as fast as possible and with minimum risk It uses all the tools of the TSO Signal Builder EA - almost infinite entry/exit strategies Add negative management to any strategy (manual or automated) to eliminate losing trades No pending orders placed Any account size - $1,000+ is recommended Allows for
Congratulations! Here is a real multicurrency multi-language Expert Advisor "4x Bot", based on a modified Martingale mathematical strategy. General information There is a continual trading using 27 symbols. There are 2 symmetrical buying and selling strategies at the same time. The EA does not need to be configured - it is already fully trained and configured! Convenient interactive interface will help you to easily manage the EA EA is multilanguage and the interface language depends on the lan
Live trading results : https://www.mql5.com/en/signals/604257 Multi Matrix Trader is a fully automated trading Expert Advisor, which combines experience in financial markets and rigorous use of analytical mathematics in order to fade unbalanced currency pairs on the best possible timing. Multi Matrix Trader uses a dynamic approach succeeds in various setups by offering stable and consistent performance. It is supported by a triple analysis: technical, mathematical and behavioral on 8 major cu
Hamster Scalping is a fully automated Expert Advisor with no use of martingale. Night scalping strategy. The RSI indicator and an ATR-based filter are used for entries. The advisor needs a hedging account type Real operation monitoring as well as my other products can be found here: https://www.mql5.com/en/users/mechanic/seller General Recommendations The minimum deposit is $100, use an ECN account with the minimum spread, default settings reccomend for eurusd m5 gmt +3 . Skype is here . Te
This EA filters transactions based on daily and monthly chart analysis over the past multiple periods This EA will detect the level and the movement of the BARS that is high possibility trend will continue. The Expert Advisor also features money management, traditional SL, TP and trailing stop. EA uses the reduced investment scheme. The fixed stop loss and take profit are always set for each trade. Only one order is used for trading each instrument, which ensures maximum safety of trading. Cauti
PROMO: ONLY 10 LEFT AT $1299! Next price: $1499 Price will be kept high to limit number of users for this strategy. This EA starts trading at the open of London (UK) Session . It is based on analysis of advanced statistical distributions combined with short to medium term reversal patterns which have mean-reversion attributes. The EA has smart features for the Grid and money management. The EA is adaptable to be used by both experienced traders and beginners. The EA includes several
Speed of Price Mamdani - this indicator is the latest development in the field of mathematical calculations, using the theory of fuzzy logic to make a decision. The input data is the formula for calculating the rate of change in price, which was previously applied in one of my developments https://www.mql5.com/ru/market/product/24624. The result of this work was the ability to use this product as an independent trading system, with both trend and counter-trend. The indicator has been thoroughly
XaulityFX Pro MT5 - BullBearTrend Scalper uses an Advanced-Smart Breakout and Reversal System for Scalping analyses the market conditions. This unique feature allows XaulityFX Pro to maximize your profits and minimize the drawdown. All trading orders opened as OCO Pending orders or instan Orders are assigned individual stoploss levels and will be managed by Advanced TrailingStop. XaulityFX has great Scalper assortment of Smart & Safety Trading, for long period of development which make pro
Blazar is a fully automated trading system on the most popular major currency pairs: EURUSD , GBPUSD , USDJPY M5 . It's pure Price Action mean reversal system that exploits peakedness of market distribution to safely identify trend reversals Every trade is protected by Stop-Loss The EA can work in 2 modes : Normal Mode - trading classics: 1 signal = 1 trade. No martingale , grid or hedging is used Recovery Mode - the EA will recover faster during drawdowns using several averaging trades, whic
Demo version of advisor Latency Arbitrage MT5 Limitations: Maximum lot 0.01. It has protection against copying trades in order to increase the lot; all outside transactions on the account will be closed. Works only on EURUSD. MT4 version of advisor Latency Arbitrage MT4 Demo Latency Arbitrage MT5 is a professional adviser that automatically performs trading operations on the difference in quotes between a slow MT5 broker and a fast MT4 / MT5 broker (or several fast brokers). The situation
This self-learning trading robot is designed for trading on FORTS and Forex. The robot contains a trend strategy with trading from levels, as well as countertrend algorithms. Parameters for embedded trading systems are taken from learning outcomes. Training takes place on the history on each bar of the timeframe specified in the Minimum timeframe parameter. The trading robot will use in self-training and trading all timeframes from the Minimum timeframe and up to the Maximum timeframe . When t
The system looks for breakout and take profit of the short term trend. Is centered mainly in the New York session when the trend of the day is decided in general. The EA has a big expectation of pips / trade, therefore can be profitable in any kind of broker or account. Can be used with large accounts, because the trades are taken in the hours of more liquidity. Signal https://www.mql5.com/en/signals/731873 Live setup The EA is very easy to setup, and can be used with the default paramete
- stability fixes for initial synchronization
- ability to trade during synchronization
- added option to specify separate magic (expert id) value for each trade
- minor bugfixes and stability improvements
- async trading support