TG Trade Service Manager MT5

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.

Key Features:

  1. Unified Interface: TG Trade Service Manager" provides a unified interface for MQL4 and MQL5, streamlining trade management processes across platforms.

  2. Error Handling and Logging: Robust error handling and logging mechanisms ensure that both successful transactions and error messages are meticulously recorded, providing developers with comprehensive insights into trade activities.

  3. Flexible Stop Loss and Take Profit Options: Developers benefit from flexible stop loss and take profit options tailored to their preferences. With two distinct methods available for setting stop loss and take profit levels, developers can choose between defining prices directly or specifying distances in points. The library intelligently handles computations to place stop loss and take profit orders at the desired distances, eliminating the need for manual calculations and simplifying trade management workflows.

#import "TG_TradeServiceLib.ex5" //or path to library
long Buy(double lots, int stopLossPoints, int takeProfitPoints, string symbol, int magic, string comment = NULL);
long Buy(double lots, double stopLossPrice, double takeProfitPrice, string symbol, int magic, string comment = NULL);
long Sell(double lots, int stopLossPoints, int takeProfitPoints, string symbol, int magic, string comment = NULL);
long Sell(double lots, double stopLossPrice, double takeProfitPrice, string symbol, int magic, string comment = NULL);
long BuyLimit(double price, double lots, double stopLossPrice, double takeProfitPrice, string symbol, int magic, string comment = NULL);
long BuyLimit(double price, double lots, int stopLossPoints,  int takeProfitPoints, string symbol, int magic, string comment = NULL);
long SellLimit(double price, double lots, double stopLossPrice, double takeProfitPrice, string symbol, int magic, string comment = NULL);
long SellLimit(double price, double lots, int stopLossPoints,  int takeProfitPoints, string symbol, int magic, string comment = NULL);
long BuyStop(double price, double lots, double stopLossPrice, double takeProfitPrice, string symbol, int magic, string comment = NULL) ;
long BuyStop(double price, double lots, int stopLossPoints,  int takeProfitPoints, string symbol, int magic, string comment = NULL);
long SellStop(double price, double lots, double stopLossPrice, double takeProfitPrice, string symbol, int magic, string comment = NULL);
long SellStop(double price, double lots, int stopLossPoints,  int takeProfitPoints, string symbol, int magic, string comment = NULL);
long MarketExecution(int operation, double lots, int stopLossPoints,  int takeProfitPoints, string symbol, int magic, string comment = NULL);
long MarketExecution(int operation, double lots, double stopLossPrice,  double takeProfitPrice, string symbol, int magic, string comment = NULL);
bool Close(long ticket, double lots, int slippage);
bool Close(long ticket, int slippage);
bool CloseBatch(int magic, string symbol, int type = -1);
bool DeletePending(long ticket);
bool DeleteBatch(int magic, string symbol, int type = -1) ;
bool ModifyMarket(long ticket, int stopLossPoints, int takeProfitPoints) ;
bool ModifyMarket(long ticket, double stopLossPrice, double takeProfitPrice); 
bool ModifyMarketBatch(int magic, double stopLossPrice, double takeProfitPrice, string symbol, int type = -1);
bool ModifyMarketBatch(int magic, int stopLossPoints, int takeProfitPoints, string symbol, int type = -1);
bool ModifyPending(ulong ticket, double stopLossPrice, double takeProfitPrice, double price = 0, datetime expiration = 0);
bool ModifyPending(ulong ticket, int stopLossPoints, int takeProfitPoints, double price = 0, datetime expiration = 0);
long Pending(int operation, double price, string symbol, int magic, double lots, int stopLossPoints, int takeProfitPoint, string comment = NULL, datetime expiration = 0);
#import

BEFORE USING YOU HAVE TO IMPORT THE LIBRARY LIKE MY EXAMPLE ABOVE
How to use Examples

Example 1 using points(int) as parameters:
 //will open a trade with StopLoss = 125 points, TakeProfit = 125 points
   long resultTicket = MarketExecution(
                          (int)ORDER_TYPE_BUY,  // order type
                          0.01,                 // lots
                          125,                  //stopLoss(in points)
                          125,                  //takeProfit(in points)
                          _Symbol,              //symbol (optional)
                          1,                    //magic number(optional)
                          "MyFirstTrade");      //comment (optional)

   if(resultTicket <= 0) //usually if execution fails it will result in -1
   {
      //Code to handle failure
      //return false/Sleep/etc
   }

   //Rest of algorithm implementation

Note: I do not use negative values for stopLoss, the library computes everything by itself.

Example 2 using price(double) as parameters:

   //will open a trade with StopLoss = 125 points, TakeProfit = 125 points
   long resultTicket = MarketExecution(
                          (int)ORDER_TYPE_BUY,  // order type
                          0.01,                 // lots
                          1.08300,              //stopLoss(PRICE)
                          1.08800,              //takeProfit(PRICE)
                          _Symbol,              //symbol (optional)
                          1,                    //magic number(optional)
                          "MyFirstTrade");      //comment (optional)

   if(resultTicket <= 0) //usually if execution fails it will result in -1
   {
      //Code to handle failure
      //return false/Sleep/etc
   }

   //Rest of algorithm implementation

