MyTradingHistory

一个易于使用的库,为开发者提供关键交易统计数据的便捷访问,适用于其MQL5 EA。

库中的可用方法:

账户数据和收益:

  • GetAccountBalance() : 返回当前账户余额。
  • GetProfit() : 返回所有交易的净利润。
  • GetDeposit() : 返回总存款金额。
  • GetWithdrawal() : 返回总取款金额。

交易分析:

  • GetProfitTrades() : 返回盈利交易的数量。
  • GetLossTrades() : 返回亏损交易的数量。
  • GetTotalTrades() : 返回执行的总交易数。
  • GetShortTrades() : 返回卖空交易的数量。
  • GetLongTrades() : 返回多头交易的数量。
  • GetWinLossRatio() : 返回盈利与亏损交易的比例。
  • GetAverageProfitTrade() : 返回每笔盈利交易的平均利润。
  • GetAverageLossTrade() : 返回每笔亏损交易的平均亏损。
  • GetROI() : 计算投资回报率。
  • GetLargestProfitTrade() : 返回单笔交易的最大利润。
  • GetLargestLossTrade() : 返回单笔交易的最大亏损。
  • GetShortTradesWon() : 返回成功卖空交易的百分比。
  • GetLongTradesWon() : 返回成功多头交易的百分比。

交易收益数组:

  • GetTradeProfitArray(double &outputArray[]) : 返回每笔交易的收益数组,以便进行详细的交易结果分析。


示例代码如下:

// Import the external MyTradingHistory.ex5 module
#import "MyTradingHistory.ex5"
   void UpdateValues(void);                         // Updates the trading data from the MyTradingHistory library. EXECUTE THIS EVERY TIME YOU WANT TO UPDATE THE VALUES, e.g. after closing a trade or before retreiving the value for the first time.
   void GetTradeProfitArray(double &outputArray[]); // Retrieves an array of profits from closed trades
   double GetAccountBalance(void);                 // Returns the current account balance
   double GetProfit(void);                         // Returns the net profit
   double GetDeposit(void);                        // Returns the total deposit amount
   double GetWithdrawal(void);                     // Returns the total withdrawal amount
   int GetProfitTrades(void);                      // Returns the number of profitable trades
   int GetLossTrades(void);                        // Returns the number of loss trades
   int GetTotalTrades(void);                       // Returns the total number of trades
   int GetShortTrades(void);                       // Returns the number of short trades
   int GetLongTrades(void);                        // Returns the number of long trades
   double GetWinLossRatio(void);                   // Returns the win-to-loss ratio
   double GetAverageProfitTrade(void);             // Returns the average profit per trade
   double GetAverageLossTrade(void);               // Returns the average loss per trade
   double GetROI(void);                            // Returns the return on investment (ROI)
   double GetLargestProfitTrade(void);             // Returns the largest profit from a single trade
   double GetLargestLossTrade(void);               // Returns the largest loss from a single trade
   double GetShortTradesWon(void);                 // Returns the percentage of short trades won
   double GetLongTradesWon(void);                  // Returns the percentage of long trades won
#import

