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
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
GOLD HYPER XAU/USD向けに設計されたシステムトレード型ブレイクアウトエンジン。複数時間軸でのレンジ拡大と、規律あるリスク固定型の執行を軸に構築されています。 指値注文ロジックで主要なブレイクアウトゾーンにエントリー — 値動きを追わず、感情を挟まず、手動エントリーなし すべてのトレードに数学的に定義された固定リスクとリターンを設定 — 推測に頼らず、ポジションサイズもランダムにしない スマートトレーリングロジックがトレードが有利に動くにつれて利益を確保 適応型ポジションサイジングが勝っているときはサイズを拡大し、ドローダウン時は自動的に縮小 — 資金保護機能を内蔵 XAU/USDの全時間軸に対応し、M15で調整・検証済み 推奨セットアップ VPSの使用を強く推奨 最低残高:$200 パフォーマンス向上のため、スプレッドが最も狭い口座タイプを選択 免責事項 過去の実績は将来の結果を保証するものではありません。いかなるEAも利益を保証しません。
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
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
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
SMC Pro EA MT5 SMC Pro EA is a fully automated Expert Advisor built on the foundation of Smart Money Concepts (SMC) and Inner Circle Trader (ICT) methodology. This is the framework used by institutional traders and professional market participants to identify market trends. The EA features a Hybrid AI Engine , which is a proprietary multi-model artificial intelligence system acting as a trade filter to evaluate trade setups. The Core Philosophy: Follow Institutional Trends SMC Pro EA is design
Edkt
Pitiphum Noikhieo
ตัวชี้วัดการกลับตัวของราคาแบบมืออาชีพสำหรับ MetaTrader 5 PA Reversal Sniper เป็นตัวชี้วัดแบบกำหนดเองสำหรับ MT5 ที่ออกแบบมาโดยเฉพาะสำหรับ XAUUSD ในกรอบเวลา M5 โดยเน้นที่การเคลื่อนไหวของราคา โครงสร้างการกลับตัว การกวาดสภาพคล่อง การแตกหักของโครงสร้างตลาด สภาวะโมเมนตัม และการยืนยันความผันผวน ตัวชี้วัดนี้ให้สัญญาณซื้อและขายที่ชัดเจน พร้อมด้วยจุดเข้าซื้อ จุดหยุดขาดทุน และจุดทำกำไรหลายระดับ คุณสมบัติหลัก XAUUSD M5 ปรับแต่งแล้ว การตรวจจับการกลับตัวของราคา การตรวจจับแท่งเทียน Pin Bar ขาขึ้นและขาลง การตร
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.
A dependency-free MQL5 library of independent building blocks for Expert Advisor developers: risk-based position sizing, stop construction, spread filter, logging, state persistence and a retry state machine. No strategy, no profit claims. --- ARV EA Toolkit is a dependency-free library of independent modules for MQL5 Expert Advisor developers. Use only what you need; the modules do not depend on each other except for a tiny shared defines header. It contains no trading strategy and makes no
WinGo Gold H1 Pro MT5 MetaTrader 5対応・ゴールド自動売買EA WinGo Gold H1 Pro MT5は、ゴールド(XAUUSD)の1時間足(H1)での自動売買を目的として開発されたExpert Advisorです。 独自の取引アルゴリズムと自動注文管理、リスク管理機能を組み合わせています。 主な特徴 * XAUUSDのゴールド取引に対応。 * H1(1時間足)向けに設計。 * 独自の取引アルゴリズムを搭載。 * 買い注文・売り注文の自動実行。 * ストップロスとテイクプロフィットの自動管理。 * トレーリングストップ機能。 * 利用可能証拠金に応じた取引数量の自動調整。 * 取引時間帯の管理。 * MetaTrader 5に対応。 取引システム 本EAは市場価格の動きを分析し、内部アルゴリズムに基づいて取引機会を判断します。 設定された条件に従って自動的に注文を管理します。 主要な取引ロジックは保護されており、手動で設定する必要はありません。 推奨設定 取引銘柄:XAUUSD 時間足:H1 プラットフォーム:MetaTrad
Click Here To View All Our Products List We have a Smart Money Concepts Scanner among the product list above Fair Value Gaps (FVG) are areas of supply/demand imbalance around a price area due to rapid price movement caused by bullish or bearish pressure outweighing the market reaction. The areas are identified by a space or gap in-between 3 consecutive candles. These areas can serve as a good support / resistance zone for trend re-entry especially when combined with market structure, liquidity
FREE
Volume Arrow Scanner MT5 The Volume Arrow Scanner is a professional multi-timeframe trend and momentum indicator designed to identify high-probability buying and selling opportunities by analyzing market direction, momentum changes, and crossover events. It displays all trading signals directly on the price chart, allowing traders to quickly identify potential entries and exits without using a separate indicator window. Key Features Multi-Timeframe Trend Analysis The indicator can analyze price
FREE
Professor Prop
Dayanand Pandey
5 (1)
### Overview Professor Prop ist ein vollständig automatisierter Expert Advisor, der für Trader entwickelt wurde, die menschliche Emotionen, Unentschlossenheit und Ermüdung vollständig aus ihrem Handelsalltag verbannen möchten. Ausgestattet mit null manuellem Aufwand steuert dieses System alles autonom – von der Marktanalyse und der Ausführung von Einstiegen bis hin zur präzisen Platzierung von Stop-Loss und Take-Profit. Egal, ob Sie ein persönliches Portfolio verwalten oder strenge Evaluierung
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
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
Storm Pulse Xau
Ignacio Agustin Mene Franco
Storm Pulse XAU v1.0 is a professional Expert Advisor (EA) developed specifically for the XAUUSD (Gold) pair and optimized for M1/M5 timeframes. It combines high-probability support/resistance zone detection with a reversal engine based on Stochastic Pulse. Geared toward short-to-medium-term trading with strict risk management, it is ideal for both low-capital personal accounts and proprietary trading firm challenges. Core Strategy The system operates using two main engines (enabled by default
### 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
STOP GUESSING GOLD’S DIRECTION. LET THE GRID DO IT. BIDIRECTIONAL GRID EA | XAUUSD | MT5 Gold spikes up. Gold crashes down. Gold fakes you out both ways in the same hour. Most traders lose here because they have to pick a side. This EA doesn’t pick one. It trades both. Every new candle, it spreads a full ladder of Buy Stops above price and Sell Stops below price. Whichever way Gold moves, the grid is already waiting. When the total basket reaches the profit target, everything closes auto
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
Japanese (日本語) 戦略概要 GembalaCandle EAは、ADX(平均方向性指数)インジケーターを使用してトレンドの強さと方向性(+DIおよび-DIを使用)を判断するトレンドフォローシステムです。複数のタイムフレーム(M1からD1まで、ただし通常は低いタイムフレームを使用)を使用し、選択されたモード(コンセンサス、ストリクトなど)に従ってそれらのシグナルを組み合わせます。EAはまた、不利な条件での取引を回避するためにいくつかのフィルター(ボリンジャーバンド、MA29、パラボリックSAR、ADXエグゾースト、MA50など)を使用します。平均化/マーチンゲールシステム(グリッドオプション付き)、自動ヘッジ、および再エントリーシステムを含む洗練されたリスク管理システムを備えています。 ADXによるシグナル生成の仕組み EAは複数のタイムフレームでADXインジケーターを使用します(使用するタイムフレームは設定可能)。各タイムフレームについて、以下をチェックします: ADX強度 :ADX値がStrong_ADX_Level(デフォルト18.0)を上回っている必要があり、トレンド
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 Bitcoin(BTCUSD)ポジション向けアダプティブ・ヘッジ回復システム Blackwave Bitcoin Hedge Recovery は、ATRベースのアダプティブ・ヘッジバスケットを使用し、手動Bitcoin(BTCUSD)ポジションのドローダウン安定化を支援するために開発されたMT5専用のプロフェッショナルExpert Advisorです。 Bitcoin市場は以下の特徴で知られています: 極端なボラティリティ 激しい方向性変動 感情的な市場行動 強いトレンド時の急激な証拠金圧力 このEAは、暗号資産の手動ヘッジにおける最も一般的な問題の一つを解決するために開発されました。 ヘッジそのものが次のドローダウンの原因になることがある。 多くのトレーダーは市場の感情的な極端局面でBitcoinをヘッジします。 しかし、その後価格が急反転すると、元のポジションは回復し始める一方で、ヘッジバスケットが損失として残る場合があります。 Blackwave Bitcoin Hedge Recovery は以下を通じてこのリ
Expert Advisorを使用すると、別のエキスパートによって行われ、csvファイルに保存されたトランザクションの実行をシミュ これは、別のサーバー上の取引戦略の結果を確認するのに役立ちます。 Account History Exporterなどの別のプログラムを使用して、アカウントの取引履歴を目的の形式のcsvファイルにエクスポートしたり、Expert History Exporterからexpertにプログラムコードを接続して履歴をエクスポートしたりすることができます。 ファイルの先頭に次のような行があるはずです: DATE,TICKET,TYPE,SYMBOL,VOLUME,ENTRY,PRICE,STOPLOSS,TAKEPROFIT,PROFIT,COMMISSION,FEE,SWAP,MAGIC ,COMMENT つまり、他の情報がその前にある可能性があります。 それらの後とファイルの最後には、1つのトランザクションのコンマ区切りのフィールド値を持つ行があります。 行内のフィールドの値: DATE - date in the format YYYY.M
FREE
このプロダクトを購入した人は以下も購入しています
金融とトレーディング戦略の領域を深く掘り下げ、私は一連の実験を実施し、強化学習に基づくアプローチと強化学習を使用しないアプローチを調査することにしました。 これらの手法を適用して、私は現代のトレーディングにおけるユニークな戦略の重要性を理解する上で極めて重要な微妙な結論を導き出すことができました。 ニューラル ネットワーク アドバイザーは、初期段階では目覚ましい効率性を示したにもかかわらず、長期的には非常に不安定であることが判明しました。 市場のボラティリティ、トレンドの変化、外部事象などのさまざまな要因により、企業の運営に混乱が生じ、最終的には不安定化につながりました。 この経験を武器に、私は課題を受け入れ、独自のアプローチを開発し始めました。 私の焦点は、集められた最良のインジケーターを異なるパラメーター設定で利用するアドバイザーを作成することに集中していました。 このアドバイザーは、私の独自の戦略に基づいており、さまざまなパラメーター設定を持つ 14 の指標を同時に採用し、何時間ものデータ分析と綿密なテストから生まれました。
[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
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
MetaTrader 5 向け ModernUI ライブラリ ModernUI は、MetaTrader 5 のチャート上で動作するユーザーインターフェースライブラリです。MQL5 開発者が、MT5 のチャート環境内で、より整理された EA パネル、ダッシュボード、設定ウィンドウ、フォーム、テーブル、ダイアログ、ドロワー、コンパクトなトレード風インターフェースを構築できるようにします。 散らばったチャートオブジェクトではなく、よりプロフェッショナルなインターフェース層を使いたい開発者向けに作られています。同時に、自分の EA、インジケーター、ユーティリティのロジックは完全に自分で管理できます。 Modern UI - ユーザーガイド   | EA サンプルデモ 作成できるもの ModernUI は、特定の種類のパネルだけに限定されません。MetaTrader 5 のチャート上に配置するほぼあらゆるツールに対して、再利用可能なインターフェース層を提供します。 シンプルな設定画面、コンパクトなトレードパネル、本格的なダッシュボード、データビュー、コントロールパネル、口座関連ツール、ワー
WalkForwardOptimizer MT5
Stanislav Korotky
3.63 (8)
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.
This library will allow you to send your trades using your MT5 EA bot and its very easy to integrate on any EA which you can do yourself with the script code which is mentioned in documentation. This product allows trading operations via API For MEXC chart : Renting   Crypto Charting  for OHLC data or   Crypto Ticks with Order Book Depth  is optional - Supports MEXC API calls - Place Limit, SL Limit and Take Profit Limit Orders - Place Market, SL-Market, TP-Market orders - Modify Limit order - C
MT5 to Delta Exchange API Bridge EA Connector allows your expert advisor with mq5 file to integrate and communicate with Delta Exchange using API Keys You can place order, check balance and other order managements using Delta Exchange API - Place Limit, SL Limit and Take Profit Limit Orders - Place Market, SL-Market, TP-Market orders - Cancel Order - Query Orders - Change Leverage, margin - Get Position info and many more, details available at demo script Script Documentation 
EX5シグナルコピアライブラリ — MT向けプロフェッショナルトレードイベントエンジン 複雑なトレード追跡ロジックを記述することなく、あらゆるエキスパートアドバイザーを強力なトレードコピア、シグナルプロセッサ、または自動化エンジンに変えることができます。 EX5シグナルコピアライブラリは、MetaTrader 5のあらゆる取引アクティビティをキャプチャし、以下の構築に使用できる構造化シグナルに変換する、高性能なイベント駆動型システムです。 トレードコピア(MT5 → MT5 / MT5 → 外部) リスク管理エンジン 分析ダッシュボード カスタム執行ブリッジ(Binance、APIなど) このライブラリを使用する理由 リアルタイム取引検出 構造化シグナルキュー イベント分類(オープン、クローズ、変更、部分クローズ) 内蔵コピーエンジン(オプション) カスタムロジックによる完全な制御 主な機能 リアルタイム取引キャプチャ OnTradeTransaction を使用してすべての取引を即座に検出 バックアップポーリングシステムによりシグナルの見逃
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
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
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 );    //复杂开单
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
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
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 
このライブラリを使用すると、任意の EA を使用して取引を管理でき、説明に記載されているスクリプト コードを使用して任意の EA に簡単に統合でき、完全なプロセスを示すビデオのデモ例も利用できます。 - 指値注文、SL 指値注文、利食い指値注文の発行 - マーケット、SLマーケット、TPマーケットの注文を行う - 指値注文の変更 - 注文をキャンセルする - 注文のクエリ - レバレッジ、マージンの変更 - 位置情報の取得 もっと... MT5 に Binance チャートがない場合を除き、暗号チャートのレンタルはオプションです。 スクリプトのデモについては、 ここをクリックしてください トレーディングパネルでの取引をご希望の場合は、 この製品に興味があるかもしれません
金融とトレーディング戦略の領域を深く掘り下げ、私は一連の実験を実施し、強化学習に基づくアプローチと強化学習を使用しないアプローチを調査することにしました。 これらの手法を適用して、私は現代のトレーディングにおけるユニークな戦略の重要性を理解する上で極めて重要な微妙な結論を導き出すことができました。 ニューラル ネットワーク アドバイザーは、初期段階では目覚ましい効率性を示したにもかかわらず、長期的には非常に不安定であることが判明しました。 市場のボラティリティ、トレンドの変化、外部事象などのさまざまな要因により、企業の運営に混乱が生じ、最終的には不安定化につながりました。 この経験を武器に、私は課題を受け入れ、独自のアプローチを開発し始めました。 私の焦点は、集められた最良のインジケーターを異なるパラメーター設定で利用するアドバイザーを作成することに集中していました。 このアドバイザーは、私の独自の戦略に基づいており、さまざまなパラメーター設定を持つ 14 の指標を同時に採用し、何時間ものデータ分析と綿密なテストから生まれました。
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
このライブラリは、できるだけ簡単にMetaTrader上で直接OpenAIのAPIを使用するための手段として提供されます。 ライブラリの機能についてさらに詳しく知るには、次の記事をお読みください: https://www.mql5.com/en/blogs/post/756098 The files needed to use the library can be found here: Manual 重要:EAを使用するには、OpenAI APIへのアクセスを許可するために、次のURLを追加する必要があります  添付画像に示されているように ライブラリを使用するには、次のリンクで見つけることができる次のヘッダーを含める必要があります:  https://www.mql5.com/en/blogs/post/756108 #import "StormWaveOpenAI.ex5" COpenAI *iOpenAI(string); CMessages *iMessages(void); CTools *iTools(void); #import これが、ライブラリを簡単に使用するため
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.
作者のその他のプロダクト
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 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
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
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
フィルタ:
レビューなし
レビューに返信