• 概述
  • 评论
  • 评论
  • 新特性

SortedByValue

这个库用于key 和 value 数组进行排序, 我们常常需要对值进行排序。


像python语言里面的

sorted(key_value.items(), key = lambda kv:(kv[1], kv[0]))


导入函数

#import "SortedByValue.ex5"
bool SortedByDouble(long      &key[],double   &value[]);
bool SortedByDouble(string   &key[],double   &value[]);
bool SortedByInteger(long     &key[],long     &value[]);
bool SortedByInteger(string  &key[],long     &value[]);
bool SortedByDateTime(long    &key[],datetime &value[]);
bool SortedByDateTime(string &key[],datetime &value[]);
#import


使用场景例子

1.网格EA订单根据开仓价格排序

void SortedByOpenPride()
  {
   long    OrderTicketBuffer[];
   double  OpenPriceBuffer[];

   for(int i = 0; i<=PositionsTotal(); i++)
     {
      if(m_position.SelectByIndex(i))
        {
         OrderTicketBuffer[i] = ulong(m_position.Ticket());
         OpenPriceBuffer[i] = m_position.PriceOpen();
        }
     }

   SortedByDouble(OrderTicketBuffer,OpenPriceBuffer);
  }
最上层订单的ticket为OrderTicketBuffer[ArraySize(OrderTicketBuffer)-1];

最下层订单的ticket为OrderTicketBuffer[0];


2. 货币强弱排序

   string    key[5];
   double    value[5];

   key[0] = "USD";
   key[1] = "EUR";
   key[2] = "GBP";
   key[3] = "AUD";
   key[4] = "JPY";

   value[0] = 1.2;
   value[1] = 2.5;
   value[2] = 3.3;
   value[3] = 1.1;
   value[4] = 0.8;

   SortedByDouble(key,value);
最强的货币为key[4],“GBP”

最弱的货币为key[0], “JPY”







