BitMEX Trading API

5

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

Automate your alerts and don't lose trading opportunities anymore!

Create custom Trade Pads for manual trading.

Build Hybrid strategies by mixing manual and automated trading.

Code whatever you want by using MQL5 language + BitMEX Trading API.

Create your strategy, go for BitMEX Testnet, then move for real trading!

Getting Started

All the required files and example codes can be found in the CodeBase. To use BitMEX Trading API and run all the example codes, you must download all the files and install them in their corresponding folders.  


Methods Description
void SetAccount(string apiKey, string apiSecret, bool testnet) Set your BitMEX account to trade. By default, API Keys can only read basic user data, such as positions, margin, orders, and executions. They cannot submit orders or withdraw.If you wish to execute orders with your API Key, you must add the "order" permission upon creation.
bool Order(ENUM_BITMEX_REST_METHOD method, MqlBitmexOrderRequest &request, MqlBitmexOrderResult &result[]) Create a new order, get pending orders and order history, amend the quantity or price of a pending order, cancel orders.
bool OrderBulk(ENUM_BITMEX_REST_METHOD method, MqlBitmexOrderRequest &request[], MqlBitmexOrderResult &result[]) Create and amend multiple orders for the same symbol.
bool OrderCancelAllAfter(ENUM_BITMEX_REST_METHOD method, MqlBitmexOrderRequest &request, MqlBitmexOrderResult &result[]) Automatically cancel all your orders after a specified timeout.
bool OrderAll(ENUM_BITMEX_REST_METHOD method, MqlBitmexOrderRequest &request, MqlBitmexOrderResult &result[]) Cancel all of your orders.
bool Position(ENUM_BITMEX_REST_METHOD method, MqlBitmexPositionRequest &request, MqlBitmexPositionResult &result[]) Get your position status.
bool PositionIsolate(string symbol, bool enabled, MqlBitmexPositionResult &result[]) Enable isolate margin or cross margin per-position.
bool PositionLeverage(string symbol, double leverage, MqlBitmexPositionResult &result[]) Choose leverage for a position.
bool PositionRiskLimit(string symbol, double riskLimit, MqlBitmexPositionResult &result[]) Update your risk limit.
bool PositionTransferMargin(string symbol, double amount, MqlBitmexPositionResult &result[]) Transfer equity in or out of a position.
bool UserMargin(string currency, MqlBitmexUserMarginResult &result[]) Get your account's margin status.
bool Execution(MqlBitmexExecutionRequest &request, MqlBitmexExecutionResult &result[]) Get all raw executions for your account.
bool OrderBook(string symbol, int depth, MqlBookInfo &orderBook[]); Get level 2 orderbook data.
bool IntrumentCompositeIndex(MqlBitmexInstrumentRequest &request, MqlBitmexInstrumentCompositeIndex &result[]); Show constituent parts of an index.
void GetRateLimit(int &limit, int &remaining, long &reset); Get the rate limit of your BitMEX account. Requests to BitMEX servers are rate limited to 60 requests per 1 minute. This counter refills continuously.
void GetError(int &statusCode, string &name, string &message); Get the error of the last request made to BitMEX servers. If a large number of 4xx or 5xx responses are delivered in a short period of time, your IP may be banned for an hour from BitMEX servers. Multiple bans in a short time will result in a week ban.


Warnings

You acknowledge and agree that trading on BitMEX real accounts should only be used by you if you:

i) have knowledge and experience in highly volatile markets;
ii) are trading with Bitcoin you can afford to lose; and
iii) have a high-risk tolerance;

If any of these statements do not apply it to you, please start by getting knowledge and apply it first to the BitMEX Testnet.






리뷰 1
Kryptoman10
35
Kryptoman10 2019.12.15 22:35 
 

Excellent experience so far. Thanks Romeu!

Additional Updates