Logging Examples

Errors

2024.01.31 18:44:02.346 TradeServiceLibScriptTests (EURUSD,H4) [INFO] | [Trade.mqh::CTrade::CheckStopLossTakeProfitCorrectness] | For order ORDER_TYPE_BUY   TakeProfit=-1.08366 must be greater than 1.08469 (Bid=1.08468 + SYMBOL_TRADE_STOPS_LEVEL=1 points)

2024.01.31 18:44:02.346 TradeServiceLibScriptTests (EURUSD,H4) [ERROR] | [Trade.mqh::CTrade::PositionOpen::496] | Invalid stops ORDER_TYPE_BUY MarketPrice: 1.085, Bid:1.08468, Ask:1.08470 SL: 1.08366, TP: -1.08366 


INFO:

2024.01.31 18:23:35.607 TradeServiceLibScriptTests (EURUSD,H4) [INFO] | [Trade.mqh::CTrade::OrderSend] | CTrade::OrderSend: market buy 0.01 EURUSD [done at 1.08514]

2024.01.31 18:41:49.329 TradeServiceLibScriptTests (EURUSD,H4) [INFO] | [Trade.mqh::CTrade::OrderSend] | CTrade::OrderSend: market buy 0.01 EURUSD sl: 1.08397 tp: 1.08597 [done at 1.08497]

2024.01.31 18:42:13.301 TradeServiceLibScriptTests (EURUSD,H4) [INFO] | [Trade.mqh::CTrade::OrderSend] | CTrade::OrderSend: market buy 0.01 EURUSD sl: 1.08391 [done at 1.08489]

2024.01.31 18:43:39.998 TradeServiceLibScriptTests (EURUSD,H4) [INFO] | [Trade.mqh::CTrade::OrderSend] | CTrade::OrderSend: market buy 0.01 EURUSD sl: 1.08366 [done at 1.08464]

 