推荐产品
The Matrix
Omega J Msigwa
Matrix is the foundation of complex trading algorithms as it helps you perform complex calculations effortlessly and without the need for too much computation power, It's no doubt that matrix has made possible many of the calculations in modern computers as we all know that bits of information are stored in array forms in our computer memory RAM, Using some of the functions in this library I was able to create machine learning robots that could take on a large number of inputs To use this libra
A Simple Moving Average (SMA) is a statistical indicator used in time series analysis. This indicator represents the arithmetic mean of a sequence of values over a specific period of time. SMA is used to smooth short-term fluctuations in data, helping to highlight the overall trend or direction of changes. This aids analysts and traders in better understanding the general dynamics of the time series and identifying potential trends or changes in direction.  More information you can find in Wiki 
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 c
| Fully-automated Smart Money Concept (ICT) inspired trading solution with multi-strategy capabilities | Built by a grid trader >> for grid traders.  This is MT5 version, click  here  for  Blue CARA MT4  (settings and logics are same in both versions)     Real monitoring signal  -->  Cara Gold Intro Blue CARA EA   ('CARA') - short for  C omprehensive  A lgorithmic   R esponsive   A dvisor is a next-gen  multi-currency    multi-timeframe  EA base on the widely known (and perhaps the most popul
Hamster Scalping mt5
Ramil Minniakhmetov
4.7 (197)
Hamster Scalping 是一个完全自动化的交易顾问,不使用鞅。夜间剥头皮策略。 RSI 指标和 ATR 过滤器用作输入。顾问需要对冲账户类型。 可以在此处找到对实际工作以及我的其他发展的监控: https://www.mql5.com/en/users/mechanic/seller 一般建议 最低入金 100 美元,使用点差最小的 ECN 账户,默认设置为 eurusd M5 gmt + 3。 输入参数 EA 适用于四位数和五位数报价。在输入参数中,我们以点为单位表示5个字符的值,它会自动按4个字符重新计算所有内容。 NewCycle - 模式开启时,顾问工作不停止,模式关闭时,完成一系列交易后,顾问不会开新订单; 周期指标1 - 第一个指标的周期; Up level - 第一个指标的上限,顾问将在其上方打开卖出; Down Level - 第一个指标的较低水平,低于该水平 EA 将开始买入; Period indicator2 - 第二个指标的周期; From - 第二个指标值范围的下限,EA 允许在该范围内建仓; To - 第二个指标值范围的上
SolarTrade Suite 金融机器人:LaunchPad 市场专家 - 专为开启交易而设计! 这是一个使用特殊创新和先进算法来计算其价值的交易机器人,是您在金融市场世界中的助手。 使用我们来自 SolarTrade Suite 系列的指标集来更好地选择启动此机器人的时机。 在描述底部查看我们来自 SolarTrade Suite 系列的其他产品。 您想自信地驾驭投资和金融市场的世界吗? SolarTrade Suite 金融机器人:LaunchPad 市场专家是一款创新软件,旨在帮助您做出明智的投资决策并增加您的利润。 SolarTrade Suite 金融机器人的优势:LaunchPad 市场专家: - 准确计算:我们的机器人使用先进的算法和分析方法来准确预测市场走势。 计算购买和出售资产的最佳时机。 - 用户友好界面:直观的界面将使您能够轻松掌握程序并在安装后立即开始享受其好处。 - 专家支持:我们的专业团队随时准备为您解答任何问题,并为您提供有关使用该程序的建议。 立即试用 SolarTrade Suite 金融机器人:LaunchP
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 );    //复杂开单
Magic EA MT5
Kyra Nickaline Watson-gordon
Magic EA is an Expert Advisor based on Scalping, Elliot Waves and with filters such as RSI, Stochastic and 3 other strategies managed and decided with the robot smartly. Large number of inputs and settings are tested and optimized and embedded in the program thus inputs are limited and very simple. Using EA doesn't need any professional information or Forex Trading Knowledge. EA can trade on all symbols and all time frames, using special and unique strategies developed by the author. The EA
Magic Grid MT5
Aliaksandr Charkes
4 (5)
Magic Grid MT5 is a non-indicator Expert Advisor using a grid strategy (on a hedging account). The strategy is based on automatic reopening of grid pending orders, after closing their market positions (by Take-Profit, Stop-Loss or manually). Pending orders are placed with a specified step from the initial prices, which can be entered manually or generated automatically (once at the beginning of the trade).   The robot can trade on any timeframe, on any currency pair, on several currency pairs,
Trade   News EA is a semi automatic expert advisor designed for trade news event. News Calendar uses the built in calendar of MT5 terminal. Expert advisor explanation :   Click here   | Free News Reminder :   Click here   Parameters input: 1. Manage Open Positions + Trade Buy : Allow buy + Trade Sell : Allow sell 2. Show news + High importance : Show high importance news + High importance color : Color of high importance news + Medium importance : Show Medium importance news + Medium import
Exclusive EA for FOREX HEDGE account The EA (FuzzyLogicTrendEA) is based on fuzzy logic strategies based on the analysis of a set of 5 indicators and filters. Each indicator and filter has a weight in the calculation and, when the fuzzy logic result reaches the value defined in the EA parameter, a negotiation is opened seeking a pre-defined gain. As additional functions it is possible to define maximum spread, stop loss and so on . Recommended Symbol: EURUSD, AUDUSD, GBPUSD, NZDUSD, USDCAD, AUD
Mine Farm
Maryna Kauzova
Mine Farm is one of the most classic and time-tested scalping strategies based on the breakdown of strong price levels. Mine Farm is the author's modification of the system for determining entry and exit points into the market... Mine Farm - is the combination of great potential with reliability and safety. Why Mine Farm?! - each order has a short dynamic Stop Loss - the advisor does not use any risky methods (averaging, martingale, grid, locking, etc.) - the advisor tries to get
Noize Absorption Index
Ekaterina Saltykova
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.
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,
Net Z
Sugianto
5 (1)
NET Z uses a very well-known trend reversal technique to determine position entry with slight modifications by using virtual trade techniques and virtual pending orders so that position entry is not too early or too late. Why NETZ? NET Z does not require complicated settings and is easy to use because user only need to upload a set file that is already available. Currently there are set files for 20 fx pairs. The best GRID EA with the ability to control risks. I will share my personal daily r
KopierMaschine - локальный копировщик сделок между различными счетами MetaTrader 4 и MetaTrader 5 в любом направлении расположенных на одном компьютере с интуитивно понятным интерфейсом. Направления копирования: MT4 --> MT5 MT4 --> MT4 MT5 --> MT5 MT5 --> MT4 для копирования между терминалами MetaTrader 4 и   MetaTrader   5 необходимо приобрести версию продукта   KopierMaschine  для    MetaTrader  4 Особенности Программа работает в двух режимах Master и Slave На один подчиненный счет можно коп
BtcAI
Novin Ghasemi Nik
BTC AI交易机器人 - 先进的加密货币交易与AI集成 频道链接: https://www.mql5.com/en/channels/btcai 重要的回测通知 此专家顾问在回测与实盘交易中使用不同的策略: 回测模式:利用基于传统技术指标的简化策略 实盘交易:采用全面的AI分析,包括市场情绪、新闻影响和复杂模式识别 由于这些基本差异,回测结果不会代表实盘交易表现 回测模式仅用于基本系统测试和验证 重要事项: 购买后,请私信我们以获取个性化的优化设置和额外指导,这可以显著提升机器人的性能。这些高级设置是单独分享的,以确保每位交易者获得最优化的配置以符合其交易风格。 核心功能 先进的AI集成 使用神经网络进行实时市场分析 基于市场波动性的动态头寸调整 跨多个时间框架的模式识别 加密新闻和市场事件的情绪分析 根据市场条件自适应的进出点 风险管理 多级头寸管理系统 动态跟踪止损机制 在关键利润水平自动部分平仓 风险调整后的头寸规模 每个符号的最大头寸限制 账户余额保护功能 市场分析 深度价格行为分析 成交量轮廓集成 支撑/阻力区检测 市场
Kintech Gold
Doan Van Hai
Following our guide, you will gain more than you lose. EA for long-term. Stable profit - min risk. Symbol:  XAUUSD Attach to any timeframe Min deposit:   3000$ - Calculate profit by month EA input instruction: 1. With XAU 2 digits (eg: 1843.23) please set - Input   [3. Max spread]: 55 - Input   [9. Step point]: 100 2. With XAU 3 digits (eg: 1843.235) please set - Input   [3. Max spread]: 550 - Input   [9. Step point]: 1000 3. If you want to attach to one more Window, please set input   [1. Numb
US500 Scalper
Sergey Batudayev
The S&P 500 Scalper Advisor is an innovative tool designed for traders who want to successfully trade the S&P 500 Index. The index is one of the most widely used and prestigious indicators of the American stock market, comprising the 500 largest companies in the United States. Peculiarities: Automated trading solutions:   The advisor is based on advanced algorithms and technical analysis to automatically adapt the strategy to changing market conditions. Versatile approach:   The advisor combine
Owl Smart Levels MT5
Sergey Ermolov
4.07 (28)
MT4版本  |   FAQ Owl Smart Levels Indicator 是一個完整的交易系統,包含 Bill Williams 的高級分形、構建正確的市場波浪結構的 Valable ZigZag 以及標記準確入場水平的斐波那契水平等流行的市場分析工具 進入市場和地方獲利。 策略的详细说明 指示灯使用说明 顾问-贸易猫头鹰助手助理 私人用户聊天 ->购买后写信给我,我会将您添加到私人聊天中,您可以在那里下载所有奖金 力量在於簡單! Owl Smart Levels 交易系統非常易於使用,因此適合專業人士和剛開始研究市場並為自己選擇交易策略的人。 策略和指標中沒有隱藏的秘密公式和計算方法,所有策略指標都是公開的。 Owl Smart Levels 允許您快速查看進入交易的信號,突出顯示下訂單的水平並向您發送有關已出現信號的通知。 優點很明顯: 清楚地顯示主要和更高時間框架的趨勢方向。 指示儀器信號的出現。 標記開單、止損設置和固定利潤的水平。 沒有多餘的,只有必要的結構! ZigZag 表示全球趨勢的方向,因此也表示貿易方向。 市場反轉點的短線清楚地表明在什麼水平上構建斐波
FVG EA Pro
Haidar, Lionel Haj Ali
4.52 (27)
FVG EA PRO   is a must-have smart money concept EA, highly customizable and using advanced techniques of FVG "Fair Value Gap" and market structure to capture high probability trades.  It is highly configurable,  you can build various strategies based on market structure and FVG as entry criteria. FVG EA PRO can be used to trade Kill Zones and Silver Bullet Windows. It is fully compatible with swing trade strategies. It contains all the functionalities  needed by any  successful traders to automa
Gyroscopes mt5
Nadiya Mirosh
5 (1)
Gyroscope        professional forex expert   (for EURUSD, GBPUSD, USDJPY, AUDUSD, USDCHF, EURGBP, EURJPY, NZDUSD, USDCAD, EURCHF, AUDJPY, CADJPY pairs)   alyzing the market using the Elliot Wave Index. Elliott wave theory is the interpretation of processes in financial markets through a system of visual models (waves) on price charts. The author of the theory, Ralph Elliott, identified eight variants of alternating waves (of which five are in the trend and three are against the trend). The mo
Boom 300 Players
Ignacio Agustin Mene Franco
Good community, on this occasion I present to you Boom 300 Players where it has the 2 Bolinger Bands strategy with each bolinger band configured with different parameters to make the entry into Trend candles more perfect! The Ea is also used for funding accounts. Starts with a recommended capital of 1000 USD operates with lots of between 2 and 3 depending on capital It is used in a time frame of 1 Minute and the parameters to be configured are as in the photo without more good profit enjoy!!
Boom 500 Players
Ignacio Agustin Mene Franco
Good community, on this occasion I present to you Boom 500 Players where it has the 2 Bolinger Bands strategy with each bolinger band configured with different parameters one with 44 and another with 22 to make the entry into Trend candles more perfect! The EA also works for funding accounts. Prop firms Starts with a recommended capital of 1000 USD operates with lots of between 2 and 3 depending on capital It is used in a time frame of 1 Minute and the parameters to be configured are as in the p
该指标建立当前报价,可以与历史报价进行比较,并在此基础上进行价格走势预测。指示器有一个文本字段,用于快速导航到所需日期。 选项: 符号 - 选择指标将显示的符号; SymbolPeriod - 选择指标从中获取数据的时段; IndicatorColor - 指示器颜色; HorisontalShift - 由指标绘制的报价移动指定的柱数; Inverse - true 反转引号,false - 原始视图; ChartVerticalShiftStep - 图表垂直移动(键盘上的向上/向下箭头); 接下来是文本字段的设置,您可以在其中输入日期,您可以通过按“回车”立即跳转到该日期。 接下来是文本字段的设置,您可以在其中输入日期,您可以通过按“回车”立即跳转到该日期。
Welcome to the Ultimate Harmonic Patterns recognition indicator that is focused to detect advanced patterns. The Gartley pattern, Bat pattern, and Cypher pattern  are popular technical analysis tools used by traders to identify potential reversal points in the market. Our Ultimate Harmonic Patterns recognition Indicator is a powerful tool that uses advanced algorithms to scan the markets and identify these patterns in real-time. With our Ultimate Harmonic Patterns recognition Indicator, you
Stormer RSI 2
Ricardo Rodrigues Lucca
This strategy was learned from Stormer to be used on B3. Basically, 15 minutes before closing the market, it will check RSI and decided if it will open an position. This strategy do not define a stop loss. If the take profit reach the entry price it will close at market the position. The same happens if the maximal number of days is reached. It is created to brazilian people, so all configuration are in portuguese. Sorry Activations allowed have been set to 50.
!! 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 Butt
该产品的买家也购买
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
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 WebSocket Connections from a single program. Various Log Levels for error tracing Can be synchronized to MQL5 Virtual Hosting . Completely native to
WalkForwardOptimizer MT5
Stanislav Korotky
3.86 (7)
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.
该库将允许您使用任何 EA 来管理交易,并且非常容易集成到任何 EA 上,您可以使用描述中提到的脚本代码以及显示完整过程的视频演示示例自行完成。 - 下限价、止损限价和止盈限价订单 - 下达市场订单、SL 市场订单、TP 市场订单 - 修改限价订单 - 取消订单 - 查询订单 - 更改杠杆、保证金 - 获取位置信息 和更多... 租赁加密货币图表是可选的,除非您的 MT5 上没有币安图表。 对于脚本演示:单击此处 如果您想与交易面板进行交易,您可能对此产品感兴趣 该产品是加密图表的插件 该库将允许您使用任何 EA 来管理交易,并且非常容易集成到任何 EA 上,您可以使用描述中提到的脚本代码以及显示完整过程的视频演示示例自行完成。 - 下限价、止损限价和止盈限价订单 - 下达市场订单、SL 市场订单、TP 市场订单 - 修改限价订单 - 取消订单 - 查询订单 - 更改杠杆、保证金 - 获取位置信息 和更多... 租赁加密货币图表是可选的,除非您的 MT5 上
MetaCOT 2 CFTC ToolBox MT5
Vasiliy Sokolov
3.67 (3)
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
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
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
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 c
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, Stop-Limit and Stop-Market. Support margin trading. Automatically display the chart on the screen. Usage: - Open MQL5 demo account - Move BinanceLib.ex5 from folder \MQL5\Scripts\Market to MQL5\Libraries - Download Header   file and EA sample https://www.mql5.com/en/code/download/34972_260999.zip Copy Binance.mqh header file to folder \MQL5\Include Copy  BinanceEA-
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
The library is used to develop automatic trading on Binance Futures Market from MT5 platform. Support all order types: Limit, Market, Stop-Limit, Stop-Market , StopLoss and TakeProfit. Automatically display the chart on the screen. Usage: - Open MQL5 demo account - Move BinanceFuturesLib.ex5 from folder \MQL5\Scripts\Market to MQL5\Libraries -  Download Header file and EA sample https://www.mql5.com/en/code/download/34976_252386.zip Copy BinanceFutures.mqh header file to folder \MQL5\Include C
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
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 (2)
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
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 installa
This is standard library built for flexible neural Networks with performance in mind. Calling this Library is so simple and takes few lines of code:    matrix Matrix = matrix_utils.ReadCsv( "Nasdaq analysis.csv" );       matrix x_train, x_test;    vector y_train, y_test;         matrix_utils.TrainTestSplitMatrices(Matrix,x_train,y_train,x_test,y_test, 0.7 , 42 );    reg_nets = new CRegressorNets(x_train,y_train,AF_RELU_,HL, NORM_MIN_MAX_SCALER); //INitializing network       reg_nets.RegressorN
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 cl
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 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
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   a
This is an EXPERT with a FOCUS on LEARNING and PROFESSIONAL DEVELOPMENT!!! The idea of this product is to commercialize the source code, allowing those who want to develop their own robots, or start a professional activity developing customized experts, to have a reference source code that helps them in the learning and development process. This source code will be increased, that is, new functionalities will be created, thus allowing the project to continue evolving. For every 10 sales a new v
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>       //--- 包含用于A
Nmt5
Liang Qi Quan
这段代码是一个简单的交易专家顾问(Expert Advisor)示例,主要功能如下: 使用两个移动平均线(MA)作为交易信号: 快速MA(FastMA)和慢速MA(SlowMA) 初始化函数(OnInit): 创建两个MA指标句柄 设置数组为时间序列模式 清理函数(OnDeinit): 释放指标句柄,防止内存泄漏 主要交易逻辑(OnTick): 获取最新的MA值 判断趋势和交易信号 在无持仓时执行交易 交易规则: 上升趋势+买入信号时开多单 下降趋势+卖出信号时开空单 使用固定的止损和止盈点数 风险管理: 使用输入参数设置交易手数、止损和止盈 每次只允许一个持仓(inTrade变量) 使用MQL5的Trade库进行交易操作,简化了下单过程 这个EA适合初学者学习,展示了基本的EA结构和简单的交易策略实现方法。但在实际使用前,还需要进行更多的测试和优化。
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
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 WebSocket Connections from a single program. Various Log Levels for error tracing Can be synchronized to MQL5 Virtual Hosting . Completely native to
WalkForwardOptimizer MT5
Stanislav Korotky
3.86 (7)
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.
该库将允许您使用任何 EA 来管理交易,并且非常容易集成到任何 EA 上,您可以使用描述中提到的脚本代码以及显示完整过程的视频演示示例自行完成。 - 下限价、止损限价和止盈限价订单 - 下达市场订单、SL 市场订单、TP 市场订单 - 修改限价订单 - 取消订单 - 查询订单 - 更改杠杆、保证金 - 获取位置信息 和更多... 租赁加密货币图表是可选的,除非您的 MT5 上没有币安图表。 对于脚本演示:单击此处 如果您想与交易面板进行交易,您可能对此产品感兴趣 该产品是加密图表的插件 该库将允许您使用任何 EA 来管理交易,并且非常容易集成到任何 EA 上,您可以使用描述中提到的脚本代码以及显示完整过程的视频演示示例自行完成。 - 下限价、止损限价和止盈限价订单 - 下达市场订单、SL 市场订单、TP 市场订单 - 修改限价订单 - 取消订单 - 查询订单 - 更改杠杆、保证金 - 获取位置信息 和更多... 租赁加密货币图表是可选的,除非您的 MT5 上
GetFFEvents MT5 I tester capability
Hans Alexander Nolawon Djurberg
Want to get all events like Previous/Forecast/Actual values for each news to analyze/predict it? By this simple library you can do it easily,Just import/integrate the library into your system,then get all possible values for each news   Even In Strategy Tester   . Note: Please add the address " https://www.forexfactory.com/ " of news feed at your MT5 tab > Tools > Options > Expert Advisors > Check Allow web request for listed URL. Since the WebRequest() function can't be called from indicator ba
MetaCOT 2 CFTC ToolBox MT5
Vasiliy Sokolov
3.67 (3)
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
作者的更多信息
Smart Peak Bottom
Xiaoyu Huang
5 (2)
这是一个清晰的判断顶部和底部的指标,用于盘整有很好的效果。 促销价 49$ → 59$ 特点 很好的判断顶部和底部 不重绘,不漂移 快速计算,不卡 丰富的提醒模式 多个参数和颜色可调整 参数  "======== Main ========" HighLowPeriod1        = 9 HighLowPeriod2       = 60 HighLowPeriod3       = 34 HighLowEMAPeriod  = 4 MASignalPeriod       = 5 "======== Notify ========" UseAlertNotify              = true; UseMetaQuotesIDNotify = true; UseMailNotify               = true; NotifySignalMode          = Change Color and Check Level; HighLevel                     = 80; LowLevel               
这个指标采用经典的MACD和Zigzag结合用于检测价格和指标的背离,并采用先进的人工智能技术检测背离的有效性。MACD是指标之王,Zigzag也是非常有用的指标,这个指标把两个指标结合起来,发挥两个指标的优势。检测背离存在概率的问题,通常背离了又背离,所有我们试图通过先进的人工智能技术判断背离的有效性,过滤掉无效的背离,然后通过多种方式提醒用户。 促销价:59$ 功能 1.MACD形式的Zigzag指标 2.检测价格和MACD指标背离 3.通过AI技术检测背离的有效性 4.背离信号预警提醒 5.背离信号手机提醒 6.背离信号邮件提醒 7.使用于多个周期 8.使用 强大的ONNX( Open Neural Network Exchange )模型格式 使用 底背离: 单MACD在下面交叉时,指标会检测出是否底背离,画出向上的箭头,并提醒 顶背离: 单MACD在上面交叉时,指标会检测出是否顶背离,画出向下的箭头,并提醒 输入参数 Fast EMA period               =  12;  Slow EMA period              =  2
WuKong EA
Xiaoyu Huang
这是一个长期稳定盈利的交易EA,风险很小,使用传统技术指标进行自适应的EA;这个EA主要是算法优化而不是参数优化,我们追求的是长期稳定的盈利,稳定的赚钱才是重要的事情。 新EA促销价: $199   → $299 特性 一次一单,不使用马丁,网格 经过长时间验证稳定盈利 固定止损自适应 使用限价单,减少滑点 集成ONNX,AI Boost 支持小资金 OneChartSetup 集成MT5的新闻过滤,可以测试新闻 适用于ICMarets,FTMO, Darwinex Zero 可以和其它EA一起使用 面向对象编程,程序框架经过5年测试 信号 https://www.mql5.com/zh/signals/2024466 使用 周期:M1 品种:GBPCAD,EURCAD,GBPUSD, EURSGD等 最小入金:$20 账户: ECN Hedge 推荐经纪商:IC Markets 等低点差的平台 参数 UseAutoMagic = true;自动生成MagicNumber MagicNumber = 33 UseMM = false;false Use LotFix,true u
简介 这是一款做回调的EA,检测趋势的背离,也就是缠中说禅理论的第一类买卖点,这个EA的盈利因子非常高,长期是稳定盈利的,这款EA使用动态网格交易,可以自适应行情。 新EA促销价: $99 → $149 Live信号 https://www.mql5.com/zh/signals/2196313 配置文件 https://c.mql5.com/6/954/Profit.set https://c.mql5.com/6/954/Low_Risk.set 特点 采用虚拟订单,可以自动调节 自适应行情 对点差和平台要求不高 采用动态网格,不使用马丁(程序可以设置) 可以和其它EA一起使用 面向对象编程,程序框架经过5年优化 使用 周期:M15 主要品种:GBPUSD,AUDUSD,AUDCAD 最小入金:$1000 账户: ECN Hedge   推荐经纪商:IC Markets, Pepperstone ,Tickmill,Darwinex等平台 建议使用VPS 我们的EA只在MQL5.com销售,其它地方的都是盗版。 购买后请及时联系我们。
货币强弱指标 货币强弱指标是判断趋势的强有力的工具,用于对比货币之间的强弱关系,并且很容易找到趋势货币对。 促销价49 特点 有效的区分货币的强弱 自动标识趋势货币 多周期 加载28个货币对 性能优化 指标用法 强势货币: 在上面,大于80的货币为强势货币。 弱势货币: 在上面,小于20的货币为强势货币。 举例 当EUR大于80且向上,USD小于20且向下,那么EURUSD就是上涨趋势。 当JPY大于80且向上,GBP小于20且向下,那么GBPJPY就是下跌趋势。 越上面的货币越强,越下面的货币越弱。 两端的货币组成的货币对通常都是强劲的趋势,而且会持续一段时间。 指标会自动检测并显示趋势货币。 参数 =========== Caculate Period ========= Period  用于计算强弱的周期 Caculate TimeFrame 时间周期M1到MN,可以用非当前周期 =========== Display Period ========= StartNum  显示的数量 TimeFrames 周期,和StartNum配合使用,例如 2
ChzhshchMACD
Xiaoyu Huang
缠中说禅 MACD 指标 四色双线MACD 显示柱子的面积的和 InpFastMA=12;               // Fast EMA period  InpSlowMA=26;               // Slow EMA period InpSignalMA=9;              // Signal SMA period InpAppliedPrice=PRICE_CLOSE;// Applied price  InpMaMethod=MODE_EMA;        //Ma_Method input bool               ChArea= false;               //chzhshch Area Fast EMA period 快线参数  Slow EMA period 慢线参数 Signal SMA period 信号线参数 应用价格 可选 缠论里面定义的趋势力度的对比,2段趋势进行对比,对比柱子面积的和 本指标计算了相应面积的和方便对比
介绍 这是一个夜间交易的EA,在21:00-22:00之间交易 长期实盘是盈利的 每次只交易一单,不会造成大的亏损 每一单都设置止损和止盈,不使用网格、马丁,也不使用其它高风险的资金管理 可同时用于多个币种 默认自动设置时区 特性 交易图表:M15 可交易的货币: EURUSD,GBPSUD,USDCAD,USDCHF,AUDCHF,EURGBP,EURCHF,USDJPY,EURCAD,EURAUD,GBPAUD,AUDJPY,EURJPY,GBPJPY,AUDUSD 最小入金:100USD 推荐经纪商:IC Markets,Peperstone,Darwinex,EXNESS等低点差的平台 信号 MQL5 Live :  https://www.mql5.com/zh/signals/1021524 参数 MagicNumber     魔法数 UseMM               是否使用资金管理 LotFix                UseMM == False时,固定手数 PercentageMM    UseMM == True时,按比例 Start
EEVCC Hedge 促销价: $59;激活 :10 简介 这是一个双向(同时买和卖)网格对冲交易的EA 长期实盘是盈利的 可同时用于多个币种 安全的盈利计算方式 特性 交易图表:H1 建议交易的货币:EURGBP、EURUSD 最小入金; 3000USD,建议10000USD,美分账户100USD 推荐经纪商:RofoForex,EXNESS等杠杆较高有美分账户的平台 链接: https://www.mql5.com/zh/users/maxlake/seller 参数 UseAutoMagic=true; 是否使用自动魔法数 MagicNumber=2;UseAutoMagic = false 设置魔法数 Lots =0.01;初始交易量 LotFactor =1.8; 网格倍增的倍数 NetGap =300;网格距离 TakeProfit =450; 止盈 StableDeep =3; 安全的网格层数,大于则自动计算止盈 MaxDeep =20; 最大网格层数 StartHour=0; 开始时间 StartMinute =0; 开始分钟 StopHour =23;结束时间 St
1天  促销价: $49    激活 :30 10天  促销价: $59    激活 :20 介绍 Quick View  快速查看一段时间的盈利情况,并显示统计情况 根据时间、魔法数、货币、注释快速过滤历史交易并统计 统计包括 Net Profit, LotTotal , Profit Factor, Short Trades(win %), Long Trades(win %) , Average Profit Trade等 实时刷新统计的数据 计算时间小于1秒 特性 1.两种时间过滤模式,根据天数过滤和根据开始、结束时间过滤 2.根据魔法数、货币、注释过滤历史交易 3.兼容白色和黑色主题 4.可以调整刷新的频率 例子                      Quick View ---------------------------------------------- 4000000335, Darwinex-Live,Real,Hedge Currency                        :    USD  Leverage         
Introduction 这是一个统计每天盈利的指标 Characteristic 可以根据货币、魔法数、注释统计 可以根据时间统计 可用于所有货币,所有周期 有白色和黑色两种主题 逆向排序 可以调整刷新频率 可以设置刷新到最新的时间 参数 nD                     =  30;                                     //  计算的天数 StartTime          =  D'2021.06.01 00:00:00';       //  开始时间 EndTime            =  D'2021.06.27 00:00:00';       //  结束时间 ToCurrent          =  true;                                   // 结束时间自动设置到最近 Reverse             =  true;                                   // 逆向排序 MagicNumber     =  0;   
SemiAuto Martin System 介绍 这个工具用于半自动马丁交易,点击面板下单由EA进行仓位的管理 只需决定交易的方向,其它都交给EA管理 自动马丁,按照设定的网格加仓,也可以禁用这一功能 一键平仓 一键锁单功能 时间控制 预警声音提示 特性 交易图表:任意 可交易的货币:任意 自动止盈平仓 可以用于回测 清晰的面板显示 参数 主要设置参数 LogLevel               = LOG_LEVEL_INFO; //写日志的级别 UseAutoMagic      = true;                      //是否使用魔法数 MagicNumber        = 6;                           //设置魔法数 0-2000 Lots                       = 0.01; //初始交易量 UseMartin             = true; //是否使用马丁功能 Booster                 = 1.7;   //加仓的倍数 NetGap     
EEVCC Info
Xiaoyu Huang
介绍 这是一个交易助手,信息面板类的指标,集合货币统计信息、账户统计信息、仓位信息、服务器和本地时间、货币强弱、K线剩余时间、支撑和阻力线,服务器时间偏移,货币波动率等功能。 可用于所有类型的账户和货币。 优秀的性能,占用的资源非常少 可以自定义位置、颜色、字体大小 任意模块可单独显示或禁用 特性 1.货币统计信息 日线的Open、High、Low、Close 日线当天的High-Low 日线昨天的High-Low 5天的平均波动 10天的平均波动 20天的平均波动 50天的平均波动 当天的涨跌幅 当天的涨跌的Points 当前点差 货币和当前价位 UseSidebar     = true; SideFontSize  = 10; XLocation       = 90;   水平方向上的位置 YLocation       = 20;   垂直方向上位置 SideXGap       = 90;   水平方向上的间距 SideYGap       = 19;    垂直方向上间距 OpenColor1        = clrLime; OpenColo
Zen Fractal
Xiaoyu Huang
缠论分型指标 特点: 进行了彻底的包含关系的处理 可以方便的使用EA调用判断是否是顶底分型,以及 《教你炒股票93:走势结构的两重表里关系2》里的状态 用箭头显示顶底分型 用不同的颜色显示可能的笔 两相邻K线的包含关系给出一个定义:一根K线的高低点全部在其相邻K线的范围之内,那么这根K线和其相邻K线就为包含关系 K线走势图中,经常会看到一些有包含关系的K线。所谓包含处理,就是将有包含关系的两根K线合并成一根K线。 定义:三根经包含处理后的连续K线,若中间那根K线的高点最高,那么这种组合形态就叫顶分型。 定义:三根经过包含处理后的连续K线,若中间的那根K线的低点最低,那么这种组合形态就叫做底分型。 EA调用的指标数组: 0.Open合并后K线的开仓价 1.High 合并后的高点 2.Low 合并后的低点 3.Close合并后的平仓价 4.Up 顶分型 5.Down 底分型 6.Trend 向上还是向下(1,-1) 7.State 行进(1,0)
神龙通道,神龙指标,神龙系统,神龙MT5,神龙经典指标,神龙刷单系统,神龙All in One 神龙通道交易系统,这是一个经典的通道交易系统,很多用户强烈要求要MT5的版本。 这个程序已经过多个版本的性能优化,已经是比较流畅的系统了。 促销价   49$ → 59$ 红色区域,多头趋势,只做多,不做空 绿色区域,空头趋势,只做空,不做多 灰色区域,盘整走势,参考震荡指标双向操作 https://www.mql5.com/zh/market/product/96760 参数 "===== Main =====" int   CalcalueBars = 1000;//计算的bars数量 color BeltColor    = clrGray;//趋势Belt的颜色 bool  Display      = true;//是否显示填充 "=====MA Channel====="//最外层的通道指标 int    InpHalfLenght    = 100; int    ATRPeriod        = 200; double ATRMultipli
Gold Digger AI
Xiaoyu Huang
5 (4)
这是一个长期稳定盈利的黄金交易EA,使用传统技术指标并用AI进行自适应的EA。 新EA促销价:$199 → $249 特性 一次一单 固定止损 自适应 夜间交易 优化滑点 新闻过滤 适用于FTMO,Darwinex Zero 可以和其它EA一起使用 面向对象编程,程序框架经过5年测试 信号 https://www.mql5.com/zh/signals/2211776 https://www.mql5.com/zh/users/maxlake/seller 使用 周期:M15 品种:XAUUSD,XAUEUR,XAUCHF,XAUJPY,Gold 最小入金:$50 账户: ECN Hedge 推荐经纪商:IC Markets, Pepperstone ,Tickmill,Darwinex低点差的平台 建议使用VPS 参数 UseAutoMagic = true;自动生成MagicNumber UseMM = false;false Use LotFix,true use PercentageMM LotFix = 0.01 PercentageMM=10.0; lot =Per
这是一个非常实用的图表同步对比工具,使多个品种图表保持一样的起始时间、 周期、缩放级别、 同时滚动。 促销价 $39→$59 特点 采用事件驱动,而不是OnTimer,同步非常快速 占用资源小 方便相似品种快速对比 有多年的使用并优化历史 参数 SyncPos 是否同步起始时间 使用 把Chart Compare加载到每一个图表,第一个图表会显示Main。 只需要操作Main图表,其它的图表都会同步成和Main图表一样。 建议使用窗口平铺,所有的图表都使用同一个模板。 Chart Compare,图表同步,多窗口工具,实用工具,图表对比,MT5货币强弱工具,货币交易盈利工具,日内交易实用工具,日内交易图表对比,日内交易盈利之路,快速对比盈利工具,图表交易工具,Forex Chart Compare.
筛选:
无评论
回复评论
版本 1.7 2023.05.07
增加了校验