• 概要
  • レビュー (5)
  • コメント (23)
  • 最新情報

Native Websocket

5

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 to MQL5.
Click here to Download the latest WSMQL.mqhPlease ensure the MetaTrader downloaded library is downloaded/named as Native Websocket.ex5 as required by WSMQL.mqh

Sample code below:

//include WSMQL.mqh - a file that has all the declarations required to interact with the library
#include <WSMQL.mqh>
// Methods below
// class CWebSocketClient {
// public:
//    bool Initialized(void); // Checks if the WebSocket client is initialized.
//    ENUM_WEBSOCKET_STATE State(void); // Returns the current state of the WebSocket connection.
//    void SetMaxSendSize(int max_send_size); // Sets the maximum send size for WebSocket messages.

//    bool SetOnMessageHandler(OnWebsocketMessage callback); // Sets the callback function for handling incoming text messages.
//    bool SetOnPingHandler(OnWebsocketMessage callback); // Sets the callback function for handling incoming ping messages.
//    bool SetOnPongHandler(OnWebsocketMessage callback); // Sets the callback function for handling incoming pong messages.
//    bool SetOnCloseHandler(OnWebsocketMessage callback); // Sets the callback function for handling WebSocket connection closures.
//    bool SetOnBinaryMessageHandler(OnWebsocketBinaryMessage callback); // Sets the callback function for handling incoming binary messages.

//    bool Connect(const string url, const uint port = 443, const uint timeout = 5000, bool use_tls = true, ENUM_LOG_LEVEL log_level = LOG_LEVEL_NONE); // Connects to a WebSocket server.
//    bool ConnectUnsecured(const string url, const uint port = 80, const uint timeout = 5000, ENUM_LOG_LEVEL log_level = LOG_LEVEL_NONE); // Connects to a WebSocket server using an unsecured connection.
//    bool ConnectSecured(const string url, const uint port = 443, const uint timeout = 5000, ENUM_LOG_LEVEL log_level = LOG_LEVEL_NONE); // Connects to a WebSocket server using a secured connection.

