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);
}
Рекомендуем также
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
CURRENCYPOWER NAVIGATOR MT5 Currency Strength Ranking Dashboard TAGLINE See the strongest and weakest currencies before choosing the pair. PRODUCT OVERVIEW CurrencyPower Navigator MT5 is a currency-strength indicator for MetaTrader 5. Instead of focusing on one chart only, it evaluates a basket of major Forex pairs and estimates the relative strength of individual currencies. The indicator then ranks the main currencies and helps identify stronger-versus-weaker combinations that may offer
FREE
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
RSI Cortex Ai
Michael Prescott Burney
RSI Cortex AI for MT5 RSI Cortex AI is a MetaTrader 5 indicator designed to help traders analyze momentum using a multi-factor ranking model instead of relying only on a fixed RSI threshold approach. It combines momentum features, directional ranking, confidence scoring, and adaptive filtering into a clean TradingView-style workspace for chart-based analysis. What the indicator does RSI Cortex AI evaluates momentum using a broader feature set than a standard RSI line. It is designed to help trad
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
Scan a fixed list of assets (Ibovespa) in the chosen timeframe (TimeFrame). For each pair and for various periods. Calculate a regression model between the two assets (and, if desired, using the bova11 index as a normalizer). Generate the spread of this relationship, its mean, standard deviation, speculative deviation, and betas (B1 and B2). Apply an ADF test without exclusion (cointegration/stationarity). Calculate the Z-score of the current exclusion (how many standard deviations are away from
FREE
快速关仓,无需任何操作。 当前版本的一键关仓主要针对的是来不及手动关仓的情况,目前是不分交易标的类别,是对所有的持仓进行关仓。 未来可能升级的方向: 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
Друзья, присоединяйтесь к нам! Задать свои вопросы и пообщаться с единомышленниками: MetaCOT Public Group Информационный канал MetaCOT: новости, отчетность CFTC и сигналы: MetaCOT Channel Желаю нам удачной торговли и новых прибыльных сигналов! Внимание! Последнее время, некоторые страны блокируют доступ к сайту cftc.gov . Из-за этого, пользователи из этих стран ставят низкий рейтинг продукту. MetaCOT всегда придерживался самых высоких стандартов качества и не связан с этими блокировками. Пож
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.
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
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
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
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
The GoldDigger
Abdullateef Opeyemi Folorunsho
The GoldDigger — Adaptive AI Trading Intelligence One engine. Every market. Built to think, not just execute. The GoldDigger isn't a single-pair scalper bolted onto a magic indicator. It's a full adaptive trading intelligence — a signal engine, a risk manager, and an execution router built into one system that scans Forex, Metals, Crypto, and Indices and decides, trade by trade, how to enter, how big to size, and how to protect what it wins. Why Traders Choose The GoldDigger Adaptive AI Signa
FREE
Quantum Pulse EA Pro
Sayed Sabtain Azhar Naqvi
Quantum Pulse EA Quantum Pulse EA is a fully automated algorithmic trading system designed for the MetaTrader 5 platform. The expert advisor is engineered to capture rapid market momentum shifts using a structural two-consecutive candle breakout strategy combined with an underlying institutional volatility matrix. Core Trading Framework The algorithm operates on a rule-based price-action engine, analyzing structural data across multiple timeframes to minimize exposure to market noise: Bullish M
This indicator reads price movement data based on the selected timeframe,it automatically retrieves data from Bloomberg and,to some extent,Investing.com. Instructions on how to use it will also be provided to ensure proper operation. Thank you. It is extremely easy to use and perfectly suited for everyone—from those just starting out in trading to experienced traders. We have spent a considerable amount of time preparing everything; if you are interested in subscribing, please contact our operat
Blackwave Bitcoin Hedge Recovery Адаптивная Система Hedge Recovery для Позиций Bitcoin (BTCUSD) Blackwave Bitcoin Hedge Recovery — это специализированный Expert Advisor для MT5, разработанный для помощи трейдерам в стабилизации drawdown по ручным позициям Bitcoin (BTCUSD) с использованием адаптивной hedge-системы на основе ATR. Рынок Bitcoin известен: экстремальной волатильностью, резкими импульсными движениями, эмоциональным поведением участников рынка, и быстрым ростом margin pressure во время
Советник позволяет в промоделировать исполнение сделок, совершенных другим экспертом, и сохраненных в csv-файл. Это может пригодиться для проверки результатов торговой стратегии на другом сервере. Воспользуйтесь другой программой, например,   Account History Exporter  для экспорта истории сделок на счёте в csv-файл нужного формата, или подключите к своему эксперту программный код из  Expert History Exporter  для экспорта истории. В начале в файле должна идти такая строка: DATE,TICKET,TYPE,SYMB
FREE
Volume Arrow Signal Product Description Volume Arrow Signal is a smart trading indicator designed to help traders identify potential buy and sell opportunities using price action, volume behavior, and directional arrow signals. The indicator places clear arrows directly on the chart, making it easy to spot possible market reversals, trend continuations, and entry opportunities without spending hours analyzing charts manually. Whether you are trading Gold (XAUUSD) , Forex pairs, Indices, or Crypt
Smart DCA Pro
Mohamed Refaat Attia Abdelhamid
Smart DCA Pro | Institutional EURUSD Trend Algorithmic System important NOTE before test :  talk to me on telegram to get the best setting file for the EA, my telegram :  https://t.me/SmartDCApro   Why Choose Smart DCA Pro? Smart DCA Pro is a high-performance, fully automated trading algorithm engineered exclusively for (  EURUSD  ) on the H1 timeframe. Built for stability and consistent capital growth, this EA filters macro-trends to execute high-probability entries, completely avoiding risky,
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
Lock Bot
Artem Alekseev
Утилита предназначена для автоматической поддержки "локирующей" позиции и повторного её открытия при необходимости, что подходит для стратегий сопровождения и защиты позиции. Простая утилита (далее бот), который реализует стратегию локирования с бесконечным перезапуском локирующей сделки. Принцип работы бота: - при запуске необходимо выбрать ордер на buy или sell с заданным TP - задать параметр SL локирующей сделки - бот следит за расстоянием между ценой открытия первой сделки и текущей. Если ра
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
Big Trades
Giorgi Abuladze
5 (1)
Big Trades — Institutional Order Flow Detection for MetaTrader 5 Big Trades is an order flow indicator for MetaTrader 5 that detects and visualizes statistically significant volume prints on CFD instruments in real time, helping traders identify when large, non-retail activity is present on the chart. How It Works MetaTrader 5 does not provide native order flow tools, and CFD traders work with broker-side tick data rather than a consolidated tape. Big Trades processes the raw tick stream and bui
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.
С этим продуктом покупают
Применяя эти методы, мне удалось прийти к тонкому выводу, который имеет решающее значение для понимания важности уникальных стратегий в современной торговле. Хотя нейросетевой советник показал впечатляющую эффективность на начальных этапах, в долгосрочной перспективе он оказался крайне нестабильным. Различные факторы, такие как колебания рынка, изменения тенденций, внешние события и т. д., приводят к хаотичности его работы и в конечном итоге приводят к нестабильности. Получив этот опыт, я принял
[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
Библиотека WalkForwardOptimizer позволяет выполнить пошаговую и кластерную форвард-оптимизацию ( walk-forward optimization ) советника в МетаТрейдер 5. Для использования необходимо включить заголовочный файл WalkForwardOptimizer.mqh в код советника и добавить необходимые вызовы функций. Когда библиотека встроена в советник, можно запускать оптимизацию в соответствии с процедурой, описанной в Руководстве пользователя . По окончанию оптимизации промежуточные результаты сохраняются в CSV-файл и наб
Библиотека ModernUI для MetaTrader 5 ModernUI — это библиотека пользовательского интерфейса для MetaTrader 5, размещаемая прямо на графике. Она помогает разработчикам MQL5 создавать более аккуратные панели советников, дашборды, окна настроек, формы, таблицы, диалоги, боковые панели и компактные торговые интерфейсы внутри среды графика MT5. Она создана для разработчиков, которым нужен более профессиональный интерфейсный слой, чем набор разрозненных графических объектов, но при этом важно сохранит
Binance Library MetaTrader 5 connects your Expert Advisors, indicators, and scripts to Binance.com and Binance.US directly from MetaTrader 5. It is a developer library for building custom Binance integrations inside MT5, not a standalone trading robot or copier. The library helps you add Binance instruments to Market Watch, read symbol specifications, load current and historical market data, check wallet balances, manage orders, and track open positions. It supports Spot, USD-M futures, and COI
Друзья, присоединяйтесь к нам! Задать свои вопросы и пообщаться с единомышленниками: MetaCOT Public Group Информационный канал MetaCOT: новости, отчетность CFTC и сигналы: MetaCOT Channel Желаю нам удачной торговли и новых прибыльных сигналов! Внимание! Последнее время, некоторые страны блокируют доступ к сайту cftc.gov . Из-за этого, пользователи из этих стран ставят низкий рейтинг продукту. MetaCOT всегда придерживался самых высоких стандартов качества и не связан с этими блокировками. Пож
Простая в использовании, быстрая, асинхронная библиотека WebSocket для MQL5. Он поддерживает: ws:// и wss:// (защищенный веб-сокет "TLS") текстовые и бинарные данные Он обрабатывает: фрагментированное сообщение автоматически (передача больших объемов данных) кадры пинг-понга автоматически (подтверждение активности) Преимущества: DLL не требуется. Установка OpenSSL не требуется. До 128 соединений Web Socket из одной программы Различные уровни журнала для отслеживания ошибок Возможна синхронизац
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
Эта библиотека предназначена для помощи в управлении сделками, расчета лота, трейлинга, частичного закрытия и других функций. Расчет лота Mode 0: фиксированный лот. Mode 1: Лот по Мартингейлу (1,3,5,8,13) может по-разному использоваться для расчета при убытке=1, при прибыли=0. Mode 2: Лот по Множителю (1,2,4,8,16) может по-разному использоваться для расчета при убытке=1, при прибыли=0. Mode 3: Лот по Инкременту (1,2,3,4,5) может по-разному использоваться для расчета при убытке=1, при прибыли=0.
Это упрощенная и эффективная версия библиотеки для walk-forward анализа торговых экспертов. Она собирает данные о торговле эксперта во время процесса его оптимизации в тестере MetaTrader и сохраняет их в промежуточные файлы в каталоге MQL5\Files. Затем на основе этих файлов автоматически строится кластерный walk-forward отчет и уточняющие его rolling walk-forward отчеты (все они - в одном HTML-файле). С помощью вспомогательного скрипта WalkForwardBuilder MT5 можно на тех же промежуточных файлах
Order Book, известный также как Market Book, глубина рынка, стакан цен, Level 2, - это предоставляемая брокером динамически обновляемая таблица с данными по текущим объемам торговых заявок на покупку и продажу для различных уровней цен вблизи Bid и Ask конкретного финансового инструмента. MetaTrader 5 предоставляет возможность трансляции стакана цен , но только в реальном времени. Данная библиотека OrderBook History Library позволяет считывать состояния стакана в прошлом из архивов, создаваемых
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
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   Золотая выщипывание машины является советником разработан специально для торговли золотом. Операция основана на открытии ордеров с использованием индикатора быстрых и медленных линий, поэтому советник работает в соответствии со стратегией «Trend Follow», что означает следовать тренду. Заказать с помощью политики сетки без операции стоп - лосса, поэтому убедитесь, что счет достаточен. magic number      -  is a special number that the EA assigns to its orders. Lot Multipli
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 - ядро алгоритма оптимизации, это библиотека, построенная на авторском алгоритме HMA (hybrid metaheuristic algorithm). Обратите внимание на продукт  MT5 Optimization Booster , который позволяет очень просто управлять штатным оптимизатором МТ5. Пример применения AO Core описан в статье: https://www.mql5.com/ru/articles/14183 https://www.mql5.com/ru/blogs/post/756509 Данный гибридный алгоритм основан на генетическом алгоритме и содержит лучшие качества и свойства популяционных алгоритмов
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
Want to get all events like Previous/Forecast/Actual values for each news to analyze/predict it? By this simple library you can do it easily,Just import/integrate the library into your system,then get all possible values for each news   Even In Strategy Tester   . Note: Please add the address " https://www.forexfactory.com/ " of news feed at your MT5 tab > Tools > Options > Expert Advisors > Check Allow web request for listed URL. Since the WebRequest() function can't be called from indicator ba
A Simple Moving Average (SMA) is a statistical indicator used in time series analysis. This indicator represents the arithmetic mean of a sequence of values over a specific period of time. SMA is used to smooth short-term fluctuations in data, helping to highlight the overall trend or direction of changes. This aids analysts and traders in better understanding the general dynamics of the time series and identifying potential trends or changes in direction.  More information you can find in Wiki 
Эта библиотека позволит вам управлять сделками с использованием любого вашего советника, и ее очень легко интегрировать в любой советник, что вы можете сделать самостоятельно с помощью кода сценария, упомянутого в описании, а также демонстрационных примеров на видео - Размещайте лимитные ордера, SL-лимитные и тейк-профитные лимитные ордера. - Размещайте ордера Market, SL-Market, TP-Market - Изменить лимитный ордер - Отменить заказ - Запрос заказов - Изменение кредитного плеча, маржи - По
Применяя эти методы, мне удалось прийти к тонкому выводу, который имеет решающее значение для понимания важности уникальных стратегий в современной торговле. Хотя нейросетевой советник показал впечатляющую эффективность на начальных этапах, в долгосрочной перспективе он оказался крайне нестабильным. Различные факторы, такие как колебания рынка, изменения тенденций, внешние события и т. д., приводят к хаотичности его работы и в конечном итоге приводят к нестабильности. Получив этот опыт, я принял
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
Данная библиотека предлагается как средство для использования API OpenAI напрямую в MetaTrader максимально простым способом. Для получения дополнительной информации о возможностях библиотеки прочитайте следующую статью: https://www.mql5.com/en/blogs/post/756106 The files needed to use the library can be found here: Manual ВАЖНО: Для использования EA необходимо добавить следующий URL для доступа к API OpenAI  как показано на приложенных изображениях Для использования библиотеки необходимо включит
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
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  
Другие продукты этого автора
Crypto Charts
Romeu Bertho
4.11 (9)
Crypto Charts — это сервис, который подключается к криптовалютным биржам и предоставляет три типа рыночных данных в одном пакете: исторические и текущие свечи OHLCV, тиковые данные в реальном времени и глубину рынка (книга ордеров). Все данные передаются в MT5 в виде пользовательских символов, которые ведут себя как нативные инструменты и доступны на графиках, в индикаторах, советниках и тестере стратегий. Трейдеры, предпочитающие аналитическую среду MT5, могут использовать Crypto Charts для раб
Percent Crosshair представляет собой мощный и простой инструмент измерения процентов. Быстрое измерение процентов на графике! Прекратите тратить время понапрасну! Просто прикрепите индикатор Percent Crosshair к графику, выберите на панели инструментов режим "Перекрестие" или нажмите Ctrl+F и используйте перекрестие привычным для вас способом! Проценты будут отображаться рядом с индикативной ценой. Настройте свой индикатор так, как удобно вам! Вам предлагаются четыре параметра для входа: Positiv
Percent Crosshair представляет собой мощный и простой инструмент измерения процентов. Быстрое измерение процентов на графике! Прекратите тратить время понапрасну! Просто прикрепите индикатор Percent Crosshair к графику, выберите на панели инструментов режим "Перекрестие" или нажмите "Ctrl+F" и используйте перекрестие привычным для вас способом! Проценты будут отображаться рядом с индикативной ценой. Настройте свой индикатор так, как удобно вам! Вам предлагаются 4 параметра для входа: Positive %
Индикатор Order Flow Balance - это мощный инструмент для чтения ленты (Time & Sales). Он помогает анализировать поток ордеров на рынке, определять движения игроков, рыночный дисбаланс, возможные точки разворота и многое другое! Индикатор работает на MOEX, BM&FBOVESPA, CME и т. Д. Есть 5 различных типа индикатора Cumulative Delta: Также известен как индикатор кумулятивного объема Cumulative Volume Delta, это продвинутый способ анализа объемов, позволяющий трейдерам наблюдать дневную разницу между
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
Фильтр:
Нет отзывов
Ответ на отзыв