// OnInit is executed when the script starts
int OnInit()
{
   // Update internal data from the imported module
   UpdateValues();

   // Prepare a string to display account and trade summary
   string output = "Account Balance: " + DoubleToString(GetAccountBalance(), 2) + "\n" +
                   "Net Profit: " + DoubleToString(GetProfit(), 2) + "\n" +
                   "Deposit: " + DoubleToString(GetDeposit(), 2) + "\n" +
                   "Withdrawal: " + DoubleToString(GetWithdrawal(), 2) + "\n" +
                   "Profit Trades: " + IntegerToString(GetProfitTrades()) + "\n" +
                   "Loss Trades: " + IntegerToString(GetLossTrades()) + "\n" +
                   "Total Trades: " + IntegerToString(GetTotalTrades()) + "\n" +
                   "Short Trades: " + IntegerToString(GetShortTrades()) + "\n" +
                   "Long Trades: " + IntegerToString(GetLongTrades()) + "\n" +
                   "Win/Loss Ratio: " + DoubleToString(GetWinLossRatio(), 2) + "\n" +
                   "Average Profit per Trade: " + DoubleToString(GetAverageProfitTrade(), 2) + "\n" +
                   "Average Loss per Trade: " + DoubleToString(GetAverageLossTrade(), 2) + "\n" +
                   "ROI: " + DoubleToString(GetROI(), 2) + "\n" +
                   "Largest Profit Trade: " + DoubleToString(GetLargestProfitTrade(), 2) + "\n" +
                   "Largest Loss Trade: " + DoubleToString(GetLargestLossTrade(), 2) + "\n" +
                   "Short Trades Won: " + DoubleToString(GetShortTradesWon(), 2) + "%\n" +
                   "Long Trades Won: " + DoubleToString(GetLongTradesWon(), 2) + "%\n";

   // Add trade profit array data to the output
   output += "Trade Profit Array (First 5 Trades): ";
   double tradeProfitArray[]; // Declare an array to store trade profit data
   GetTradeProfitArray(tradeProfitArray); // Fetch trade profit data

   // Loop through the first 5 trades and append their profit values to the output
   for (int i = 0; i < MathMin(5, ArraySize(tradeProfitArray)); i++)
   {
      output += DoubleToString(tradeProfitArray[i], 2) + ", ";
   }

   // Append the last trade's profit value
   output += "...\nLast Closed Trade: ";
   int size = ArraySize(tradeProfitArray); // Get the size of the trade profit array
   if (size > 0)
      output += DoubleToString(tradeProfitArray[size - 1], 2); // Append the last trade's profit
   else
      output += "No trades available."; // Handle the case where no trades exist

   // Display the summary as a comment on the chart
   Comment(output);

   // Signal successful initialization
   return(INIT_SUCCEEDED);
}

欢迎并感谢您的反馈。请在购买前后分享您的想法和问题。

https://www.mql5.com/en/users/maxsonm