//    bool Disconnect(ENUM_CLOSE_CODE close_code = NORMAL_CLOSE, const string msg = ""); // Disconnects from the WebSocket server.
//    int  SendString(const string message); // Sends a string message to the WebSocket server.
//    int  SendData(uchar& message_buffer[]); // Sends binary data to the WebSocket server.
//    int  SendPong(const string msg = ""); // Sends a pong message to the WebSocket server.
//    int  SendPing(const string msg); // Sends a ping message to the WebSocket server.
//    uint ReadString(string& out); // Reads a string message from the WebSocket server.
//    uint ReadStrings(string& out[]); // Reads multiple string messages from the WebSocket server.
//    uint OnReceiveString(); // Receives and processes incoming string messages.
//    uint OnReceiveBinary(); // Receives and processes incoming binary messages.
//    uint OnMessage(); // Receives and processes incoming WebSocket messages.
// };
// Create an instance of the Client
CWebSocketClient client;//I declared this globally because of OnPingMessage requiring it
//+------------------------------------------------------------------+
//| Script program start function                                    |
//+------------------------------------------------------------------+
void OnStart() {
   // Check if the client is initialized
   if (!client.Initialized()) {
      ZeroHandle();//Cleanup all clients
      return;
   }

   // Set OnMessage handler to receive text messages
   client.SetOnMessageHandler(OnMessage);// use SetOnBinaryMessageHandler for binary messages

   // Set OnPing handler to receive ping messages, 
   // Pong will be automatically sent if this handler is not set
   client.SetOnPingHandler(OnPingMessage);// use SetOnPongHandler for pong messages

   // URL and msg declaration
   string url = "stream.binance.com/ws";//Or wss://stream.binance.com/ws
   string msg = "{\"params\":[\"btcusdt@bookTicker\"],\"method\":\"SUBSCRIBE\",\"id\":27175}";
   //ALERT: Make sure stream.binance.com has been added to WebRequest list in Options -> Expert Advisors tab

   /*

    Connect to the WebSocket server through either of the below-listed functions as required

   */

   // Fully Configurable
   // if (!client.Connect(url/* , 80 || 443, 5000, false || true, LOG_LEVEL_INFO */)) { 

   // For Non-TLS(unsecured) connection - without SSL required
   // if (!client.ConnectUnsecured(url/* , 80, 5000, LOG_LEVEL_INFO */)) {

   // For TLS(secured) connection - with SSL required
   if (!client.ConnectSecured(url/* , 443, 5000, LOG_LEVEL_INFO */)) {
      ZeroHandle();//Cleanup all clients
      return;
   }

   // Send a string message
   client.SendString(msg);

   // Process messages until the script is stopped
   while (true) {
      if (IsStopped())
         break;

      if (client.State() == CLOSED) {
         Print("Socket connection closed");
         //Reconnect?
         //client.ConnectSecured(url/* , 443, 5000, LOG_LEVEL_INFO */)
         //Or break the loop?
         break;
      }

      /*
         NB: You only need one of these functions
      */

      // Receive all messages and process them using their respective On{Message | BinaryMessage | Ping | Pong | Close} callback(handler)
      uint frames = client.OnMessages();

      // Receive messages and process only TEXT frames using the OnMessage callback
      // uint frames = client.OnStringMessages();

      // Receive messages and process only BINARY frames using the OnBinaryMessage callback
      // uint frames = client.OnBinaryMessages();

      if (frames > 0)
         Print("Frames Processed : ", frames);
   }

   // Disconnect from the WebSocket server
   Print("Disconnecting...");

   if (client.Disconnect()) {
      Print("Disconnected!");
   }
   else {
      Print("Failed to disconnect!");
   }

   //Cleanup all clients
   ZeroHandle();
}
//+------------------------------------------------------------------+
void OnMessage(string message) {
   Print(message);
}
//+------------------------------------------------------------------+
void OnPingMessage(string message) {
   Print("ping received:", message);
   if (client.SendPong() > 0) {
      Print("Pong sent successfully.");
   }
   else {
      Print("Failed to send pong.");
   }
}
//Sample Outputs:
//{"result":null,"id":27175}
//Frames Processed : 1
//---
//{"u":35893555769,"s":"BTCUSDT","b":"27812.78000000","B":"7.14299000","a":"27812.79000000","A":"0.81665000"}
//{"u":35893555770,"s":"BTCUSDT","b":"27812.78000000","B":"7.14299000","a":"27812.79000000","A":"0.82309000"}
//{"u":35893555771,"s":"BTCUSDT","b":"27812.78000000","B":"7.14964000","a":"27812.79000000","A":"0.82309000"}
//Frames Processed : 3
//---
//Frames Processed : 1
//ping received: ping
//Pong sent successfully.

Feel free to contact me for support and questions before/after purchase.



レビュー 5
thomasb892
19
thomasb892 2024.10.23 14:25 
 

This, Native WebSocket library by Racheal Samson is fast, handles secure wss:// connections effortlessly, and can manage large data transfers with ease.

I love that it's fully native to MQL5, with no extra installations required.

What really stood out was the author's quick response and genuine willingness to help, making the experience even smoother. Highly recommend both the library and the excellent support behind it!

Franck
21
Franck 2024.08.13 13:58 
 

Awesome support from Racheal, thanks for your help setting up the library, keep up the great work ;)

David Moffitt
30
David Moffitt 2024.05.28 21:33 
 

Needed some help to work out some kinks with the library and my code. Racheal was quick and attentive to support!

