PostgreSQL Client

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 result accessors with NULL detection
  • Bad-handle safe — never crashes your EA

Compatibility

Designed for PostgreSQL > 7.4 through 18

  • RDS PostgreSQL
  • Amazon Aurora PostgreSQL
  • Google Cloud SQL for PostgreSQL
  • Azure Database for PostgreSQL
  • Supabase (cloud and self-hosted)
  • CockroachDB
  • CrateDB
  • YugabyteDB


Getting Started

Pass useSSL = true to Pg_Connect. The library performs the standard PostgreSQL SSLRequest negotiation and upgrades to TLS via SocketTlsHandshake. If the server rejects the request the client logs a warning and continues unencrypted.

Run any SQL statement —  INSERT ,  UPDATE ,  DELETE , DDL — through a single Pg_Query call. Each call returns a result handle whose lifecycle is managed by the client: the previous result on the same client is freed automatically when the next query runs.

Pg_Begin ,  Pg_Commit , and Pg_Rollback provide one-call wrappers around the standard SQL transaction commands. For nested error recovery use savepoints ( SAVEPOINT name  /  ROLLBACK TO name ) via Pg_Query.

Client functions
Function Description
Pg_Version() Returns the library version string.
Pg_Create() Allocates a new client handle. Returns 0 on failure.
Pg_Destroy(h) Frees the client handle and its current result.
Pg_Connect(h, host, port, db, user, pass, ssl, app) Connects and authenticates against the server.
Pg_Disconnect(h) Sends a Terminate message and closes the socket cleanly.
Pg_IsConnected(h) True only when the connection is in READY state.
Pg_IsAlive(h) True if the socket is open and the protocol is at least READY.
Pg_Ping(h) Executes SELECT 1 to verify the connection is healthy.
Pg_Query(h, sql) Runs any SQL statement and returns a result handle.
Pg_Begin(h) Starts a transaction and returns a result handle.
Pg_Commit(h) Commits the current transaction.
Pg_Rollback(h) Rolls back the current transaction.
Pg_LastError(h) Returns the last protocol- or socket-level error message.
Result functions
Function Description
Res_IsOk(r) True if the query succeeded.
Res_HasRows(r) True if the result contains at least one row.
Res_CommandTag(r) Server command tag, for example INSERT 0 1 or UPDATE 3.
Res_AffectedRows(r) Rows affected by INSERT, UPDATE, or DELETE.
Res_NumRows(r) Number of rows in the result.
Res_NumFields(r) Number of columns in the result.
Res_FieldName(r, col) Column name at the given index.
Res_FieldIndex(r, name) Column index for a given name. Returns -1 if not found.
Res_Next(r) Advances the row iterator. Returns true while rows remain.
Res_ResetIterator(r) Resets iteration to before the first row.
Res_IsNull(r, col) True if the current row's value at col is NULL.
Res_GetValue(r, col) Current row value as string by column index.
Res_GetValueByName(r, name) Current row value as string by column name.
Res_GetInt(r, col) Parses the current value as int.
Res_GetLong(r, col) Parses the current value as long.
Res_GetDouble(r, col) Parses the current value as double.
Res_GetBool(r, col) Parses the current value as bool.
Res_GetDatetime(r, col) Parses the current value as datetime.
Res_ErrorMessage(r) Server error message text when Res_IsOk is false.
Res_ErrorSQLState(r) 5-character PostgreSQL SQLSTATE code.


#include <PostgresLib.mqh>