推荐产品
这是一个可以定时自动交易的EA。根据你设定的时间,精确到秒,可以设置最多下几单。下单buy或者Sell.可以设置值止盈止损点。并且可以设定在下单后多久平仓。一般都是用来做事件。祝你好运。 请看图片自己根据设定来使用。每一次使用请重新加载EA。不用的时候记得关闭EA按钮。 我来举个例子。比如英国央行利率决议。你在最后两秒下单(设置的是你本机的时间)。因为可能瞬间点差扩大,你可能不敢直接下最大手数,所以你可以选择小手分批从最后5秒开始进场。我相信做过的人知道我说的意思。因为我专业做这个已经十年。最近才做出了这个自动化EA。并且这里面有个检测就是你点击开始之后如果超过了你设定的时间十秒他就不会执行了。保证你的安全。你自己用DEMO账户测试几次你就知道我这个有多好用了!
Molo kumalo
James Ngunyi Githemo
Trading Forex with our platform offers several key advantages and features: Real-time Data : Stay updated with live market data to make informed decisions. User-Friendly Interface : Easy-to-navigate design for both beginners and experienced traders. Advanced Charting Tools : Visualize trends with interactive charts and technical indicators. Risk Management : Set stop-loss and take-profit levels to manage your risk. Multiple Currency Pairs : Access a wide range of forex pairs to diversify your tr
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
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
Important: This product is a Library for developers . It is suitable only for users who can write/modify MQL5 code and integrate a compiled library into their own EA/Script. It is not a “drag & run” notifier. Telegram SDK helps you send Telegram messages and photos from MetaTrader 5 in a simple and reliable way. Use it when you want Telegram notifications inside your own automation tools. If you need the MetaTrader 4 version, it is available separately in the Market:   Telegram SDK M T4 . Main f
SimpleLotCalculator
Itumeleng Mohlouwa Kgotso Tladi
SimpleLotCalculator: Professional Multi-Symbol Risk Manager Library Stop guessing your lot sizes and start trading with institutional precision. SimpleLotLogic is a high-performance MQL5 developer library designed to solve the number one problem for algorithmic and manual traders: Risk Management. Instead of writing complex math for every new EA, simply plug in this library to calculate the perfect lot size based on your account equity and stop-loss distance. Why Choose SimpleLotLogic? Precis
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
This lightweight utility library provides essential functions for MQL5 developers to streamline and simplify expert advisor (EA) and indicator development. Whether you’re building trading algorithms or managing chart resources dynamically, this library offers clean and reusable building blocks to enhance your code quality and reduce repetition. Key Features Price Access Functions ASK(string symbol) – Get the current Ask price. BID(string symbol) – Get the current Bid price. Account Information
FREE
TeleSignal
Vincent Jean Robert Trolard
TeleSignal EA is an intelligent Expert Advisor designed to automatically send Telegram notifications whenever a position is opened, closed, or modified in MetaTrader 5 . It allows you to monitor your trades in real time , wherever you are — no need to keep your trading platform open. Through its direct integration with the Telegram API, you’ll receive clear and instant messages showing: Trade opened (symbol, lot size, order type, entry price) Trade closed (exit price, profit/loss, trade du
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
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
TradeJournal AutoExporter
Mogae Ronald Sekwababe
TradeJournal AutoExporter is a powerful utility designed for MetaTrader 5 that automatically captures and logs your trading activity in real time. Eliminate manual record-keeping and keep your focus entirely on the market. Key Features: Automated Data Capture: Instantly logs detailed trade statistics—including open/close prices, lot sizes, trade duration, commissions, swap, and profit/loss—the moment a trade closes. Seamless Exporting: Automatically saves your trade history into clean, structure
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
TradeGate
Alex Amuyunzu Raymond
TradeGate – Product Description / Brand Story “The gatekeeper for your trading success.” Overview: TradeGate is a professional MT5 validation and environment guard library designed for serious traders and EA developers who demand safety, reliability, and market-ready performance . In today’s fast-moving markets, even a small misconfiguration can cause EAs to fail initialization, skip trades, or be rejected by MQL5 Market. TradeGate acts as a smart gatekeeper , ensuring your EA only operates un
The Quantitative Qualitative Estimation (QQE) indicator is derived from Wilder’s famous Relative Strength Index (RSI). In essence, the QQE is a heavily smoothed RSI. Modification of this version: ( converted from tradingview script by Mihkell00, original from Glaz, 100% identical output) So there are Two QQEs. One that is shown on the chart as columns, and the other "hidden" in the background which also has a 50 MA   bollinger band   acting as a zero line. When both of them agree - you get a b
TradeLens — Trade & Market Statistics Overview TradeLens is an analysis utility. It does not trade and sends no orders. It reads the account history, calculates statistics for the traded market, and places the two side by side. Most analysis tools show either your own trades or the market. TradeLens connects them. It answers not only how the past months went, but whether those results match what the traded market statistically offered during the same period. What the program measures Account met
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
Smart Adaptive Trend Flow MT5 Professional adaptive trend, market structure, price levels and flow analysis indicator for MetaTrader 5. Would you like to test it before purchasing? You can request a fully functional trial version by sending us a private message through the MQL5 messaging system . This allows you to evaluate the indicator and all its features before making a purchase decision. A Complete Market View in a Single Chart Smart Adaptive Trend Flow MT5 has been developed to provide a
本 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 会自动恢复
Market book tester
Aliaksandr Hryshyn
3 (2)
Using data from the order book in the strategy tester Key features: Simultaneous use of several symbols, up to 7 pieces DOM visualization With the visualization of order books, real-time simulation is available, as well as acceleration or deceleration Working with the library: This product also requires a utility to save data:  https://www.mql5.com/en/market/product/71642 Speed control utility:  https://www.mql5.com/en/market/product/81409 Include file:   https://c.mql5.com/31/735/Market_book_s
FREE
Terminator Genisys
Itumeleng Mohlouwa Kgotso Tladi
TERMINATOR GENISYS HFT (High Frequency Trading - Ai Algorithm Robot) Extreme-design for EURUSD on the 5Min charts for max profit. (other pairs incluse GBPUSD, EURJPY and other pairs with similar time-frames ) Introducing the ' Terminator Genisys ' Expert Advisor   The   Terminator Genisys  expert advisor stands at the pinnacle of automated trading systems, designed to deliver great performance in today's dynamic financial markets. Developed by a team of experienced traders and algorithmic expe
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
本 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 会自动恢复交易。 订单设置
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
License Manager EA
Timothy Chuma Ifiora
License Panel Integration Guide This EA uses a license panel system to verify usage before running trading logic. File Placement Place LICENSE_SINGLE.mqh in the same folder as your EA .mq5 file. If using a subfolder, update the #include path in the EA file. Integration Steps Include the License File #include "LICENSE_SINGLE.mqh" Initialization (OnInit) Call the license check when the EA starts: VerifyLicense(); Deinitialization (OnDeinit) Clean up license resources when EA is removed: HandleLi
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
Trading Session Dashboard
Marwan Bin Mohammed Al Eid Bin Mohammed Carpenter
The Trading Sessions Dashboard is a powerful and user-friendly MT5 indicator designed to provide traders with real-time insights into the major forex trading sessions. It displays the status of each session (Active or Closed) along with the remaining time until closure or the next opening, helping you align your trading strategy with market hours. Built for clarity and professionalism, this indicator is perfect for beginners and experienced traders alike, ensuring you never miss key session tran
MA Horizon MTF
Bunsatoru Kikuchi
This indicator allows you to display specified Moving Averages (MAs) across multiple timeframes on a single chart. By defining your desired MAs in the settings, they will be consistently displayed in multi-timeframe (MTF) regardless of the current chart timeframe you switch to. You can freely customize the timeframe for each MA and toggle their visibility individually via the settings. When an MA goes off-screen, its label is pinned to the top or bottom edge of the chart. This allows you to ins
Static Text display
Muhammad Saad Khan
静态文本显示 是一个轻量且用户友好的 MetaTrader 5 专家顾问(EA),旨在通过在您的图表上直接显示激励性交易提示来启发和教育交易者。凭借优雅的居中黑色背景和等宽字体白色文本,该 EA 以轮换片段形式提供简洁、可操作的建议,帮助您专注于纪律交易。适合初学者和经验丰富的交易者,它倡导风险管理、耐心和策略开发等关键原则。 主要功能: 动态提示显示 :将用户定义的交易提示分割为 50-60 个字符的可读片段,每隔几秒轮换一次(持续时间可自定义)。 专业设计 :在图表顶部中心显示提示,带有黑色背景,确保可读性和均匀填充。 响应式定位 :在图表大小调整或切换时自动调整文本和背景对齐。 可自定义设置 :根据您的偏好调整字体大小、文本颜色、背景颜色和显示持续时间。 开关控制 :无需移除 EA 即可轻松启用或禁用显示。 轻量高效 :资源占用极低,不影响平台性能。 为什么选择静态文本显示? 无论您是想提升交易纪律还是寻求每日动力,此 EA 始终将核心交易智慧置于显眼位置。默认提示强调风险管理、策略测试和情绪控制,但您可以自定义文本以匹配您的交易理念。适合重视教育和一致性的交易者。 输入参数:
FREE
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
该产品的买家也购买
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
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
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.
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
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
OrderBook History Library
Stanislav Korotky
3 (2)
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
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     
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
MT4/5通用交易库(  一份代码通用4和5 ) #ifdef __MQL5__      #define KOD_TICKET ulong      #define KOD_MAGIC   long #else        #define KOD_TICKET long      #define KOD_MAGIC   int #endif class ODLIST; #import "K Trade Lib Pro 5.ex5"       //祝有个美好开始,运行首行加入    void StartGood() ;    //简单开单    long OrderOpen( int type, double volume, int magic, string symbol= "" , string comment= "" , double opprice= 0 , double sl= 0 , double tp= 0 , int expiration= 0 , bool slsetmode= false , bool tpsetmode= false );    //复杂开单
1. 这是什么 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
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
该库将允许您使用任何 EA 来管理交易,并且非常容易集成到任何 EA 上,您可以使用描述中提到的脚本代码以及显示完整过程的视频演示示例自行完成。 - 下限价、止损限价和止盈限价订单 - 下达市场订单、SL 市场订单、TP 市场订单 - 修改限价订单 - 取消订单 - 查询订单 - 更改杠杆、保证金 - 获取位置信息 和更多... 租赁加密货币图表是可选的,除非您的 MT5 上没有币安图表。 对于脚本演示:单击此处 如果您想与交易面板进行交易,您可能对此产品感兴趣 该产品是加密图表的插件 该库将允许您使用任何 EA 来管理交易,并且非常容易集成到任何 EA 上,您可以使用描述中提到的脚本代码以及显示完整过程的视频演示示例自行完成。 - 下限价、止损限价和止盈限价订单 - 下达市场订单、SL 市场订单、TP 市场订单 - 修改限价订单 - 取消订单 - 查询订单 - 更改杠杆、保证金 - 获取位置信息 和更多... 租赁加密货币图表是可选的,除非您的 MT5 上没有币安图表。 对于脚本演示: 单击此处 如果您想与交易面板进行交易, 您可能对
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
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
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
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
近段时间买家运行良好,但同时也有朋友担心: 1、EA测试回测数据的真实性; 2、回测效果好不代表实测效果好,而免费演示版的可测试时间太短,无法判断EA的实用性。 针对以上问题,现推出一个完美的解决方案,直接给到限定时间的测试版本,需要的可以私信留言,或者聊天窗口找我,看到后会发送测试版本过来。 此外,为了方便部分已购买源代码的客户熟悉了解代码,进一步优化和提升空间,并且让更多的有意向的客户了解这个EA的编辑逻辑,特将代码拆解,不定期的讲解基本思路,跟着走即便是小白也可以快速上手,以便后续购买源代码后快速上手优化! 知乎专栏: Day01:初始MQL5量化系统 - quanter的文章 - 知乎 https://zhuanlan.zhihu.com/p/1969031679428530490 Wordpress个人网站: https://quanter001.wordpress.com/ 如有任何问题,欢迎邮件沟通:quanter001@163.com ****************************************************************
该产品已经开发了 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 中级
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、减小仓位量,保持绝对的安全距离。 适用 场景:对未来趋势相对确定,不想错过当前行情,但是认为当前持仓体量又有点大,想降低仓位。
BlitzGeist Telegram Notifier – Stay Connected to Your Trades Anywhere! BlitzGeist Telegram Notifier is a powerful tool that instantly connects your MetaTrader 5 account with Telegram . No matter where you are – you will always receive real-time notifications about your trading activity directly on your phone, PC, or any device with Telegram installed. Perfect for traders who want professional trade reporting, transparency, and risk management monitoring . ️ Key Features Easy Configuratio
Close All Trades - MT5 UI Tool Features - Trading Executions Simplified! One-Click Buy/Sell Buttons : Instantly place buy or sell orders for trades with a single click, streamlining order execution from the desktop. Customizable Lot Size & Parameters : Enter desired lot size, stop-loss (in decimal places e.g. 7 SL Units for 0.7 below or above for buy or sell), take-profit ( in decimal places ), and the number of trades before submitting (1,2,3,4,5 etc.), allowing precise control over each trade
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%
Turn your manual trades into fully automated profit machines! This powerful MT5 EA takes over the moment you open a position — no delays, no stress. It instantly places Stop Loss and Take Profit, activates customizable trailing, and locks in profits while protecting your capital Perfect for scalpers: Every trade is immediately secured, giving you the freedom to focus on sniping the best entries while the EA handles all the management work in the background. Auto SL/TP Full trailin
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
Sniper Utility Rimani sempre aggiornato sui tuoi trade, ovunque tu sia. Sniper Utility invia notifiche immediate ogni volta che uno dei tuoi ordini raggiunge il Take Profit o lo Stop Loss . Perfetta per trader attivi che desiderano monitorare le proprie operazioni senza dover controllare costantemente il terminale. ️ Funzionalità principali Notifica istantanea alla chiusura dell’ordine (TP o SL) Compatibile con notifiche push su dispositivi mobili Supporto per ordini manuali, EA e p
作者的更多信息
My Trading Journal
Max Timur Soenmez
5 (2)
厌倦了 MetaTrader 中繁琐复杂的报告?欢迎使用一种更简洁、更直观的方式来跟踪您的交易。 我的新实用工具/专家顾问旨在为您提供一个简洁、易读的交易表现视图。 此EA目前免费提供,期间我将收集反馈并继续改进其功能。虽然我乐于接受建议,但请理解开发工作是与其他事务同时进行的。 主要功能: 账户余额折线图 通过简单的折线图追踪您的账户余额随时间的变化。轻松查看您的账户表现,一目了然地观察您的交易历史趋势。 盈亏比柱状图 每日交易会话的盈亏可视化。绿色柱状代表盈利交易,红色柱状代表亏损交易,帮助您快速识别交易的好坏天数。交易关闭后,图表立即更新。 详细统计表 EA 包含分析您的交易表现所需的所有关键指标: 净总利润 总交易数 盈亏比 盈利交易 亏损交易 止损/止盈比 投资回报率(账户余额百分比) 成功的空头交易 成功的多头交易 平均盈利交易 平均亏损交易 最大盈利交易 最大亏损交易 为什么选择这个 EA? 简洁且易于理解:没有令人不知所措的数据,只有帮助您掌控交易表现的必要信息。 即时可视化:快速发现趋势并查看交易表现,无需筛选大量报告。 适合: 希望拥有简化、直观交易
FREE
筛选:
无评论
回复评论