推荐产品
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 );    //复杂开单
ShreeFx Trade Manager
Dhiraj Shivprabhu Pattewar
️ 1. Interactive User Interface (UI) Dual-Tab System: Cleanly separates execution tools (TRADE) from configuration (️ SETTINGS) to keep the chart clutter-free. Dark/Light Mode: Instantly switch between themes using the ️/ emoji button to match your chart background. Live P&L Dashboard: Real-time display of Account Balance, Equity, Floating Profit/Loss (in USD and %), Total Positions (Buys/Sells), Total Lot Exposure, and current Spread. On-Chart Direct Editing: Change any setting (Lot Size,
1. 这是什么 MT5系统自带的优化结果非常少,有时候我们需要研究更多的结果,这个库可以让你在回测优化时可以输出更多的结果。也支持在单次回测时打印更多的策略结果。 2. 产品特色 优化的输出的结果非常多。 可以自定义CustomMax。 输出结果在Common文件夹。 根据EA名称自动命名,且同一个EA多次回测会自动更新名称,不会覆盖上一次的结果。 函数非常简单,你一眼就可以看懂。 #import "More BackTest Results.ex5" // Libraries Folder, Download from the market. //---Set CustomMax void iSetCustomMax( string mode); //---Display multiple strategy results when backtesting alone (not opt). void iOnDeinit(); //--- void iOnTesterInit(); double iOnTester(); void iOnTesterPass( string lang
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
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
TradePilotmt5
Hossein Khalil Alishir
TradePilot Expert Advisor (EA) for MetaTrader 5 TradePilot is a professional and user-friendly Expert Advisor (EA) for MetaTrader 5 (MT5) . It simplifies automated trading , risk management , and trade execution with a smart trading panel . Perfect for beginners and experienced traders looking for a reliable trade manager EA with automated lot size calculation and smart position management. Key Advantages User-Friendly Trading Panel: Customizable panel with buttons and hotkeys for fast ex
RSI Currency Strength Meter is a powerful and elegant multi-currency indicator that measures the real-time relative strength of the 8 major currencies using RSI logic. By calculating the smoothed performance of each currency across its major pairs and applying the RSI formula, it delivers clean and responsive strength lines that make it easy to spot which currencies are truly strong or weak at any moment. This indicator is particularly useful for visualizing currency correlations and divergence
Exclusive Imperium MT5 — 自动化交易系统 Exclusive Imperium MT5 是一款用于 MetaTrader 5 的智能交易顾问(EA),基于市场分析算法和风险管理。该顾问完全自动运行,几乎不需要交易者的干预。 注意!购买后请立即联系我 ,以获取安装和设置说明! 重要提示: 所有示例、截图和测试仅用于演示目的。如果某个货币对在某个经纪商处表现良好,并不意味着在其他经纪商处也会如此。每个经纪商都有自己的报价、点差和交易条件。因此, 每个货币对必须由用户自行优化 ,并且在真实账户上 只能以单一货币模式运行 —— 每个货币对单独运行。多货币模式的截图仅供参考。建议至少 每年优化一次 ,因为市场条件会发生变化。 重要信息: 顾问的演示版本仅供试用。未经优化的测试结果不能反映算法的真实表现。完整使用需要针对经纪商、资金和所选工具进行个性化优化。无论如何,优化必须由用户自行完成,并且至少 每年重复一次 。 请记住:最终结果直接取决于您的经验以及您在优化后设置的参数。 主要特点 分析算法: 指标与过滤器的组合,用于寻找交易机会。 灵活性: 可适应不断变化的市场条件
Exp5 Duplicator
Vladislav Andruschenko
4.78 (9)
Duplicator for MetaTrader 5 —— 单终端内的专业持仓复制系统 这是一款面向专业交易者的可靠 Expert Advisor,用于在 MetaTrader 5 中自动复制已经打开的持仓、放大总仓位、应用自定义手数规则,并按照明确的逻辑管理复制出来的持仓。 它非常适合手动交易者、自动化系统使用者,以及希望在同一个终端内更灵活地管理已有持仓的用户。 Duplicator for MT5 并不会依靠自己的交易策略主动开仓。它的职责是监控 MetaTrader 5 账户中已经存在的持仓,并根据你的设置创建对应副本,包括复制次数、手数、Stop Loss、Take Profit、注释以及额外的管理条件。 如果你需要的是 同一个 MetaTrader 5 终端内部 的持仓复制工具,而不是不同平台或不同终端之间的复制系统,那么 MT5 版 Duplicator 正是为这种需求而设计。 MT4 版本 详细描述 + DEMO + PDF 如何购买 如何安装 如何获取日志文件 如何测试和优化 Expforex 的所有产品 链接 如果你需要 MetaTrader 终端之间 的交易复
近段时间买家运行良好,但同时也有朋友担心: 1、EA测试回测数据的真实性; 2、回测效果好不代表实测效果好,而免费演示版的可测试时间太短,无法判断EA的实用性。 针对以上问题,现推出一个完美的解决方案,直接给到限定时间的测试版本,需要的可以私信留言,或者聊天窗口找我,看到后会发送测试版本过来。 此外,为了方便部分已购买源代码的客户熟悉了解代码,进一步优化和提升空间,并且让更多的有意向的客户了解这个EA的编辑逻辑,特将代码拆解,不定期的讲解基本思路,跟着走即便是小白也可以快速上手,以便后续购买源代码后快速上手优化! 知乎专栏: Day01:初始MQL5量化系统 - quanter的文章 - 知乎 https://zhuanlan.zhihu.com/p/1969031679428530490 Wordpress个人网站: https://quanter001.wordpress.com/ 如有任何问题,欢迎邮件沟通:quanter001@163.com ****************************************************************
Bastion is a monitor-and-close-only risk manager for prop-firm traders. It watches your account against your firm's daily-loss and maximum-drawdown limits in real time and force-closes your open positions BEFORE you cross a line. It never opens a trade of its own, so it stays fully within the tools allowed by FTMO, FundedNext, The5ers, FTUK and FXIFY. Why traders fail challenges A large share of failed evaluations end on a single daily-loss breach: a moment of inattention, a news spike, one tra
Bober Real MT5
Arnold Bobrinskii
4.88 (16)
Bober Real MT5 是一个全自动的外汇交易智能交易系统(EA)。该机器人创建于 2014 年 ,在此期间完成了大量盈利交易,在我的个人账户上实现了超过 7000% 的收益增长 。经过多次更新, 2019 年版本 是最稳定、最优秀的。机器人可用于任何交易品种,但在 EURGBP、GBPUSD(M5 周期) 上表现最佳。使用错误的参数会导致较差结果。 真实账户的 set 文件仅提供给购买者。 ️ 主要优势 无马丁格尔、无对冲、无加仓,始终使用 SL/TP 。 高速测试与优化。 可选 Dynamic Take-Profit ,自动适应价格通道高低点。 内置 新闻日历过滤器 ,自动避开重大事件。 自动检测 GMT 偏移 。 针对实盘交易长期优化,结果稳定。 设置后可自动运行,无需干预。 参数说明 Core / Trading type_order — 订单执行类型 (默认 ORDER_FILLING_FOK)。 ReverseTrade — 反转交易方向。 ToolEnter — 入场工具 (RSI 或 None)。 RSI304 / NoRSIbars — RSI 周期与
Perfect Trade EA Indicator 2026 for XAUUSD MT5 Премиальный многоуровневый самообучающийся индикатор с режимом автоторговли для XAUUSD Perfect Trade EA Indicator 2026 — это не просто индикатор и не обычный советник с примитивным входом по шаблону. Это премиальный торговый комплекс для MetaTrader 5, созданный для работы с XAUUSD, который объединяет в себе: - многоуровневый анализ рынка; - интеллектуальную фильтрацию сигналов; - режим автоматической торговли; - продвинутое сопровождение сделки;
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     
FTMO Protector 8
Vyacheslav Izvarin
PROTECT YOUR FTMO Account in a simplest way Must-Have Account Protector for any Prop-trading Account and Challenge MT4 / MT5 Expert Advisor that protects your Forex Prop Trading account from an unexpected drawdown! FTMO Protector  is a Tool that lets you manage trades and control your profit and loss across multiple Robots and currency pairs using a simple parameters and settings. Use as many EAs and Instruments you need, the Protector will: 1.   Calculate your midnight (01:00 System time) Balan
Trade Manger
Israr Hussain Shah
Here   our more valuable tools SMC Trend Trading   ,  Easy SMC Trading  ,  Institutional SMC Architect Volume Analysis Tools  ,  Volume flow Profile  ,  Market volume profile  , FVG with Volume  , Liquidity Heatmap Profile  ,  Volume Spread Analysis You Give an Instruction: When you run the script, a window pops up with a dropdown menu. You choose exactly what you want it to do from the list (e.g., "Close Profit Only" or "Delete Pending Orders"). It Scans Your Positions: The script then reads
Candlestick Pattern Scanner is a multi-timeframe and multi-symbol dashboard and alert system that checks all timeframes and currency pairs for different candlestick patterns that are formed in them. Scanner is integrated   with support and resistance zones so you can check the candlestick patterns in most important areas of the chart to find breakout and reversal patterns in the price chart. Download demo version   (works on M4,M6,M12,H3,H8 timeframes and 20 symbols of Market Watch window) Read
Wedge Pattern MT5
Sathit Sukhirun
Chinese 这款指标就像是为热衷于图表形态交易的交易者提供的高级图表分析助手。它的设计初衷是减轻视觉分析的负担,并提高盈利的准确性。 从实际应用角度来看,这款指标的主要优势如下: 1. 自动形态检测 (Automated Pattern Detection) 节省时间并减少偏见: 您无需再手动绘制趋势线。指标会寻找价格波段的高低点(Pivot High/Low),并在价格结构符合条件时,自动绘制出上升楔形(Rising Wedge)和下降楔形(Falling Wedge)的框架。 涵盖所有情况: 能够检测正在形成的形态、突破(Breakout)的瞬间,甚至是失败(Failed)的形态,让您清晰地掌握市场全貌。 2. 内置目标和斐波那契止盈 (Built-in Targets & Fibonacci TP) 自动计算目标: 当发生突破时,系统会根据楔形开口的宽度立即计算出主要目标(Main Target)距离,让您明确知道该把止盈(Take Profit)设在哪里。 支持分批平仓 (Scaling Out): 划出多达5个级别的斐波那契线作为子止盈点,非常适合喜欢在关键支撑/阻力位分
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
Close by percentage MT5
Konstantin Kulikov
5 (1)
Hello friends. I wrote this utility specifically for use in my profile with a large number of Expert Advisors and sets ("Joint_profiles_from_grid_sets"   https://www.mql5.com/en/blogs/post/747929 ). Now, in order to limit losses on the account, there is no need to change the "Close_positions_at_percentage_of_loss" parameter on each chart. Just open   one   additional chart, attach this utility and set the desired percentage for closing all trades on the account. The utility has the following fu
ALIEN Dashboard
Youssef Esseghaiar
ALIEN DASHBOARD FULL EDITION – Professional ICT & Precision Trading Dashboard for MT5 ( HYBRID ENGINE ) Overview The   Alien Dashboard Full Edition   is a comprehensive, all‑in‑one technical indicator for MetaTrader 5 that merges the most powerful concepts from Inner Circle Trader (ICT) methodology with advanced precision‑entry logic, multi‑timeframe analysis, and an intuitive on‑chart dashboard. Designed for serious traders who want to visualise institutional order flow, identify high‑probabili
Simo Professional
Maryna Shulzhenko
Description of   Simo : an innovative robot with a unique trading system Simo is a revolutionary trading robot that changes the rules of the game with its unique trading system. Using sentiment analysis and machine learning, Simo takes trading to a new level. This robot can work on any time frame, with any currency pair, and on the server of any broker. Simo uses its own algorithm to make trading decisions. Various approaches to analyzing input data allow the robot to make more informed decis
Auto Trade Copier 被设计成多的MT5账户/端子,绝对精度之间复制交易。 有了这个工具,你可以充当要么提供商(源)或接收(目的地) 。每一个交易行为将由提供商克隆到接收器,没有延迟。 以下是亮点功能:     在一个工具提供商或接收器之间转换角色。     一个供应商可以交易复制到多个接收者的账户。     绝对兼容MT5的顺序/位置管理规则,该规则允许与调整容积为每个符号只有一个位置。     自动识别和同步代理之间的符号后缀。     允许高达5特殊符号的设置(即: GOLD - > XAUUSD ,等等) 。     多lotsize设置选项。     允许过滤的订单类型将被复制。     关断端子或电源关闭后恢复以前的设置和状态。     实时控制面板。     使用方便,界面友好。 用法: - 安装工具提供的MT5终端,并选择角色“提供者” ,然后启用它。 - 安装工具接收的MT5终端,并选择角色的“接收器” ,输入提供商的帐号,然后启用它(你可以有很多接收者的帐户,只要你想) 。 设置和参数:      特殊符号设置(菜单) : 配置高达5对特殊
# Equity Monitor Pro  ## Short Description Equity Monitor Pro is a professional equity p**Equity Monitor Pro** is a powerful risk management tool that automatically protects your trading account by monitoring equity levels and enforcing prop firm style rules. Whether you're taking an FTMO challenge, trading a funded account, or just want to protect your capital, this EA runs silently alongside your trading strategy and takes action when it matters most. Protection tool designed for prop firm
Overview Mirror Signals Service EA (Text only)   is a powerful monitoring Expert Advisor that automatically sends   real-time Telegram notifications   for all important trade events on your MetaTrader 5 account. It is engineered specifically for   signal providers ,   trade-copier operators ,   auditors ,   educators , and   professional trading services   that require immediate, detailed, and reliable reporting. Everything from   entries, exits, SL/TP changes, comment changes, trailing sto
RRtoolBox
David Ruiz Moreno
RRtoolbox - Professional Tools: Risk:Reward Trading Tool (SL/TP Horizontals + Pending orders + Diagonals), Alerts set on trend lines (for alerts on diagonal levels), SelfManagement (BE, partials...), close/cancelling by time, Statistics, Info and trading on chart. One-Click Trading with Visual Risk:Reward Management RRtoolbox is a comprehensive trading panel that combines one-click order execution,  statistics and  powerful visual Risk:Reward tools, alerts set with trendlines, on chart butt
CopyIQ
Stephen Sanjeeve Sahayam
CopyIQ mirrors your trades between MetaTrader 5 terminals running on the same Windows PC - one source account feeding as many receiver accounts as you need. Everything happens locally on the one machine: no VPS, no DLLs, and no internet link between terminals to lag or break. A trade on your source account reaches every receiver in milliseconds. CopyIQ was built by studying where other local copiers let traders down - copies that arrive late, lot sizes that ignore the receiving account, symbols
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
Local Copy Trader Utility - Professional Copy Trading System Overview Local Copy Trader Utility is the complete solution for mirroring trades between MetaTrader 5 accounts. With both Master and Slave functionality in one powerful Expert Advisor, it delivers reliable, lightning-fast trade copying with zero external dependencies. Perfect for managing multiple accounts, following trading signals, or transferring trades between brokers, this system ensures your positions stay perfectly synchronized
该产品的买家也购买
ModernUI Library
Levi Dane Benjamin
适用于 MetaTrader 5 的 ModernUI 库 ModernUI 是一个用于 MetaTrader 5 的图表内用户界面库。它可以帮助 MQL5 开发者在 MT5 图表环境中构建更清晰的 EA 面板、仪表盘、设置窗口、表单、表格、对话框、抽屉式面板以及紧凑型交易风格界面。 它适合希望获得比零散图表对象更专业的界面层,同时仍然完全掌控自己 EA、指标或工具逻辑的开发者。 Modern UI - 用户指南   | EA 示例演示 你可以构建什么 ModernUI 并不局限于某一种面板类型。它为你提供了一个可复用的界面层,几乎可以用于任何你想在 MetaTrader 5 图表中构建的工具。 你可以用它创建简单的设置界面、紧凑型交易面板、完整仪表盘、数据视图、控制面板、账户工具、流程界面、监控界面、实用工具窗口、商业 EA 前端界面等等。 随附的演示展示了几个实用示例,但它们只是起点。如果你的 MQL5 项目需要按钮、输入框、表格、对话框、标签页、抽屉面板、图表、状态区域,或需要一种更清晰的方式在图表上展示信息,ModernUI 都可以为你提供构建模块。 主要功能 适用于 Me
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
BitMEX Trading API
Romeu Bertho
5 (1)
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
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
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
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
Applying these methods, I managed to arrive at a nuanced conclusion that is crucial to understanding the importance of unique strategies in contemporary trading. Although the neural network advisor showed impressive efficiency in the initial stages, it proved to be highly unstable in the long run. Various factors such as market fluctuations, trend changes, external events, etc. cause its operation to be chaotic and eventually lead to instability. With these experiences, I accepted the challenge
OpenAI Library MT5
VitalDefender Inc.
该库旨在提供一种尽可能简单的方法,直接在MetaTrader上使用OpenAI的API。 要深入了解库的潜力,请阅读以下文章: https://www.mql5.com/en/blogs/post/756098 The files needed to use the library can be found here: Manual 重要提示:要使用EA,需要添加以下URL以允许访问OpenAI API  如附图所示 要使用该库,需要包含以下Header,您可以在以下链接找到:  https://www.mql5.com/en/blogs/post/756108 #import "StormWaveOpenAI.ex5" COpenAI *iOpenAI(string); CMessages *iMessages(void); CTools *iTools(void); #import 这就是您需要的所有信息,以便轻松使用该库。 以下是如何轻松使用该库并与OpenAI的API交互的示例 #include <StormWaveOpenAI.mqh>       //--- 包含用于AP
该产品已经开发了 3 年,它是 MQL5 编程语言中最先进的人工智能和机器学习代码库。它已被用于创建多个基于 AI 的交易机器人和指标,适用于 MetaTrader 5。 这是一个高级版,基于免费开源的 MQL5 机器学习项目,链接如下:  https://github.com/MegaJoctan/MALE5 。免费版本功能较少,文档较少,维护不足,仅适用于小型 AI 模型。 该高级版包含您编写 AI 交易机器人的所有必需工具。 为什么要购买此库? 非常易于使用,代码语法友好,类似于 Python 的流行 AI 库,如 Scikit-learn、TensorFlow 和 Keras。 文档齐全,提供丰富的视频、示例和文档,帮助您快速上手。 计算优化,性能优越,运行方式类似普通 EA。  无需额外依赖,无需 DLL 文件,所有内容可编译为单一 .EX5 文件,便于测试和分发。 全天候技术支持,我将提供帮助,确保您正确使用,并在问题出现时协助修复。  谁适合使用此库? 具有基本机器学习和 AI 知识的用户。 机器学习爱好者,特别是来自 Python ML 社区的开发者。 MQL5 中级
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
Ai Prediction MT5
Mochamad Alwy Fauzi
A free indicator for those who purchase the full version This indicator is created by this Ai, with your desired settings Artificial Intelligence at your service Have a complete artificial intelligence and use it in your codes This artificial intelligence is trained to tell you on each candle whether the market is moving up or down. In general, artificial intelligence can be used in all markets, all timeframes and all symbols However, due to the increasing complexity and decreasing accuracy of
快速关仓,无需任何操作。 当前版本的一键关仓主要针对的是来不及手动关仓的情况,目前是不分交易标的类别,是对所有的持仓进行关仓。 未来可能升级的方向: 1、分类别、分标的关仓。 适用场景:开了多个标的的仓位,并且波动不一,快速频繁的波动影响了整体的判断。 2、增加只关闭盈利仓位、只关闭亏损仓位。 适用场景:持仓较多,趋势发生变化。 个人建议:一般建议选择一键全部关仓,因为如果行情与持仓方向一致,只关闭盈利仓位无形就是扩大了亏损。如果行情方向与持仓方向相反,只关闭亏损仓位,当前已盈利的后面又会变为亏损,盈利无法变现。 3、按照仓位顺序由大到小关仓、按照仓位顺序由小到大关仓。 适用 场景:行情发生波动,对于未来行情判断把握不确定的,可根据自己需求选择仓位关仓顺序,由大到小关仓的话,可以避免亏损的进一步扩大。 4、减小仓位量,保持绝对的安全距离。 适用 场景:对未来趋势相对确定,不想错过当前行情,但是认为当前持仓体量又有点大,想降低仓位。
TupoT3
Li Guo Yin
突破交易策略:智能风控系统升级版‌ 当价格突破关键阻力位时,往往意味着趋势的质变时刻。我们的突破交易策略通过三重智能系统——‌动态阈值识别‌、‌量能验证机制‌和‌自适应止损算法‌,帮助交易者精准捕捉这些跃迁机会。 ‌核心优势‌: ‌智能预警‌:实时监测200+技术指标,自动标记潜在突破位 ‌风险对冲‌:突破失败时自动触发0.5秒内止损,保护本金安全 ‌多周期验证‌:结合日线/4小时/1小时数据过滤假信号 ‌实战案例‌: 2025年第二季度,该策略在现货黄金市场实现连续23次有效突破,平均持仓周期缩短至4.7小时,收益率达传统趋势策略的3.2倍。 ‌智能风控系统‌: ‌动态止盈‌:根据ATR指标自动调整止盈位,锁定利润的同时保留上行空间 ‌分级止损‌:首次突破失败后自动切换至1:1盈亏比保护模式,二次突破确认后恢复原策略 本EA依下图设置做黄金1小时图线,经长时期实盘验证年利润达到30多倍,修改参数可以用作比特币和纳斯达克指数都有很好的收益。
【黄金智能交易EA|风控稳守,盈利突围】 专为黄金波动特性定制的智能交易EA,以硬核交易系统为核心,每笔下单均源自量化模型对行情趋势、支撑压力的精准研判,杜绝主观干扰,让交易决策更客观高效。 搭载多维风控体系,动态止损止盈+仓位智能调控双保险,严格锁定单笔风险阈值,即便面对黄金跳空、黑天鹅行情,也能有效规避大幅回撤,守护本金安全。 更具备浮盈加仓智能算法,趋势明朗时自动放大盈利头寸,让利润在顺势中滚动增长,既不浪费单边行情红利,又通过阶梯式加仓策略平衡风险与收益,实现“风控打底,盈利上不封顶”的交易闭环! 本款EA历经38次修改与测试,每一次升级都境加了EA的稳定盈利能力,才最终确定此为终极版本发布。 本款EA目前只针对现货黄金 交易的长期回测和实盘验证,按照下图设置实现长期的稳定 盈利。如果需要交易期它品种,请根据实际情况更改设置。 本EA为阶梯定价,每卖出10份价格增加10%
SniperkickEA
Mohamed Maguini
Questo Expert Advisor (EA) è stato progettato per offrire un'esperienza di trading automatizzata di alto livello, adatta sia ai trader principianti che a quelli esperti. Utilizzando algoritmi avanzati e tecniche di analisi del mercato, l'EA è in grado di identificare opportunità di trading redditizie con precisione e velocità. L'EA è configurabile per operare su vari strumenti finanziari, tra cui forex, indici e materie prime, garantendo una flessibilità senza pari. Le caratteristiche princip
LSTM Library
Thalles Nascimento De Carvalho
LSTM Library - MetaTrader 5的高级神经网络 专业算法交易神经网络库 LSTM Library为您的MQL5交易策略带来递归神经网络的强大功能。这个专业级实现包括LSTM、BiLSTM和GRU网络,具有通常只在专业机器学习框架中才能找到的高级功能。 "交易机器学习成功的秘诀在于正确的数据处理。 垃圾进,垃圾出 –您的预测质量永远不会超过您的训练数据质量。" — 马科斯·洛佩兹·德·普拉多博士, 金融机器学习进展 主要特点 完整实现LSTM、BiLSTM和GRU 递归Dropout实现更好的泛化 多种优化算法(Adam, AdamW, RAdam) 高级归一化技术 全面的指标评估系统 训练进度可视化 支持通过类权重处理不平衡数据 技术规格 纯MQL5实现 - 无外部依赖 为交易应用程序优化 全面的错误处理和验证 完全支持保存/加载训练模型 详尽的文档 集成说明 要将LSTM Library集成到您的Expert Advisor中,请按照以下步骤操作: 1. 完整库导入 #import "LSTM_Library.ex5"    // 库信息    void Get
本 EA 专为震荡 / 横盘行情设计。 在设定区间内自动补单交易 EA 仅在 预先设定的价格区间内运行 。 当订单平仓、成交、取消后(单数量少了),EA 会自动补充新的订单,以维持交易策略的持续运行。 您以通过 Max Orders 来控制最大订单数量。 示例: 最大订单数(Max Orders):8 当前持仓订单:2 单 挂单 Buy Limit:6 单 在这种情况下,EA 不会继续下新单。 只有当订单 平仓、成交 、 取消 后,EA 才会 自动补单 ,持续捕捉 震荡行情 中的利润。 注意: Buy Limit 订单 只会挂在当前市场价格的下方 。 产品参数说明 Trade Symbol : 交易品种  XAUUSD、USDJPY、BTCUSD 等等... 区间设置 Zone Low :区间下边界 Zone High :区间上边界 说明: 例如,您将黄金的交易区间设定为: Zone Low :4420 Zone High :4455 EA 只会在该价格区间内挂单并自动交易。 当价格突破区间范围时,EA 将停止交易。 当价格回到区间内,EA 会自动恢复交易。 订单设置
本 EA 专为震荡 / 横盘行情设计。 在设定区间内自动补单交易 EA 仅在 预先设定的价格区间内运行 。 当订单平仓、成交、取消后(单数量少了),EA 会自动补充新的订单,以维持交易策略的持续运行。 您可以通过 Max Orders 来控制最大订单数量。 示例: 最大订单数(Max Orders):8 当前持仓订单:2 单 挂单 Sell Limit:6 单 在这种情况下,EA 不会继续下新单。 只有当订单 平仓、成交 、 取消 后,EA 才会 自动补单 ,持续捕捉 震荡行情 中的利润。 注意: Sell Limit   订单 只会挂在当前市场价格的上方 。 产品参数说明 Trade Symbol : 交易品种  XAUUSD、USDJPY、BTCUSD 等等... 区间设置 Zone Low :区间下边界 Zone High :区间上边界 说明: 例如,您将BTCUSD的交易区间设定为: Zone Low : 92000 Zone High : 94500 EA 只会在该价格区间内挂单并自动交易。 当价格突破区间范围时,EA 将停止交易。 当价格回到区间内,EA 会自动恢复
A complete PostgreSQL client implemented in pure MQL5 over native MetaTrader 5 TCP sockets. The library implements the PostgreSQL client with MD5 and SCRAM-SHA-256 authentication, SSL/TLS, the Simple Query Protocol, and explicit transactions. No DLLs, no external dependencies, no third-party services. Features Direct TCP connection to any PostgreSQL-compatible database MD5 and SCRAM-SHA-256 authentication, auto-detected SSL/TLS via PostgreSQL's SSLRequest flow Full transaction support Typed res
ProTradeLib
Noel Anjao Alube
ProTradeLib - Professional MQL5 Trading Library Complete Developer Toolkit for MetaTrader 5 ProTradeLib is a production-ready, single-file MQL5 include library designed for professional developers building Expert Advisors and trading systems. With seven integrated modules, it provides all the essential building blocks needed to create robust, feature-rich trading applications. Key Features 1. Risk Manager Calculate lot sizes based on account balance percentage, fixed USD risk, or fixed lots Enfo
SmartStructureLib — Smart Money Concepts Engine for MQL5 Developers SmartStructureLib is a professional-grade MQL5 library that gives developers a complete Smart Money Concepts calculation engine they can embed directly into any Expert Advisor or indicator. Instead of building SMC detection logic from scratch, you include one file and call clean, readable methods that handle all the heavy lifting behind the scenes. The library is built around seven focused modules. The Structure Engine detects B
WalkForwardOptimizer MT5
Stanislav Korotky
3.78 (9)
WalkForwardOptimizer library allows you to perform rolling and cluster walk-forward optimization of expert advisers (EA) in MetaTrader 5. To use the library include its header file WalkForwardOptimizer.mqh into your EA source code, add call provided functions as appropriate. Once the library is embedded into EA, you may start optimization according to the procedure described in the User guide . When it's finished, intermediate results are saved into a CSV file and some special global variables.
ModernUI Library
Levi Dane Benjamin
适用于 MetaTrader 5 的 ModernUI 库 ModernUI 是一个用于 MetaTrader 5 的图表内用户界面库。它可以帮助 MQL5 开发者在 MT5 图表环境中构建更清晰的 EA 面板、仪表盘、设置窗口、表单、表格、对话框、抽屉式面板以及紧凑型交易风格界面。 它适合希望获得比零散图表对象更专业的界面层,同时仍然完全掌控自己 EA、指标或工具逻辑的开发者。 Modern UI - 用户指南   | EA 示例演示 你可以构建什么 ModernUI 并不局限于某一种面板类型。它为你提供了一个可复用的界面层,几乎可以用于任何你想在 MetaTrader 5 图表中构建的工具。 你可以用它创建简单的设置界面、紧凑型交易面板、完整仪表盘、数据视图、控制面板、账户工具、流程界面、监控界面、实用工具窗口、商业 EA 前端界面等等。 随附的演示展示了几个实用示例,但它们只是起点。如果你的 MQL5 项目需要按钮、输入框、表格、对话框、标签页、抽屉面板、图表、状态区域,或需要一种更清晰的方式在图表上展示信息,ModernUI 都可以为你提供构建模块。 主要功能 适用于 Me
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
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
作者的更多信息
TG Macd 2 Line MT5
Daciana Elena Chirica
4.86 (7)
The MACD 2 Line Indicator is a powerful, upgraded version of the classic Moving Average Convergence Divergence (MACD) indicator. This tool is the embodiment of versatility and functionality, capable of delivering comprehensive market insights to both beginner and advanced traders. The MACD 2 Line Indicator for MQL4 offers a dynamic perspective of market momentum and direction, through clear, visually compelling charts and real-time analysis. Metatrader4 Version |  How-to Install Product | How-t
FREE
TG Multi Timeframe Moving Average MT5
Daciana Elena Chirica
4.75 (4)
TG MTF MA MT5   is designed to display a multi-timeframe moving average (MA) on any chart timeframe while allowing users to specify and view the MA values from a particular timeframe across all timeframes. This functionality enables users to focus on the moving average of a specific timeframe without switching charts. By isolating the moving average values of a specific timeframe across all timeframes, users can gain insights into the trend dynamics and potential trading opportunities without sw
FREE
TG MTF MA MT5     is designed to display a   multi-timeframe moving average (MA)   on   any   chart   timeframe   while allowing users to specify and view the MA values from a particular timeframe across all timeframes. This functionality enables users to focus on the moving average of a specific timeframe without switching charts.   By   isolating   the moving average values of a specific timeframe across all timeframes, users can gain insights into the trend dynamics and potential trading opp
FREE
TG Macd 2 Line MT4
Daciana Elena Chirica
The MACD 2 Line Indicator is a powerful, upgraded version of the classic Moving Average Convergence Divergence (MACD) indicator. This tool is the embodiment of versatility and functionality, capable of delivering comprehensive market insights to both beginner and advanced traders. The MACD 2 Line Indicator for MQL4 offers a dynamic perspective of market momentum and direction, through clear, visually compelling charts and real-time analysis. Metatrader5 Version |  How-to Install Product | How-to
FREE
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. Metatrader5 Version   | All Products | Contact Key Features: Efficient Lot Size Calculation : Harness the power of precise lot size comp
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. Metatrader5 Version |  All Products  |  Contact Key Features: Unified Interface : TG Trade Service Manager" provides a unified interface for   MQL4   and   MQ
TG AveraEdge MT4
Daciana Elena Chirica
Avera Edge  (EA) employs an   averaging strategy   designed for   long-term   profitability with low risk. It operates by initiating trades and setting take profit levels. If the market quickly reaches the take profit point, it opens another trade upon the next candle's opening.    Conversely, if the market moves against the trade, it employs an averaging technique to secure more favorable prices. Go to ->  Metatrader5 Version |  All Products  |  Contact
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
TG AveraEdge MT5
Daciana Elena Chirica
Avera Edge  (EA) employs an   averaging strategy   designed for   long-term   profitability with low risk. It operates by initiating trades and setting take profit levels. If the market quickly reaches the take profit point, it opens another trade upon the next candle's opening.  Conversely, if the market moves against the trade, it employs an averaging technique to secure more favorable prices. Go to ->  Metatrader4 Version |  All Products  |  Contact
筛选:
无评论
回复评论