void OnStart()
{
   long h = Pg_Create();
   Pg_Connect(h, "127.0.0.1", 5432, "postgres", "postgres", "postgres", false, "MQLPgClient");

   long r = Pg_Query(h, "SELECT symbol, price, timestamp FROM trades LIMIT 10");
   while(Res_Next(r))
      Print(Res_GetValueByName(r, "symbol"), " @ ", Res_GetDouble(r, Res_FieldIndex("price")), " at ", Res_GetValue(r, 2));

   Pg_Disconnect(h);
   Pg_Destroy(h);
}
Produtos recomendados
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
Session Overlay Stop guessing where sessions begin and end. Most session indicators mark zones by fixed clock hours. The result? Boxes that start 30 minutes late, end at the wrong candle, and never quite align with where price actually reacted. Session Overlay is built differently. Every session boundary is calculated from the D1 bar open — not a hardcoded offset — so the shading, the overlap zones, and the high/low lines all share the exact same time reference. What you see is what the market a
FREE
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
Ai Prediction MT5
Mochamad Alwy Fauzi
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
Ajuste BRA50
Claudio Rodrigues Alexandre
4.33 (6)
Este script marca no gráfico do ativo BRA50 da active trades o ponto de ajuste do contrato futuro do Mini Índice Brasileiro (WIN), ***ATENÇÃO***  para este script funcionar é necessário autorizar a URL da BMF Bovespa no Meta Trader. passo a passo: MetaTrader 5 -> Ferramentas -> Opções -> Expert Adivisors * Marque a opção "Relacione no quadro abaixo as URL que deseja permitir a função WebRequest" e no quadro abaixo adicione a URL: https://www2.bmf.com.br/ este indicador usa a seguinte página par
FREE
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
快速关仓,无需任何操作。 当前版本的一键关仓主要针对的是来不及手动关仓的情况,目前是不分交易标的类别,是对所有的持仓进行关仓。 未来可能升级的方向: 1、分类别、分标的关仓。 适用场景:开了多个标的的仓位,并且波动不一,快速频繁的波动影响了整体的判断。 2、增加只关闭盈利仓位、只关闭亏损仓位。 适用场景:持仓较多,趋势发生变化。 个人建议:一般建议选择一键全部关仓,因为如果行情与持仓方向一致,只关闭盈利仓位无形就是扩大了亏损。如果行情方向与持仓方向相反,只关闭亏损仓位,当前已盈利的后面又会变为亏损,盈利无法变现。 3、按照仓位顺序由大到小关仓、按照仓位顺序由小到大关仓。 适用 场景:行情发生波动,对于未来行情判断把握不确定的,可根据自己需求选择仓位关仓顺序,由大到小关仓的话,可以避免亏损的进一步扩大。 4、减小仓位量,保持绝对的安全距离。 适用 场景:对未来趋势相对确定,不想错过当前行情,但是认为当前持仓体量又有点大,想降低仓位。
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
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
FREE
Based on the trading model/strategy/system of gold double-position hedging and arbitrage launched by Goodtrade Brokers, problems encountered in daily operations: 1. Account B immediately places an order immediately following account A. 2: After account A places an order, account B will automatically copy the stop loss and take profit. 3: Account A closes the position of Account B and closes the position at the same time. 4: When account B closes the position, account A also closes the position.
HTTP ea
Yury Orlov
4.27 (11)
How To Trade Pro (HTTP) EA — um consultor de trading profissional para negociar qualquer ativo sem martingale ou grades do autor com mais de 25 anos de experiência. A maioria dos consultores top trabalha com ouro em alta. Eles parecem brilhantes nos testes... enquanto o ouro sobe. Mas o que acontece quando a tendência se esgota? Quem protegerá seu depósito? HTTP EA não acredita em crescimento eterno — ele se adapta ao mercado em mudança e foi projetado para diversificar amplamente sua carteira d
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
Accurate Action on
Felix Okiemute Afo
The Gold trading (XAUUSD) 5min Chart Robot comes equipped with built-in risk management tools that automatically adjust your trading parameters to protect your capital and optimize returns.   Global Compatibility: Regardless of your location or preferred broker, the Accurate_Action EA seamlessly integrates with MetaTrader 4 and MetaTrader 5 platforms, making it accessible to traders around the world.   Continuous Updates: The financial markets are ever evolving, and so is our robot. You wi
Kaseki
Ben Mati Mulatya
The Hybrid Metaheuristic Algorithm (HMA) is a cutting-edge optimization approach that combines the strengths of genetic algorithms with the best features of population-based algorithms. Its high-speed computation ensures unparalleled accuracy and efficient search capabilities, significantly reducing the total time required for optimization while identifying optimal solutions in fewer iterations. HMA outperforms all known population optimization algorithms in both speed and accuracy. Use Cases AO
### Unlock the Power of Profitable Trading with Our Cutting-Edge Trend Following EA! Are you tired of watching the market move without you? Frustrated by missed opportunities and inconsistent results? It's time to revolutionize your trading strategy with the **Ultimate Trend Following EA** – your key to consistent profits and stress-free trading! #### Why Choose Our Trend Following EA? **1. Proven Profitability:**   Our EA leverages time-tested trend following strategies that have consistent
CloseOrdersEa
Yusuf Watinani Umar
Overview: This utility serves as a tool to provide easy navigation for closing open positions. • Close all open buy positions at market price.  • Close all open sell positions at market price.  • Close all orders at market price based on predefined conditions for efficient trading management.  • Close orders for the current chart at market price, allowing focused control over specific trading instruments.
Trend Vision
Abderrahmane Benali
Important Reminder: If you find this tool helpful ,   please support the work by leaving a comment or rating . Avoid using it without showing support. Your feedback motivates further development! Trend Vision -   SuperTrend PRO   Take your trading to the next level with a powerful upgrade to one of the market’s most trusted trend-following indicators! SuperTrend PRO has been optimized to deliver precise signals based on the strength of the ATR, with smart alerts sent instantly to your phone wh
FREE
Blackwave Bitcoin Hedge Recovery Recuperação Adaptativa de Hedge para Posições Bitcoin (BTCUSD) Blackwave Bitcoin Hedge Recovery é um Expert Advisor especializado para MT5 desenvolvido para ajudar traders a estabilizar drawdowns em posições manuais de Bitcoin (BTCUSD) através de um sistema adaptativo de hedge baseado em ATR. O mercado Bitcoin é conhecido por: volatilidade extrema, movimentos explosivos, comportamento emocional do mercado, e rápida pressão de margem durante fortes movimentos dir
O Expert Advisor permite que você promova a execução de transações feitas por outro Expert Advisor e salvas em um arquivo csv. Isso pode ser útil para verificar os resultados de uma estratégia de negociação em outro servidor. Use outro programa, como o Account History Exporter, para exportar o histórico de transações na conta para um arquivo csv do formato desejado ou conecte o código do Expert History Exporter ao seu expert History Exporter para exportar o histórico. No início do arquivo,
FREE
Bookeepr
Marvellous Peace Kiragu
Bookeepr is an advanced MQL5 trading bookkeeping software that automates trade logging, tracks real-time P&L, and integrates a ledger-style financial system for deposits, withdrawals, and expenses. It supports multi-currency assets , generates detailed performance reports , and provides risk management tools to help traders optimize their strategies. With secure cloud storage, exportable reports, and seamless MetaTrader 5 integration , Bookeepr ensures accurate, transparent, and hassle-free fina
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
E2C Lines
Eduardo Cristian De Carvalho
Descubra o poder do nosso indicador de alta precisão, projetado para identificar as regiões de alvo e exaustão de qualquer ativo. Testado e validado por mais de 3 anos nos mercados de mini dólar e mini índice, ele oferece confiabilidade e eficácia incomparáveis. Transforme sua estratégia de trading e alcance novos patamares de sucesso com nossa ferramenta inovadora.
Manyal trading system, CovEchoTrend Robot, focuses on reliability and flexibility. By employing statistical analysis methods to study the relationships between the base indicator and market patterns, the system enables a deeper understanding of market processes. Intelligent pattern analysis: The application of statistical data processing helps identify key trend reversal points more accurately, signaling significant market shifts. Informed decision-making is based on the intersection of indicato
DGoldInfinity
Worapong Kanpet
DGoldInfinity – O Robô de Trading Profissional Definitivo para Ouro DGoldInfinity EA é um sistema de trading totalmente automatizado ( Expert Advisor), desenvolvido especificamente para realizar scalping no mercado de XAUUSD ( Ouro) no timeframe M15 ( 15 minutos) . Utiliza estratégias de entrada altamente precisas com filtros inteligentes baseados em IA, gestão de risco avançada e lógica disciplinada para resultados consistentes e profissionais.   Principais Recursos 1. Estratégia de Entrada
MT5 Quantum Gold Pro
Gaya Chibane
5 (2)
MT QUANTUM GOLD PRO — The Ultimate Institutional Gold Trading System Precision. Resilience. Verified Performance.   IMPORTANT: After purchase, send a private message to receive optimized XAUUSD M1 set files, installation instructions, and personalized 24/7 support.   LIMITED LAUNCH PROMOTION — ONLY $49 (regular price $499 after 3 sales) Price increases by $50/day during the promotion After 100 customers → $999, then final price $4,999 Bonus:   Contact privately to receive a complementary
FREE
Perfect Trade EA FXGold 2026 для MT5 — советник на золото XAUUSD с новостным фильтром и мультифрейм-анализом Perfect Trade EA FXGold 2026 — современный автоматический торговый советник для MetaTrader 5 (MT5), созданный специально для торговли XAUUSD (Gold / золото). Алгоритм ориентирован на качество входов и строгий риск-контроль: золото часто даёт резкие импульсы и откаты, поэтому советник не “строчит” сделками, а выбирает только подходящие ситуации и защищает прибыль. Если вам нужен советни
Flying Turtles
Roland Aimua Akenuwa
Flying Turtles EA for MT5 Breakout Power with Turtle Trading DNA. The Flying Turtles EA is inspired by the legendary Turtle Trading System , built to detect breakouts from consolidation zones and ride trends with discipline and precision. Whether you’re trading forex, indices, or metals, this EA aims to capture big moves after price breaks out of key levels. Key Features : Classic Turtle Trading Logic : Identifies breakout levels based on recent highs/lows and executes trades with trend-follow
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
configuração padrão (XAUUSD, M1, depósito mínimo: $1.000) o sinal seguinte está a utilizar um corretor fiável (mercados IC)   MQL5 Singal https://www.mql5.com/en/signals/2315194 Fórmula 1 EA O EA de Fórmula 1 representa um sistema de negociação automatizado de última geração, concebido especificamente para a negociação de ouro (XAUUSD), aproveitando estratégias sofisticadas de alta frequência otimizadas para o período de um minuto. Este sistema avançado foi meticulosamente concebido para capi
This is an original, agile, and excellent trending system. Whether you are a beginner trading novice or a professional trader, this set of indicators can help you quickly and timely track the latest changes in market trends. It has the following characteristics: The method of use is extremely simple, plug and play, and the display of all trend analysis results is clear at a glance; There is no need to configure any functional parameters, the trend tracking indicator will automatically analyze th
Os compradores deste produto também adquirem
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
[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
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
ModernUI Library
Levi Dane Benjamin
Biblioteca ModernUI para MetaTrader 5 ModernUI é uma biblioteca de interface de usuário hospedada no gráfico para MetaTrader 5. Ela ajuda desenvolvedores MQL5 a criar painéis de EA mais limpos, dashboards, janelas de configuração, formulários, tabelas, diálogos, drawers e interfaces compactas de estilo trading dentro do ambiente gráfico do MT5. Ela foi criada para desenvolvedores que desejam uma camada de interface mais profissional do que objetos gráficos espalhados, mantendo ao mesmo tempo con
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.
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
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
Esta biblioteca permitirá que você gerencie negociações usando qualquer um de seus EA e é muito fácil de integrar em qualquer EA que você mesmo pode fazer com o código de script mencionado na descrição e também exemplos de demonstração em vídeo que mostram o processo completo. - Pedidos Place Limit, SL Limit e Take Profit Limit - Ordens Place Market, SL-Market, TP-Market - Modificar ordem de limite - Cancelar pedido - Consulta de pedidos - Mudança de alavancagem, margem - Obter informaçõe
GetFFEvents MT5 I tester capability
Hans Alexander Nolawon Djurberg
Want to get all events like Previous/Forecast/Actual values for each news to analyze/predict it? By this simple library you can do it easily,Just import/integrate the library into your system,then get all possible values for each news   Even In Strategy Tester   . Note: Please add the address " https://www.forexfactory.com/ " of news feed at your MT5 tab > Tools > Options > Expert Advisors > Check Allow web request for listed URL. Since the WebRequest() function can't be called from indicator ba
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  
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
This is a simplified and effective version of the library for walk forward analysis of trading experts. It collects data about the expert's trade during the optimization process in the MetaTrader tester and stores them in intermediate files in the "MQL5\Files" directory. Then it uses these files to automatically build a cluster walk forward report and rolling walk forward reports that refine it (all of them in one HTML file). Using the WalkForwardBuilder MT5 auxiliary script allows building othe
Order Book, known also as Market Book, market depth, Level 2, - is a dynamically updated table with current volumes of orders to buy and to sell specific financial instument at price levels near Bid and Ask. MetaTrader 5 provides the means for receiving market book from your broker, but in real time only, without access to its history. The library OrderBook History Library reads market book state in the past from archive files, created by OrderBook Recorder . The library can be embedded into you
Cryptocurrency analysis has never been easier with Crypto Charts for MetaTrader 5. Now, trading on BitMEX has never been easier with BitMEX Trading API for MetaTrader 5. BitMEX Trading API library was built to be as easy to use as possible. Just include the library into your Expert Advisor or Script, call the corresponding methods and start trading! Features Trade on BitMEX and BitMEX Testnet. Build and automate your strategies. Concern more with the trading strategy logic and less with the co
Teclado trader, é uma BIBLIOTECA que você pode chamar no OnChartEvent para abrir posição de compra/venda/zerar, os botões padrões são: V = venda C = compra Z = zerar posições a mercado S = zerar posições opostas e depois a mercado X = zerar posições opostas Além da função de teclado, é possível mostrar os estados do ExpertAdvisor usando o MagicId, com informação de: lucro mensal, semanal, diario, e posição aberta, para isto use o OnTick, ou qualquer outro evento (OnTimer / OnTrade / OnBookEven
Binance Library
Hadil Mutaqin SE
5 (1)
The library is used to develop automatic trading on Binance Spot Market from MT5 platform. Support all order types: Limit, Market, StopLimit and StopMarket Support Testnet mode Automatically display the chart on the screen Usage: 1. Open MQL5 demo account 2. Download Header   file and EA sample   https://drive.google.com/uc?export=download&id=1kjUX7Hyy02EiwTLgVi8qdaCNvNzazjln Copy Binance.mqh to folder \MQL5\Include Copy  BinanceEA-Sample.mq5 to folder \MQL5\Experts 3. Allow WebRequest from MT5
Gold plucking machine   Gold plucking machine is an Expert Advisor designed specifically for trading gold. The operation is based on opening orders using the Fast and Slow lines indicator, thus the EA works according to the "Trend Follow" strategy, which means following the trend. Use grid strategy to place orders without stop loss operation, so please make sure the account has sufficient funds. magic number      -  is a special number that the EA assigns to its orders. Lot Multiplier        - 
MT4/5通用交易库(  一份代码通用4和5 ) #ifdef __MQL5__      #define KOD_TICKET ulong      #define KOD_MAGIC   long #else        #define KOD_TICKET long      #define KOD_MAGIC   int #endif class ODLIST; #import "K Trade Lib Pro 5.ex5"       //祝有个美好开始,运行首行加入    void StartGood() ;    //简单开单    long OrderOpen( int type, double volume, int magic, string symbol= "" , string comment= "" , double opprice= 0 , double sl= 0 , double tp= 0 , int expiration= 0 , bool slsetmode= false , bool tpsetmode= false );    //复杂开单
1. What is this The MT5 system comes with very few optimization results. Sometimes we need to study more results. This library allows you to output more results during backtest optimization. It also supports printing more strategy results in a single backtest. 2. Product Features The results of the optimized output are quite numerous. CustomMax can be customized. The output is in the Common folder. It is automatically named according to the name of the EA, and the name of the same EA will be au
T5l Library é necessaria para o uso dos robos da TSU Investimentos, nele você tera todo o framework de funções para o funcionamento correto dos nossos Expert Advisors para MetaTrader 5  ツ . -   O Robos  Expert Advisors da TSU Invesitmentos não funcionarão sem esta biblioteca de funções, o T5L library podera receber atualizações e melhorias ao longo do tempo. - Na biblioteca que voçê encontrará f uncionalidades diversas como envio de ordens, compra e venda, verificação de gatilhos de entradas, an
EA Toolkit
Esteban Thevenon
EA Toolkit   is a library that allows any developer to quickly and easily program Advisor experts. It includes many functions and enumerations such as trailing stop, lot, stop loss management, market trading authorisations, price table updates, trading conditions and many more. Installation + Documentation : You will find all the information to install this library and the documentation of its functions on this GitHub : https://github.com/Venon282/Expert-Advisor-Toolkit WARNING : The installat
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 Risk Service Manager" — your comprehensive toolkit for swift and precise risk management and lot size calculations in the dynamic world of trading. Designed to streamline development processes and enhance trading strategies, this indispensable library equips developers with essential tools for optimizing risk assessment and trade profitability. Metatrader4 Version |  All Products  |  Contact   Key Features: Efficient Lot Size Calculation : Harness the power of precise lot size c
Introducing "TG Trade Service Manager" — your all-in-one solution for seamless trade management in both MQL4 and MQL5 environments. With a focus on speed, reliability, and convenience, this powerful library simplifies the complexities of trade execution and management, empowering developers with a single interface for enhanced efficiency. Metatrader4 Version   |   All Products   |   Contact   Key Features: Unified Interface : TG Trade Service Manager" provides a unified interface for   MQL4   an
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
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
Uma biblioteca fácil de usar que oferece aos desenvolvedores acesso direto às principais estatísticas de negociação para seus EAs MQL5. Métodos disponíveis na biblioteca: Dados da conta e lucros: GetAccountBalance() : Retorna o saldo atual da conta. GetProfit() : Retorna o lucro líquido de todas as negociações. GetDeposit() : Retorna o total de depósitos. GetWithdrawal() : Retorna o total de retiradas. Análise de negociação: GetProfitTrades() : Retorna o número de negociações lucrativas. GetLoss
Mais do autor
Crypto Charts
Romeu Bertho
4.11 (9)
A análise de cripto moedas nunca foi tão fácil com o Crypto Charts para a MetaTrader 5. Basta escolher o gráfico entre bitcoin até moedas exóticas, escolher o período desejado e anexar todos os seus indicadores favoritos dos milhares disponíveis no MQL5. Gráficos das corretoras  Binance Futures,   Poloniex ,  Bitfinex ,  Binance ,  BitMEX ,  Bittrex , BitMEX Testnet ! Faça análises mais sofisticadas e aumente a eficácia de suas negociações! Deseja negociar de modo automatizado na BitMEX? Por fav
Percent Crosshair é uma ferramenta de medida percentual poderosa e fácil. Meça a porcentagem de seu gráfico de maneira muito mais rápida! Não desperdice mais o seu tempo! Basta anexar o indicador Percent Crosshair ao gráfico, selecione o modo de cruz na barras de ferramentas ou pressione "Ctrl + F" e comece a usar a cruz como você sempre fez! A medida em percentagem estará ao lado do preço indicativo. Personalize o seu indicador da maneira que você quiser! Há 4 parâmetros de entrada: Positive %
Percent Crosshair é uma ferramenta de medida percentual poderosa e fácil. Meça a porcentagem de seu gráfico de maneira muito mais rápida! Não desperdice mais o seu tempo! Basta anexar o indicador Percent Crosshair ao gráfico, selecione o modo de cruz na barras de ferramentas ou pressione "Ctrl + F" e comece a usar a cruz como você sempre fez! A medida em percentagem estará ao lado do preço indicativo. Personalize o seu indicador da maneira que você quiser! Há 4 parâmetros de entrada: Positive %
Order Flow Balance é um indicador poderoso para Tape Reading (Time & Sales). Ele auxilia na análise do fluxo do Mercado, na identificação do movimento dos players, desequilíbrio do mercado, pontos de reversão e muito mais! O indicador funciona em MOEX, BM&FBOVESPA, CME, etc. Há 5 tipos diferentes do indicador Cumulative Delta: Conhecido também como Delta Cumulativo, é um método de análise avançada do volume onde os traders conseguem identificar a diferença diária entre os agressores de compra e
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
Filtro:
Sem comentários
Responder ao comentário