おすすめのプロダクト
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 );    //复杂开单
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
自動注文とリスク管理のためのユーティリティ。利益を最大化し、損失を抑えることができます。トレーダーのための練習トレーダーによって作成されました。このユーティリティは使いやすく、トレーダーが手動で、またはアドバイザーの助けを借りて開いた成行注文で機能します。マジックナンバーで取引をフィルタリングできます。このユーティリティは、同時に任意の数の注文を処理できます。 次の機能があります。 1.ストップロスとテイクプロフィットレベルの設定; 2. トレーリング ストップ レベルで取引を終了します。 3. 損益分岐点の設定。 ユーティリティは次のことができます。 1. オーダーごとに個別に作業します (レベルはオーダーごとに個別に設定されます)。 2. 一方向注文のバスケットを操作します (レベルはすべての注文に共通に設定され、BUY と SELL は個別に設定されます)。 3. 多方向注文のバスケットを操作します (レベルはすべての注文に共通に設定され、BUY と SELL が一緒に設定されます)。 オプション: STOPLOSS - =-1 が使用されていな
KopierMaschine - локальный копировщик сделок между различными счетами MetaTrader 4 и MetaTrader 5 в любом направлении расположенных на одном компьютере с интуитивно понятным интерфейсом. Направления копирования: MT4 --> MT5 MT4 --> MT4 MT5 --> MT5 MT5 --> MT4 для копирования между терминалами MetaTrader 4 и   MetaTrader   5 необходимо приобрести версию продукта   KopierMaschine  для    MetaTrader  4 Особенности Программа работает в двух режимах Master и Slave На один подчиненный счет можно копир
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
プレミアムレベルは、正しい予測の精度が80%を超える独自の指標です。 この指標は、最高のトレーディングスペシャリストによって2か月以上テストされています。 あなたが他のどこにも見つけられない作者の指標! スクリーンショットから、このツールの正確さを自分で確認できます。 1は、1キャンドルの有効期限を持つバイナリーオプションの取引に最適です。 2はすべての通貨ペア、株式、商品、暗号通貨で機能します 手順: 赤い矢印が表示されたらすぐにダウントレードを開き、青い矢印が表示されたら閉じます。青い矢印の後に開くこともできます。 試してテストしてください!推奨設定はデフォルトです! 日足チャートで最高の精度を示します! インディケータは、2600 Pipsの収益性に対して、約10Pipsという非常に小さなマージンを使用します。
TradeKeeper
Kenneth Berry Cunningham
TradeKeeper - Your Ultimate Trading Journal Enhance Your Trading Experience with TradeKeeper! TradeKeeper is a powerful and intuitive notepad designed specifically for traders. Seamlessly integrated into your trading chart, TradeKeeper allows you to save, recall, and manage your trading notes with ease. Whether you're tracking market trends, recording trade ideas, or analyzing your performance, TradeKeeper ensures you never miss a crucial detail. Key Features: Seamless Chart Integration : Acces
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
Pionex API EAコネクター for MT5 – MT5とのシームレスな統合 概要 Pionex API EAコネクター for MT5 は、 MetaTrader 5 (MT5) と Pionex API をスムーズに統合するツールです。トレーダーは MT5 から直接、取引の実行・管理、残高情報の取得、注文履歴の追跡ができます。 主な機能 アカウントと残高管理 Get_Balance(); – Pionex の現在のアカウント残高を取得。 注文の実行と管理 orderLimit(string symbol, string side, double size, double price); – 指定価格で 指値注文 を実行。 orderMarket(string symbol, string side, double size, double amount); – 指定量で 成行注文 を実行。 Cancel_Order(string symbol, string orderId); – ID による特定の注文のキャンセル。 Cancel_All_Order(stri
Bober Real MT5
Arnold Bobrinskii
4.76 (17)
Bober Real MT5 is a fully automatic Forex trading Expert Advisor. This robot was made in 2014 year and did a lot of profitbale trades during this period. So far over 7000% growth on my personal account. There was many updates but 2019 update is the best one. The robot can run on any instrument, but the results are better with EURGBP, GBPUSD, on the M5 timeframe. Robot doesn't show good results in tester or live account if you run incorrect sets. Set files for Live accounts availible only for cu
DS Gold Robot MT5
Marzena Maria Szmit
4.32 (22)
Introducing the DS Gold Robot, your ultimate companion in navigating the intricate world of XAUUSD trading. Developed with precision and powered by cutting-edge algorithms, DS Gold is a forex robot meticulously crafted to optimize your trading performance with  XAUUSD pairs . With its advanced analytical capabilities,  DS Gold  Robot   constantly monitors the gold market, identifying key trends , patterns, and price movements with lightning speed. The DS Gold Robot opens positions every day from
SL TP Manager Utility MT5
AL MOOSAWI ABDULLAH JAFFER BAQER
SL-TP Manager Utility for MT5 - Professional Risk Management Tool Advanced Position Protection & Profit Management SL-TP Manager Utility is a powerful, intuitive tool designed for traders who want precise control over their risk management. This utility provides a sleek interface for setting, modifying, and managing your Stop Loss, Take Profit, and Trailing Stop levels with just a few clicks. Key Features: Dual Mode Operation: Set values in pips or absolute price with a simple toggle Independent
Best Tested Pairs :-  Step Index (Also can use on other pairs which spread is lowest) How does the Magic Storm work The Magic Storm will commence only if the Initial Trade becomes a losing trade. In case the initial trade is a profitable one, or has been closed by the trader there is no need for the Magic Stormto be initiated. Let’s assume that the initial trade was a 1 lot buy trade with Recovery Zone Range Pips is 50 and Recovery Zone Exit Pips is 150 pips. The take profit for this tr
Noize Absorption Index - is the manual trading system that measures the difference of pressure between bears forces and bulls forces. Green line - is a noize free index that showing curent situation. Zero value of index shows totally choppy/flat market.Values above zero level shows how powerfull bullish wave is and values below zero measures bearish forces.Up arrow appears on bearish market when it's ready to reverse, dn arrow appears on weak bullish market, as a result of reverse expectation.
The Liquidity Hunter EA for MetaTrader 5 leverages advanced liquidity concepts inspired by Smart Money Concepts (SMC). Using sophisticated algorithms, the EA identifies key areas of liquidity at extreme and internal swing highs and lows in the market. It strategically plots rectangle clusters around these levels, indicating potential stop areas and liquidity pools. The EA then executes pending limit orders precisely at these identified liquidity zones, optimizing entry points for trades. It fea
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
このユーティリティは、取引口座の取引を複製するために設計されています。プログラムは、あなたのパラメータで追加の取引を開きます。ロットの増減、ロットの追加、ストップロスやテイクプロフィットのパラメーター変更などの機能を備えています、プログラムは「Windows PC」と「Windows VPS」で動作するように設計されています。  Buy a cloner and get the second version for free パラメータ CLONE_POSITIONS - 複製するオーダーを指定します。 MAGIC_NUMBER - マジックナンバー. DONT_REPEAT_TRADE - trueの場合、手動で決済した後、取引は繰り返されません。 REVERSE_COPY - 逆コピー。例えば、BUY の代わりに SELL をオープンします。 LOT_MULTIPLIER - PROVIDERアカウントからの数量コピー率で、=0の場合はFIXED_LOTで指定したロットでコピーします。 PLUS_LOT, MINUS_LOT - プラスとマイナスのロット。 MAXIMUM_L
Mt5TradeCopier
Mcblastus Gicharu Ndiba
Forex Trade copier MT5.  It copies forex trades, positions, orders from any accounts to any other account,  MT5 even multiple accounts. The unique copying algorithm exactly copies all trades from the master account to your client account. It is also noted for its high operation speed and Tough error handling. It also can copy from demo account to live account too. It is one of the best free trade copiers that can do ,  MT5 or to multiple accounts  MT5 to multiple accounts  Features of Trade Copi
BreakEvan Utility  Is a simple tool in a panel with this utilities: This utility will draw a Golden Line in the chart applied showing the breakeven price, considering all the positions opened for that specific symbol. Also the information panel shows: Balance Breakeven Price for that chart Force Breakeven (for that symbol) as ON/OFF Force Breakeven Global (takes into account all trades opened) as ON/OFF Total Lots opened for Symbol Total Lots opened Global And two buttons: Force Breakeven: Whe
BRIEF INTRODUCTION   : This Panel is made for Volatility 75 (1s) Index  and  Volatility 75 Index  Synthetic indices instruments. It offers an ultimate and complete  auto trading with an optional money management Controls. This application is an automated panel who works on strategy tester. It is equiped with an automatic indicator attached in the bottom of the Panel.  There are another functionalities like  Martingale strategy  and a  range sequence  detection , it is triggered automatically w
BRIEF INTRODUCTION : This Panel is made for Volatility 25 (1s) Index and Volatility 25 Index Synthetic indices instruments. It offers an ultimate and complete  auto trading with an optional money management Controls. This application is an automated panel who works on strategy tester. It is equiped with an automatic indicator attached on the bottom of the Panel. There are another functionalities like Martingale strategy when the price reaches the threshold level, it triggers automatically when
!! BLACK FRIDAY !!  FOR LIFETIME !! ================== == 35$ ONLY !! == ================== BOOK YOURS NOW !! The Position Manager Contains A Lot of Functions such as; (How to Operate) 1. Adjustable Volume per Trade (You could change the volume as you wish per trade). 2. Adjustable Risk : Reward Ratio (1RR means sacrifice 1 Risk : 1 Reward, 1.5RR, 2RR etc. as you wish) 3. Adjustable Stop Loss Points (Calculated Points as Stop Loss and Automatically adjusted the Risk Reward Ratio) 4. Buy Button
*****主要交易XAUUSD,如果测试的时候,建议调整到XAUUSD,其他交易标的不能保证盈利效果********* 需要测试的请留言(看到后会第一时间回复),为了保护工作成果,需要输入特定的参数,系统默认的参数无法实现截图回撤所示效果! 需要测试的请留言(看到后会第一时间回复),为了保护工作成果,需要输入特定的参数,系统默认的参数无法实现截图回撤所示效果! 需要测试的请留言(看到后会第一时间回复),为了保护工作成果,需要输入特定的参数,系统默认的参数无法实现截图回撤所示效果! **************************************************************************************************************************************************************** 1、【简述】主要为趋势交易,严格筛选交易信号,一旦交易信号明确,快速交易。 2、【止损止盈】每月止盈15%,止损30%。 3、【特殊说明】严格的交易执行逻辑,一旦当月达到止盈止损后,坚决不再开
MT4版  |  FAQ Owl Smart Levels Indicator は、 Bill Williams の高度なフラクタル、市場の正しい波構造を構築する Valable ZigZag、エントリの正確なレベルをマークする Fibonacci レベルなどの一般的な市場分析ツールを含む 1 つのインジケーター内の完全な取引システムです。 利益を得るために市場と場所に。 戦略の詳細な説明 インジケータを操作するための指示 顧問-取引助手 プライベートユーザーチャット ->購入後に私に書いて、私はプライベートチャットにあなたを追加し、あなたはそこにすべてのボーナスをダウンロードすることができます 力はシンプルさにあります! Owl Smart Levels 取引システムは非常に使いやすいので、専門家にも、市場を勉強し始めて自分で取引戦略を選択し始めたばかりの人にも適しています。 戦略と指標に秘密の数式や計算方法が隠されているわけではなく、すべての戦略指標は公開されています。 Owl Smart Levels を使用すると、取引を開始するためのシグナルをすばやく確認し、注文を出すための
Trading Utility for Forex Currency Pairs Only not for Gold  Functions Auto Lot Calculation based on Risk Auto stoploss  Auto TakeProfit Breakeven Auto Close Half % Close in percentage with respect to the PIPs Pending Orders BuyLimit Sell Limit with distances BuyStop Sell Stop    with distances Trading Informations Risk in percentage For Multiple trades Combine Takeprofit and Combine Stoplosses
Averager FULL
Vladislav Andruschenko
4.58 (12)
Exp-Averager は、 平均化取引を開始することで、特定のドローダウンを受けた取引を平均化するように設計されています。 アドバイザーは、トレンドおよび逆トレンドに合わせて追加のポジションをオープンできます。 一連のポジションの平均トレーリングストップが含まれています。 ロットが増えたり減ったりしています。 不採算ポジションを平均価格に近づける一般的な戦略。 MT4のバージョン 完全な説明 +DEMO +PDF 購入する方法 インストールする方法     ログファイルの取得方法     テストと最適化の方法     Expforex のすべての製品 リンク MetaTrader 5 ターミナルの Expert Advisor でのアベレージャの操作の例:   Exp - TickSniper   。 平均化機能を備えたユニバーサル取引アドバイザー The X 注記 これは自動取引システムではありません。 取引を監視し、ドローダウンが発生した場合に利益が得られるまで平均化します。 ストラテジー テスターでエキスパート アドバイザーをテストし、ビジュアル モードで EAPAD
The Trendline Trade Panel was created to make it easier to train forex trading skills in backtester and at the same time make it easier to live trade using trendlines with the push of a button. This ea is perfect for beginners who want to learn to trade manually because all of its features are equipped with basic tools for trading forex. Other uses for Trendline Trade Panel: + Can be used to perform recovering loss positions made by other EA or positions that open manually. Fill in magic number
Signal Copy Multiplier automatically copies trades on the same account, for example, to get a better entry and adjusted volume on a subscribed signal. MT4-Version:  https://www.mql5.com/de/market/product/67412 MT5-Version:  https://www.mql5.com/de/market/product/67415 You have found a good signal, but the volume of the provider's trades is too small?  With Signal Copy Multiplier you have the possibility to copy trades from any source (Expert Advisor, Signal, manual trades) and change the volume
インディケータは現在のクオートを作成し、これを過去のものと比較して、これに基づいて価格変動予測を行います。インジケータには、目的の日付にすばやく移動するためのテキスト フィールドがあります。 オプション: シンボル - インジケーターが表示するシンボルの選択; SymbolPeriod - 指標がデータを取る期間の選択; IndicatorColor - インジケータの色; HorisontalShift - 指定されたバー数だけインディケータによって描画されたクオートのシフト; Inverse - true は引用符を逆にします。false - 元のビュー。 ChartVerticalShiftStep - チャートを垂直方向にシフトします (キーボードの上下矢印)。 次は日付を入力できるテキストフィールドの設定で、「Enter」を押すとすぐにジャンプできます。
PipFinite Exit EDGE MT5
Karlo Wilson Vendiola
4.86 (29)
Did You Have A Profitable Trade But Suddenly Reversed? In a solid strategy, exiting a trade is equally important as entering. Exit EDGE helps maximize your current trade profit and avoid turning winning trades to losers. Never Miss An Exit Signal Again Monitor all pairs and timeframes in just 1 chart www.mql5.com/en/blogs/post/726558 How To Trade You can close your open trades as soon as you receive a signal Close your Buy orders if you receive an Exit Buy Signal. Close your Sell orders if
このプロダクトを購入した人は以下も購入しています
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
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
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
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
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
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
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
金融とトレーディング戦略の領域を深く掘り下げ、私は一連の実験を実施し、強化学習に基づくアプローチと強化学習を使用しないアプローチを調査することにしました。 これらの手法を適用して、私は現代のトレーディングにおけるユニークな戦略の重要性を理解する上で極めて重要な微妙な結論を導き出すことができました。 ニューラル ネットワーク アドバイザーは、初期段階では目覚ましい効率性を示したにもかかわらず、長期的には非常に不安定であることが判明しました。 市場のボラティリティ、トレンドの変化、外部事象などのさまざまな要因により、企業の運営に混乱が生じ、最終的には不安定化につながりました。 この経験を武器に、私は課題を受け入れ、独自のアプローチを開発し始めました。 私の焦点は、集められた最良のインジケーターを異なるパラメーター設定で利用するアドバイザーを作成することに集中していました。 このアドバイザーは、私の独自の戦略に基づいており、さまざまなパラメーター設定を持つ 14 の指標を同時に採用し、何時間ものデータ分析と綿密なテストから生まれました。
このライブラリは、できるだけ簡単に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 これが、ライブラリを簡単に使用するため
Nmt5
Liang Qi Quan
这段代码是一个简单的交易专家顾问(Expert Advisor)示例,主要功能如下: 使用两个移动平均线(MA)作为交易信号: 快速MA(FastMA)和慢速MA(SlowMA) 初始化函数(OnInit): 创建两个MA指标句柄 设置数组为时间序列模式 清理函数(OnDeinit): 释放指标句柄,防止内存泄漏 主要交易逻辑(OnTick): 获取最新的MA值 判断趋势和交易信号 在无持仓时执行交易 交易规则: 上升趋势+买入信号时开多单 下降趋势+卖出信号时开空单 使用固定的止损和止盈点数 风险管理: 使用输入参数设置交易手数、止损和止盈 每次只允许一个持仓(inTrade变量) 使用MQL5的Trade库进行交易操作,简化了下单过程 这个EA适合初学者学习,展示了基本的EA结构和简单的交易策略实现方法。但在实际使用前,还需要进行更多的测试和优化。
Flip Manager
Caleb David Kiragu
Introducing Flip Manager: Smart, Automated Ledger Management for Traders After years of manually tracking trades, managing account records, and balancing ledgers, I realized there had to be a better way. Keeping up with every transaction, profit calculation, and risk adjustment was becoming a time-consuming task—so I set out to automate the entire process. That’s how Flip Manager was born. I teamed up with a skilled programmer who shared my passion for efficiency and accuracy in trading. What st
この製品は過去3年間にわたって開発されてきました。MQL5プログラミング言語で人工知能や機械学習コードを扱うための最も高度なコードベースです。MetaTrader 5でAI搭載のトレーディングロボットやインジケーターを多数作成するために使用されています。 これは、MQL5向けの機械学習に関する無料のオープンソースプロジェクトのプレミアムバージョンです。こちらからアクセスできます:  https://github.com/MegaJoctan/MALE5 。無料版は機能が少なく、ドキュメントも不足しており、メンテナンスも不十分です。小規模なAIモデル向けに設計されています。 このプレミアム製品には、AI搭載のトレーディングロボットを効率的にコーディングするために必要なすべてが含まれています。 このライブラリを購入すべき理由は? 非常に使いやすい。コードの構文は直感的で、PythonのScikit-learn、TensorFlow、Kerasなどの人気AIライブラリに似ています。 充実したドキュメント。多くの動画、サンプル、ドキュメントが用意されており、すぐに始められます。 計算効率に優れ
Shawrie
Kevin Kipkoech
This Pine Script implements a Gaussian Channel + Stochastic RSI Strategy for TradingView . It calculates a Gaussian Weighted Moving Average (GWMA) and its standard deviation to form an upper and lower channel. A Stochastic RSI is also computed to determine momentum. A long position is entered when the price closes above the upper Gaussian band and the Stoch RSI K-line crosses above D-line . The position is exited when the price falls back below the upper band. The script includes commission, cap
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
Native Websocket
Racheal Samson
5 (5)
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
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.
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  
このライブラリを使用すると、任意の EA を使用して取引を管理でき、説明に記載されているスクリプト コードを使用して任意の EA に簡単に統合でき、完全なプロセスを示すビデオのデモ例も利用できます。 - 指値注文、SL 指値注文、利食い指値注文の発行 - マーケット、SLマーケット、TPマーケットの注文を行う - 指値注文の変更 - 注文をキャンセルする - 注文のクエリ - レバレッジ、マージンの変更 - 位置情報の取得 もっと... MT5 に Binance チャートがない場合を除き、暗号チャートのレンタルはオプションです。 スクリプトのデモについては、 ここをクリックしてください トレーディングパネルでの取引をご希望の場合は、 この製品に興味があるかもしれません
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
If you're a trader 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. With Binance Library MetaTrader 5, you can easily add instruments from Binance to the Symbols list of MetaTrader 5, as well as obtain information ab
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
MetaCOT 2 CFTC ToolBox is a special library that provides access to CFTC (U.S. Commodity Futures Trading Commission) reports straight from the MetaTrader terminal. The library includes all indicators that are based on these reports. With this library you do not need to purchase each MetaCOT indicator separately. Instead, you can obtain a single set of all 34 indicators including additional indicators that are not available as separate versions. The library supports all types of reports, and prov
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
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
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
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        - 
Gold plucking machine S   Gold plucking machine  S Gold plucking machine S   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
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. 
フィルタ:
thomasb892
19
thomasb892 2024.10.23 14:25 
 

This, Native WebSocket library by Racheal Samson is fast, handles secure wss:// connections effortlessly, and can manage large data transfers with ease.

I love that it's fully native to MQL5, with no extra installations required.

What really stood out was the author's quick response and genuine willingness to help, making the experience even smoother. Highly recommend both the library and the excellent support behind it!

Racheal Samson
1558
開発者からの返信 Racheal Samson 2024.10.23 15:17
Thanks for the rating, highly appreciated.
Franck
21
Franck 2024.08.13 13:58 
 

Awesome support from Racheal, thanks for your help setting up the library, keep up the great work ;)