추천 제품
Introducing "TG Risk Service Manager" — your comprehensive toolkit for swift and precise risk management and lot size calculations in the dynamic world of trading. Designed to streamline development processes and enhance trading strategies, this indispensable library equips developers with essential tools for optimizing risk assessment and trade profitability. Metatrader4 Version |  All Products  |  Contact   Key Features: Efficient Lot Size Calculation : Harness the power of precise lot size c
Important: This product is a Library for developers . It is suitable only for users who can write/modify MQL5 code and integrate a compiled library into their own EA/Script. It is not a “drag & run” notifier. Telegram SDK helps you send Telegram messages and photos from MetaTrader 5 in a simple and reliable way. Use it when you want Telegram notifications inside your own automation tools. If you need the MetaTrader 4 version, it is available separately in the Market:   Telegram SDK M T4 . Main f
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
TradeGate
Alex Amuyunzu Raymond
TradeGate – Product Description / Brand Story “The gatekeeper for your trading success.” Overview: TradeGate is a professional MT5 validation and environment guard library designed for serious traders and EA developers who demand safety, reliability, and market-ready performance . In today’s fast-moving markets, even a small misconfiguration can cause EAs to fail initialization, skip trades, or be rejected by MQL5 Market. TradeGate acts as a smart gatekeeper , ensuring your EA only operates un
NATS (Niguru Automatic Trailing Stop) will help you achieve more profits, by setting the trailing stop automatically. Pair this NATS application with EA, or can also be used as a complement to manual trading. A trailing stop is a powerful tool in trading that combines risk management and profit optimization.  A trailing stop is a type of market order that sets a stop-loss at a percentage below the market price of an asset, rather than a fixed number. It dynamically adjusts as the asset’s pric
FREE
정적 텍스트 디스플레이 는 MetaTrader 5용 경량화되고 사용자 친화적인 전문가 어드바이저(EA)로, 트레이더들에게 영감을 주고 교육하기 위해 차트에 직접 동기를 부여하는 거래 팁을 표시합니다. 세련된 중앙 정렬 검은색 배경과 고정폭 폰트의 흰색 텍스트로, 이 EA는 간결하고 실행 가능한 조언을 주기적으로 교체되는 조각으로 제공하여 규율 있는 거래에 집중하게 합니다. 초보자와 숙련된 트레이더 모두에게 이상적이며, 리스크 관리, 인내, 전략 개발과 같은 핵심 원칙을 장려합니다. 주요 기능: 동적 팁 표시 : 사용자 정의 거래 팁을 50~60자 단위로 읽기 쉽게 나누어 몇 초마다 순환(지속 시간 사용자 지정 가능). 전문적인 디자인 : 차트 상단 중앙에 검은색 배경으로 팁을 표시하여 가독성과 균일한 패딩을 보장. 반응형 위치 조정 : 차트 크기 조정 또는 전환 시 텍스트와 배경 정렬을 자동으로 조정. 사용자 지정 가능 설정 : 폰트 크기, 텍스트 색상, 배경 색상, 표시 지속 시간
FREE
Universal MarketInfo Service Library for MT4 & MT5 Bring simplicity and power to your trading projects with the Universal MarketInfo Service — a professional library that exposes a unified API for both MetaTrader 4 and MetaTrader 5. No more rewriting code for each platform. With this library, you can: Access symbol data, OHLC prices, spreads, and volatility with a single call. Query account balance, free margin, stop levels, and lot constraints. Work with currency precision, pip values, and n
FREE
사용하기 쉬운 라이브러리로, 개발자들이 MQL5 EA를 위한 주요 거래 통계에 간단하게 접근할 수 있습니다. 라이브러리에서 사용할 수 있는 메서드: 계좌 데이터 & 이익: GetAccountBalance() : 현재 계좌 잔액을 반환합니다. GetProfit() : 모든 거래의 순이익을 반환합니다. GetDeposit() : 총 입금액을 반환합니다. GetWithdrawal() : 총 출금액을 반환합니다. 거래 분석: GetProfitTrades() : 수익성 있는 거래의 개수를 반환합니다. GetLossTrades() : 손실 거래의 개수를 반환합니다. GetTotalTrades() : 실행된 총 거래 수를 반환합니다. GetShortTrades() : 숏 거래의 개수를 반환합니다. GetLongTrades() : 롱 거래의 개수를 반환합니다. GetWinLossRatio() : 승리 거래와 패배 거래의 비율을 반환합니다. GetAverageProfitTrade() : 수익성 있는
LSTM Library
Thalles Nascimento De Carvalho
LSTM Library - MetaTrader 5용 고급 신경망 알고리즘 트레이딩을 위한 전문 신경망 라이브러리 LSTM Library는 MQL5 트레이딩 전략에 순환 신경망의 힘을 가져다줍니다. 이 전문적인 구현에는 일반적으로 특수 기계 학습 프레임워크에서만 볼 수 있는 고급 기능을 갖춘 LSTM, BiLSTM 및 GRU 네트워크가 포함되어 있습니다. "트레이딩을 위한 기계 학습의 성공 비결은 적절한 데이터 처리에 있습니다. 쓰레기를 넣으면 쓰레기가 나옵니다 – 예측의 품질은 절대 훈련 데이터의 품질을 넘을 수 없습니다." — 마르코스 로페즈 데 프라도 박사, Advances in Financial Machine Learning 주요 기능 LSTM, BiLSTM 및 GRU의 완전한 구현 더 나은 일반화를 위한 재귀 드롭아웃 다양한 최적화 알고리즘(Adam, AdamW, RAdam) 고급 정규화 기술 포괄적인 지표 평가 시스템 훈련 진행 시각화 클래스 가중치를 통한 불균형 데이터 지
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
Lib5 EAPadPRO for MT5
Vladislav Andruschenko
4.5 (6)
EAPADPRO Library for MetaTrader 5 는 Expert Advisor에 현대적인 정보 패널을 추가하기 위한 무료 전문 인터페이스 라이브러리입니다. 이 라이브러리는 MetaTrader 5 차트에서 자신의 거래 프로그램을 더 깔끔하고, 정보성이 높고, 전문적으로 보여주고 싶은 MQL5 개발자를 위해 설계되었습니다. MetaTrader 5용 Expert Advisors는 복잡한 로직, 다양한 설정, Magic number 필터, 주문 실행 규칙 및 내부 전략 값을 포함하는 경우가 많습니다. EAPADPRO는 이러한 정보를 구조화된 패널로 정리하여 사용자가 프로그램의 현재 상태를 더 빠르고 명확하게 이해할 수 있도록 도와줍니다. EAPADPRO for MT5는 무료 라이브러리입니다. Expert Advisor의 인터페이스, 정보 출력, 시각적 품질을 개선하는 데 사용할 수 있습니다. 전체 단계별 통합 가이드: LIB - EAPADPRO 단계별 설치 안내 EAPADPRO
FREE
SimpleLotCalculator
Itumeleng Mohlouwa Kgotso Tladi
SimpleLotCalculator: Professional Multi-Symbol Risk Manager Library Stop guessing your lot sizes and start trading with institutional precision. SimpleLotLogic is a high-performance MQL5 developer library designed to solve the number one problem for algorithmic and manual traders: Risk Management. Instead of writing complex math for every new EA, simply plug in this library to calculate the perfect lot size based on your account equity and stop-loss distance. Why Choose SimpleLotLogic? Precis
Pre Market High Breakout EA
Leonardo Guia Gonzalez
-- [ MODULE 1: STRATEGY OVERVIEW ] --- TPFX Premarket High Breakout is a specialized trading algorithm designed to capture the high-volatility momentum that occurs immediately after the US Pre-market session concludes. Unlike traditional breakout systems, this engine is tuned to identify significant liquidity shifts in US Indices. The strategy automatically defines a reference range based on the Pre-market activity and executes trades only when specific price action validation occurs. It is opt
메타트레이더 5 (MT5)용 UZFX - 지정가 주문만 삭제 스크립트는 거래 계좌에서 모든 지정가 주문(매수 제한, 매도 제한, 매수 중지, 매도 중지)을 자동으로 제거하는 간단하면서도 효과적인 도구입니다. 이 스크립트는 활성 시장가 포지션에 영향을 주지 않고 대기 주문을 즉시 청산하려는 트레이더에게 이상적입니다. 다른 모든 MT4/MT5 보조지표 및 EA 확인 >> 여기 기능: 모든 지정가 주문(매수 제한, 매도 제한, 매수 중지, 매도 중지)을 삭제합니다. 오픈 마켓 포지션에는 영향을 미치지 않습니다. 전문가 탭을 통해 실시간 체결 피드백을 제공합니다. 트레이더가 수동 개입 없이 지정가 주문 전략을 빠르게 재설정할 수 있도록 도와줍니다. 사용 방법: 스크립트를 MT5 차트에 첨부합니다. 스크립트가 모든 지정가 주문을 자동으로 스캔하고 삭제합니다. 참고: 이 스크립트는 활성 거래를 청산하지 않으며 지정가 주문만 제거합니다. 스크립트를 실행하기 전에 모든 대기 주문을 제거할 것
FREE
TeleSignal
Vincent Jean Robert Trolard
TeleSignal EA is an intelligent Expert Advisor designed to automatically send Telegram notifications whenever a position is opened, closed, or modified in MetaTrader 5 . It allows you to monitor your trades in real time , wherever you are — no need to keep your trading platform open. Through its direct integration with the Telegram API, you’ll receive clear and instant messages showing: Trade opened (symbol, lot size, order type, entry price) Trade closed (exit price, profit/loss, trade du
Stoch Mantis
Channaphat Yamuangmorn
Title: Stoch Mantis Description: Stoch Mantis is a professional multi-timeframe utility designed to monitor the Stochastic Oscillator across your current chart while providing a broader trend context using the 200 EMA. This tool does not execute trades automatically; instead, it serves as a highly efficient alert system and market analyzer for manual traders who utilize pullback strategies. Trading extreme zones on lower timeframes can be risky without considering the major trend. Stoch Mantis
FREE
Synapse AI Quantum
Napat Puangjunkum
SYNAPSE AI QUANTUM    Cognitive Trading Core    Under the hood, the Synthetic Neural Core continuously evaluates 5 distinct mathematical layers (RSI, Bollinger Bands, ATR, Momentum, and EMA). The system calculates a consensus score, and only initiates a precise, single linear trade when at least 3 layers are in absolute agreement.  No Grid. No Martingale. Just pure cognitive precision with Fixed R:R linear execution. === WHY SYNAPSE AI QUANTUM? === 1. COGNITIVE TRANSPARENCY HUD: Watch the 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
The following library is proposed as a means of being able to use the OpenAI API directly on the metatrader, in the simplest way possible. For more on the library's capabilities, read the following article: https://www.mql5.com/en/blogs/post/756098 The files needed to use the library can be found here: Manual IMPORTANT: To use the EA you must add the following URL to allow you to access the OpenAI API as shown in the attached images In order to use the library, you must include the following Hea
EA(Expert Advisor)은 뉴욕 세션 동안 시장이 움직이기 시작할 때(거래량 증가) 포지션을 엽니다. 이를 통해 모멘텀은 거래량에 의해 유지되며, 높은 확률로 즉시 테이크 프로핏(Take Profit)에 도달할 수 있습니다. 신호  https://www.mql5.com/en/blogs/post/764450 뉴욕 세션 모멘텀 기반 진입 EA는 낮은 타임프레임에서 FVG(Fair Value Gap)를 통해 숨겨진 충격을 감지합니다. 뉴욕 세션 직전 또는 세션 도중에 충격이 감지되면 EA는 포지션을 엽니다. 시장 동향에 따른 포지션 관리 모멘텀이 즉시 사라질 경우, EA는 다음 세 가지 전략 중 하나를 적용합니다: 특정 가격 수준에서 스톱로스를 실행하고 거래를 중단합니다. 스톱로스를 실행한 후 반대 방향으로 새로운 포지션을 엽니다. 초기 포지션을 추가하거나 제거하며 수익이 발생할 때까지 관리합니다. 사용 방법 구매 후, 자세한 설정 지침을 받으려면 저에게 연락하세요. EA 작동
SMC Structure Markup
Seyed Mohammad Hosseini Hejazi
4.69 (16)
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
이 제품은 지난 3년 동안 개발되었습니다. 이는 MQL5 프로그래밍 언어에서 모든 유형의 인공지능 및 머신러닝 코드를 다룰 수 있는 가장 진보된 코드베이스입니다. MetaTrader 5에서 많은 AI 기반의 트레이딩 로봇과 인디케이터를 만드는 데 사용되었습니다. 이 제품은 MQL5용 머신러닝에 대한 무료 오픈 소스 프로젝트의 프리미엄 버전입니다. 프로젝트 링크:  https://github.com/MegaJoctan/MALE5 . 무료 버전은 기능이 제한적이며, 문서화가 부족하고 유지보수가 원활하지 않습니다. 소규모 AI 모델을 위한 제품입니다. 이 프리미엄 제품은 AI 기반 트레이딩 로봇을 효과적으로 개발하는 데 필요한 모든 기능을 제공합니다. 이 라이브러리를 구매해야 하는 이유? 사용이 매우 간편하며, 코드 문법이 Python의 인기 있는 AI 라이브러리인 Scikit-learn, TensorFlow, Keras와 유사합니다. 잘 문서화됨 – 시작을 돕기 위한 다양한 동영상, 예
UZFX - 차트에서 모든 드로잉 및 개체 즉시 삭제는 활성 차트에서 모든 드로잉 개체를 즉시 제거하도록 설계된 간단하면서도 강력한 MetaTrader 5(MT5) 스크립트입니다. 이 스크립트는 기술 분석 도면, 추세선, 피보나치 도구, 텍스트 레이블 및 기타 개체를 일일이 수동으로 삭제하지 않고 차트를 빠르게 지워야 하는 트레이더에게 유용합니다. 특징: 활성 차트에서 모든 개체와 도면을 삭제합니다. 한 번의 실행으로 즉시 작동합니다. 삭제 성공 및 실패에 대한 확인 메시지를 표시합니다. 트레이더가 더 나은 분석을 위해 깨끗하고 깔끔한 차트를 유지할 수 있도록 도와줍니다. 사용 방법: 모든 개체를 제거하려는 차트에 스크립트를 첨부합니다. 스크립트가 모든 개체를 자동으로 반복하여 삭제합니다. 전문가 탭에 메시지가 나타나면 개체가 성공적으로 제거되었음을 확인할 수 있습니다. 참고: 이 스크립트는 차트에서 실행 중인 미체결 주문, 인디케이터 또는 전문가 자문에는 영향을 주지 않으
FREE
1. Why did I develop this series of indicators I found that most traders need to use multiple time frame indicators. They usually switch time frame to see indicators. However, once the timeframe is switched, you cannot see the  corresponding relationship  between  the price in the smaller timeframe  and  the indicator in the larger timeframe . For example: if your price chart is in H1 timeframe, you can see H4, D1 and W1 indicators in H1 timeframe Chart. This is more helpful for you to find th
This simple logging library is designed to provide clear and contextual log output with minimal hassle. It exposes five  methods: LogError Message (message) LogWarn Message (message) LogInfo Message (message) LogDebug Message (message) LogTrace Message (message) Each method prints the provided message to the console only if the severity level meets or exceeds the current threshold set by a global variable logLevel. This means you control the verbosity of your application's logs by adjusting logL
FREE
Goliath Mt5
Nicolokondwani Biscaldi
Goliath MT5 - scalper fully automated Expert Advisor for medium-volatile forex markets P roperties: The Library trades 10 currency pairs (USDCHF, EURCHF, EURGBP, AUDUSD, USDCAD, GBPUSD, EURUSD, NZDUSD, CADCHF, EURAUD, EURCAD, AUDJPY) The Library does not use martingale The Library sets a fixed stop loss and take profit for all orders The Library only trades a user input volume The Library can be installed on any currency pair and any timeframe Recommendations: Before using on a real account, t
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
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
If you just want to simply copy your positions and orders from MetaTrader to Binance use the Binance Copier If you're a developer 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. Important: you need to have source c
Trading Notes   is an innovative tool designed for traders to streamline their decision-making process by allowing them to write and display important reminders or short details directly over their trading charts. This essential feature ensures that traders have quick access to their personalized checklist before opening any positions, enhancing their trading efficiency and accuracy. MT4 Version -  https://www.mql5.com/en/market/product/120613 Join To Learn Market Depth -  https://www.mql5.co
FREE
이 제품의 구매자들이 또한 구매함
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
A free indicator for those who purchase the full version This indicator is created by this Ai, with your desired settings Artificial Intelligence at your service Have a complete artificial intelligence and use it in your codes This artificial intelligence is trained to tell you on each candle whether the market is moving up or down. In general, artificial intelligence can be used in all markets, all timeframes and all symbols However, due to the increasing complexity and decreasing accuracy of
快速关仓,无需任何操作。 当前版本的一键关仓主要针对的是来不及手动关仓的情况,目前是不分交易标的类别,是对所有的持仓进行关仓。 未来可能升级的方向: 1、分类别、分标的关仓。 适用场景:开了多个标的的仓位,并且波动不一,快速频繁的波动影响了整体的判断。 2、增加只关闭盈利仓位、只关闭亏损仓位。 适用场景:持仓较多,趋势发生变化。 个人建议:一般建议选择一键全部关仓,因为如果行情与持仓方向一致,只关闭盈利仓位无形就是扩大了亏损。如果行情方向与持仓方向相反,只关闭亏损仓位,当前已盈利的后面又会变为亏损,盈利无法变现。 3、按照仓位顺序由大到小关仓、按照仓位顺序由小到大关仓。 适用 场景:行情发生波动,对于未来行情判断把握不确定的,可根据自己需求选择仓位关仓顺序,由大到小关仓的话,可以避免亏损的进一步扩大。 4、减小仓位量,保持绝对的安全距离。 适用 场景:对未来趋势相对确定,不想错过当前行情,但是认为当前持仓体量又有点大,想降低仓位。
[Gold Intelligent Trading EA | Risk Control is Steady, Profit Breakthrough] The intelligent trading EA, which is customized for the fluctuation characteristics of gold, takes the hard-core trading system as the core, and each order is derived from the accurate judgment of market trends and supporting pressures by quantitative models, so as to eliminate subjective interference and make trading decisions more objective and efficient. Equipped with multi-dimensional risk control system, dynamic s
Automatic Replenishment Trading Within a Defined Range The EA operates only within the predefined price range . When an order is closed, filled, or cancelled (reducing the total number of orders), the EA will automatically place new orders to maintain the continuous operation of the trading strategy. This EA is designed for ranging / sideways market conditions . You can control the total number of orders using Max Orders . Example: Max Orders: 8 Active trades: 2 Pending Buy Limit orders: 6 In t
Automatic Replenishment Trading Within a Defined Range The EA operates   only within the predefined price range . When an order is   closed, filled, or cancelled   (reducing the total number of orders), the EA will   automatically place new orders   to maintain the continuous operation of the trading strategy. This EA is   designed for ranging / sideways market conditions . You can control the total number of orders using   Max Orders . Example: Max Orders:   8 Active trades:   2 Pending Sell L
A complete PostgreSQL client implemented in pure MQL5 over native MetaTrader 5 TCP sockets. The library implements the PostgreSQL client with MD5 and SCRAM-SHA-256 authentication, SSL/TLS, the Simple Query Protocol, and explicit transactions. No DLLs, no external dependencies, no third-party services. Features Direct TCP connection to any PostgreSQL-compatible database MD5 and SCRAM-SHA-256 authentication, auto-detected SSL/TLS via PostgreSQL's SSLRequest flow Full transaction support Typed res
MetaTrader 5용 ModernUI 라이브러리 ModernUI는 MetaTrader 5 차트 위에서 동작하는 사용자 인터페이스 라이브러리입니다. MQL5 개발자가 MT5 차트 환경 안에서 더 깔끔한 EA 패널, 대시보드, 설정 창, 폼, 테이블, 다이얼로그, 드로어, 컴팩트한 트레이딩 스타일 인터페이스를 만들 수 있도록 도와줍니다. 흩어진 차트 객체보다 더 전문적인 인터페이스 레이어를 원하면서도, 자신의 EA, 인디케이터 또는 유틸리티 로직은 계속 완전히 직접 제어하고 싶은 개발자를 위해 만들어졌습니다. Modern UI - 사용자 가이드   | EA 예제 데모 무엇을 만들 수 있나요? ModernUI는 한 가지 유형의 패널에만 제한되지 않습니다. MetaTrader 5 차트 위에 배치할 거의 모든 도구를 만들 수 있는 재사용 가능한 인터페이스 레이어를 제공합니다. 간단한 설정 화면, 컴팩트한 트레이딩 패널, 전체 대시보드, 데이터 뷰, 컨트롤 패널, 계정 도구, 워크플로
WalkForwardOptimizer MT5
Stanislav Korotky
3.78 (9)
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 (6)
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
After downloading this service program, it will be used as a service support program for Dom BookHeatMAP Lightning Trading Panel. Dom BookHeatMAP Lightning Trading Panel   download link: https://www.mql5.com/zh/market/product/159414?source=Site+Market+MT5+Search+Rating006%3aDom+BookHeatMAP+Lightning+Trading+Panel Please first drag and drop the downloaded file to the corresponding service folder (` MQL5 \ Services `) in the MT5 data directory, and confirm that the file has been successfully pla
이 라이브러리를 사용하면 EA를 사용하여 거래를 관리할 수 있으며 설명에 언급된 스크립트 코드와 전체 프로세스를 보여주는 비디오의 데모 예제를 사용하여 모든 EA에 통합하기가 매우 쉽습니다. - Place Limit, SL Limit, Take Profit Limit 주문 - 플레이스 마켓, SL-마켓, TP-마켓 주문 - 지정가 주문 수정 - 주문 취소 - 쿼리 주문 - 레버리지, 마진 변경 - 위치 정보 얻기 그리고 더... MT5에 바이낸스 차트가 없는 경우를 제외하고 암호화폐 차트 대여는 선택 사항입니다. 스크립트 데모를 보려면 여기를 클릭하세요. 트레이딩 패널과 거래하고 싶다면 이 제품에 관심이 있으실 것입니다. 이 제품은 Crypto Charting의 애드온입니다. 이 라이브러리를 사용하면 EA를 사용하여 거래를 관리할 수 있으며 설명에 언급된 스크립트 코드와 전체 프로세스를 보여주는 비디오의 데모 예제를 사용하여 모든 EA에 통합하기가 매우 쉽습니
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
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  
Friends, join us! Ask questions and connect with like-minded traders: MetaCOT Public Group MetaCOT Information Channel: news, CFTC reports, and signals: MetaCOT Channel Here’s to successful trading and new profitable signals for us all! Attention! Recently, certain countries have been blocking access to the cftc.gov website. As a result, users in these countries are giving the product low ratings. MetaCOT has always adhered to the highest quality standards and is in no way associated with th
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
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 is necessary to use the EAs from TSU Investimentos, IAtrader and others. It contains all the functions framework needed to Expert Advisors working properly.  ツ - The Expert Advisors from  TSU Investimentos does not work without this library,  the T5L library can have updates during the year - At this Library you will find several funcionalities like order sends, buy and sell, trigger entry points check, candlestick analyses, supply and demmand marking and lines, and much more. 
AO Core
Andrey Dik
3.67 (3)
AO Core 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 p
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
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 
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 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
This trailing stop application will helping trader to set the trailing stop value for many open positions, that apply a grid or martingale strategy as a solution. So if you apply a grid or martingale strategy (either using an EA or trading manually), and you don't have an application to set a trailing stop, then this application is the solution. For EAs with a single shot strategy, just use the FREE trailing stop application which I have also shared on this forum.
KP TRADE PANEL EA is an EA MT5 facilitates various menus. KP TRADE PANEL EA is an EA skin care in MT5 is an EA that puts the system automatically in download EA MT5 to test with demo account from my profile page while some Trailing Stop Stop Loss require more than 0 features EA determines lot or money management calculates lot from known and Stop loss TS = Trailing stop with separate stop loss order Buy more AVR TS = Trailing stop plus
제작자의 제품 더 보기
Crypto Charts
Romeu Bertho
4.11 (9)
Crypto Charts is a Service that connects to cryptocurrency exchanges and delivers three types of market data in a single package: historical and live OHLCV candles, real-time tick data, and Depth of Market (order book). All data is pushed into MT5 as custom symbols that behave like native instruments, accessible on charts, in indicators, Expert Advisors, and the Strategy Tester. Traders who prefer MT5's analysis environment can use Crypto Charts to work with cryptocurrency markets using the same
Percent Crosshair is a powerful and easy percentage measure tool. Measure the chart percentage quickly! Don't waste your time anymore! Just attach the Percent Crosshair indicator to the chart, select crosshair mode at toolbars or press Ctrl+F and start using the crosshair as you always do! The percent measure will be next to the indicative price. Customize your indicator the way you want! There are four entry parameters: Positive % color: set the desired color when % is positive. Negative % colo
Percent Crosshair is a powerful and easy percentage measure tool. Measure the chart percentage very quick! Don't waste your time anymore! Just attach the Percent Crosshair indicator in the chart, select crosshair mode at toolbars or press "Ctrl+F" and start using the crosshair as you always do! The percent measure will be next to the indicative price. Customize your indicator the way you want! There are 4 entry parameters: Positive % color: set the desired color when % is positive. Negative % co
Order Flow Balance
Romeu Bertho
5 (1)
Order Flow Balance is a powerful indicator for Tape Reading (Time & Sales). It helps you analysis Order Flow Market, find where the players are moving in, market imbalance, possible reversal points and much more! The indicator works on MOEX, BM&FBOVESPA, CME, etc. It has 5 different indicator types Cumulative Delta: Also know as Cumulative Volume Delta, it is an advanced volume analysis method where traders can see the daily difference between aggressive buyers and aggressive sellers. Comparison
A complete PostgreSQL client implemented in pure MQL5 over native MetaTrader 5 TCP sockets. The library implements the PostgreSQL client with MD5 and SCRAM-SHA-256 authentication, SSL/TLS, the Simple Query Protocol, and explicit transactions. No DLLs, no external dependencies, no third-party services. Features Direct TCP connection to any PostgreSQL-compatible database MD5 and SCRAM-SHA-256 authentication, auto-detected SSL/TLS via PostgreSQL's SSLRequest flow Full transaction support Typed res
필터:
Kryptoman10
35
Kryptoman10 2019.12.15 22:35 
 

Excellent experience so far. Thanks Romeu!

Additional Updates

리뷰 답변