Racheal Samson
1558
開発者からの返信 Racheal Samson 2024.08.13 13:59
I'm glad to be of help, it's what you paid for. I'm always here to help.
David Moffitt
30
David Moffitt 2024.05.28 21:33 
 

Needed some help to work out some kinks with the library and my code. Racheal was quick and attentive to support!

Racheal Samson
1558
開発者からの返信 Racheal Samson 2024.05.29 00:58
Thanks for the rating, the words are premium and highly appreciated.
Erik Stabij
58
Erik Stabij 2024.01.24 22:08 
 

The library works well and Racheal was very helpfull!

Racheal Samson
1558
開発者からの返信 Racheal Samson 2024.01.24 22:10
I'm always happy to help. Will be here for you anytime. Thanks for the rating :D
helk3rn
250
helk3rn 2024.01.16 15:23 
 

works good, thx

Racheal Samson
1558
開発者からの返信 Racheal Samson 2024.01.16 16:59
Thanks for the rating, I'm always here to help.
レビューに返信
バージョン 1.418 2025.01.10
Fixed minor bug
バージョン 1.417 2024.10.01
Renamed OnStringMessage => OnStringMessages
Renamed OnBinaryMessage => OnBinaryMessages
バージョン 1.416 2024.10.01
Renamed OnReceiveString => OnStringMessage
Renamed OnReceiveBinary => OnBinaryMessage
バージョン 1.415 2024.10.01
Fixed minor callback bug
バージョン 1.414 2024.10.01
Fixed minor bug
バージョン 1.413 2024.10.01
Improved Logging
Added ConnectSecured()
Added ConnectUnsecured()

Added SetOnMessageHandler()
Added SetOnPingHandler()
Added SetOnPongHandler()
Added SetOnCloseHandler()
Added OnMessage()

Automatically send Pong when PingHandler is not set with SetOnPingHandler

OnMessage:-
This method is responsible for reading and processing incoming WebSocket messages, and invoking the appropriate handlers based on the message type, e.g PingHandler for Ping messages.
バージョン 1.395 2024.09.29
Fixed buggy Handshake for Insecure Websocket Connection.
バージョン 1.39 2024.08.13
Logger Bug fixed
バージョン 1.38 2024.08.13
Minor improvement
バージョン 1.37 2024.08.13
Better Log Operation
バージョン 1.36 2024.08.13
Minor bugfix
バージョン 1.35 2024.08.12
Fixed MQL Callback bug
Switched to Class
Updated example
バージョン 1.32 2024.08.10
Recompiled on a newer version.
バージョン 1.3 2024.03.04
Fix issue confirming non-compliant "Sec-Websocket-Accept:"(instead of "Sec-WebSocket-Accept:") connection
バージョン 1.2 2024.01.24
Minor improvement
バージョン 1.1 2024.01.15
Fixed an error 493 error that occurs when there's a lag between the client and the host server