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

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
| 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
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
Hamster Scalping mt5
Ramil Minniakhmetov
4.7 (187)
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 - 第二个指标值范围的上
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.67 (3)
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,
Mine Farm
Maryna Kauzova
5 (1)
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,
KopierMaschine - локальный копировщик сделок между различными счетами MetaTrader 4 и MetaTrader 5 в любом направлении расположенных на одном компьютере с интуитивно понятным интерфейсом. Направления копирования: MT4 --> MT5 MT4 --> MT4 MT5 --> MT5 MT5 --> MT4 для копирования между терминалами MetaTrader 4 и   MetaTrader   5 необходимо приобрести версию продукта   KopierMaschine  для    MetaTrader  4 Особенности Программа работает в двух режимах Master и Slave На один подчиненный счет можно коп
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
Owl Smart Levels MT5
Sergey Ermolov
4.47 (36)
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.58 (24)
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
Ziwox Fundamental Trader Ziwox Fundamental Trader 是一个交易助手,可帮助金融市场交易者根据 EA 信息数据做出明智的决策。 该 EA 使用在线资源来捕获必要的信息,例如货币的基本面偏差、货币对的零售交易者情绪比率、银行和机构预测、COT 报告数据以及复杂 EA 面板中的其他数据。 简而言之,它是一个集成的外汇数据源和信息,可帮助手动交易者做出更好的决策。 除了这个助手,它也是一个全自动交易系统,它使用基本面和技术数据自动进行交易对。 [   User guide & installation   |  EA components  |   Set file |    Join EA channel (Link in bio)  |  Live signal  |  All product  ] 组件和工具: 您进行交易所需的所有必要信息都在这里收集为一组集成到数据面板中的外汇数据流组件。 每个组件单独充当交易辅助指标或解释性市场报告,以帮助交易者做出决策。 这些组件提供了一个前景,但所有组件的协同作用形
Gyroscopes mt5
Nadiya Mirosh
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
该指标建立当前报价,可以与历史报价进行比较,并在此基础上进行价格走势预测。指示器有一个文本字段,用于快速导航到所需日期。 选项: 符号 - 选择指标将显示的符号; SymbolPeriod - 选择指标从中获取数据的时段; IndicatorColor - 指示器颜色; HorisontalShift - 由指标绘制的报价移动指定的柱数; Inverse - true 反转引号,false - 原始视图; ChartVerticalShiftStep - 图表垂直移动(键盘上的向上/向下箭头); 接下来是文本字段的设置,您可以在其中输入日期,您可以通过按“回车”立即跳转到该日期。 接下来是文本字段的设置,您可以在其中输入日期,您可以通过按“回车”立即跳转到该日期。
Exclusive FOREX account HEDGE FuzzyLogicTrendEA is based on fuzzy logic strategy based on  analysis 5 indicators and filters. When the EA analysis all this indicators, it decides, based on its fuzzy strategy, which trade will be better: sell or buy. As additional functions, it´s possible defines spread maximum, stop loss and others. Recomm. Symbol: EURUSD, AUDUSD, GBPUSD, NZDUSD, USDCAD, AUDCAD, EURCAD e USDJPY Recomm. timeframe: H1. Backtest were done on EURUSD, H1, 01/07/2023 - 26/0
Daily Retracement EA
Brieuc Francois Constant Leysour
This expert advisor is engineered to capitalize on market patterns. It employs a sophisticated algorithm to filter the market, detect its trend and exploit retracement patterns effectively. This is a REAL trading strategy, it involves NO MARTINGALE, NO GRID, NO HEDGING or other dangerous methods. All trades have a hard stop loss, and you can choose how much risk to take per trade. LIMITED TIME SALE! Secure your copy today for only $99. Available at this price until April 14, then the sale will
ET9 for MT5
Hui Qiu
2.33 (3)
ET9  新上架,推出促销活动 仅剩几个副本,599美元 下一个价格:799美元 最终售价:1599美元 最佳黄金(XAUUSD)自动交易程序, 它也可以同时用于GBPUSD! ET9 MT5 版 更新4.20 !!   重要更新: 启用自动利润平仓,可以修改ET1策略的各种参数,优化 ET1策略的稳定性 包括免费的 ET1 MT5版:  https://www.mql5.com/zh/market/product/113131 Dragon Ball MT5版 更新 v1.30 !!  https://www.mql5.com/zh/market/product/116514 描述 ET9 MT5 版是一款在( XAUUSD) 黄金 与( GBPUSD) 英镑 交易中拥有9合一交易策略的强大自动交易程序 其中包括一个经典趋势策略ET1,另外8个突破策略,在黄金价格实现日线突破时尤为有效! 请在可视模式下对 ET9 进行回测,以便了解 ET9 的工作原理是多么专业。回测过程可能会很慢,请耐心等待 ET9这9大策略结合在一起 ,与其它一些虚假“完美回测”EA有着很大的区别:这
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
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
LaserAlgo EA MT5
Hamza Ashraf
2.75 (4)
Traders are humans. The markets are controlled by "fear" and "greed" and there are patterns for it. We found these patterns via years of writing and monitoring algorithm, and we now introduce to you our LaserAlgo MT5. We used our 7 years’ experience in the markets to convert this concept into a fully AI algorithm.   Link to MT4 version: https://www.mql5.com/en/market/product/89549 Link to live run of EA: https://www.mql5.com/en/signals/1780127 This is a promotional price and will be increased
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
Powerful Price Action Engulfing Doji Robot MT5 version Package Contains: (Price includes both versions) SET files in Comment section. 1. Powerful Price Action EA Advanced Version with NomadTrader Money Management System: --Full EA with all adjustable settings and parameters to tweak or optimize. --It uses the NomadTrader Money Management system with Dynamic exit strategy based on Price %(percent) based Stop loss, Take Profit and Adjustable Time Filter to 1 minute preciseness, all parameters ar
The Trendline Trade Panel was created to make it easier to train forex trading skills in backtester and at the same time make it easier to live trade using trendlines with the push of a button. This ea is perfect for beginners who want to learn to trade manually because all of its features are equipped with basic tools for trading forex. Other uses for Trendline Trade Panel: + Can be used to perform recovering loss positions made by other EA or positions that open manually. Fill in magic number
该产品的买家也购买
该库将允许您使用任何 EA 来管理交易,并且非常容易集成到任何 EA 上,您可以使用描述中提到的脚本代码以及显示完整过程的视频演示示例自行完成。 - 下限价、止损限价和止盈限价订单 - 下达市场订单、SL 市场订单、TP 市场订单 - 修改限价订单 - 取消订单 - 查询订单 - 更改杠杆、保证金 - 获取位置信息 和更多... 租赁加密货币图表是可选的,除非您的 MT5 上没有币安图表。 对于脚本演示:单击此处 如果您想与交易面板进行交易,您可能对此产品感兴趣 该产品是加密图表的插件 该库将允许您使用任何 EA 来管理交易,并且非常容易集成到任何 EA 上,您可以使用描述中提到的脚本代码以及显示完整过程的视频演示示例自行完成。 - 下限价、止损限价和止盈限价订单 - 下达市场订单、SL 市场订单、TP 市场订单 - 修改限价订单 - 取消订单 - 查询订单 - 更改杠杆、保证金 - 获取位置信息 和更多... 租赁加密货币图表是可选的,除非您的 MT5 上
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
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.
Native Websocket
Racheal Samson
5 (2)
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
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
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. 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 population algorithms.  High-speed calculation in HMA guarantees unsurpassed accuracy and high search capabilities,
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
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
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
This library implements a few functions to simplify the programming of Expert Advisors. * Build your own EA for MT5 / Binance, with a easy support for multisymbol / multytimeframe * Different SFE EAs based on the library provided. * Base signals of SFE EAs are inlcuded in base version. All the Pro filters and management are included in the base version all the 2022. * Customize the provided SFE Lib EA by changing or implementing its rules.. * Review the existing or ask for video tutorials to
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
该库将允许您使用任何 EA 来管理交易,并且非常容易集成到任何 EA 上,您可以使用描述中提到的脚本代码以及显示完整过程的视频演示示例自行完成。 - 下限价、止损限价和止盈限价订单 - 下达市场订单、SL 市场订单、TP 市场订单 - 修改限价订单 - 取消订单 - 查询订单 - 更改杠杆、保证金 - 获取位置信息 和更多... 租赁加密货币图表是可选的,除非您的 MT5 上没有币安图表。 对于脚本演示:单击此处 如果您想与交易面板进行交易,您可能对此产品感兴趣 该产品是加密图表的插件 该库将允许您使用任何 EA 来管理交易,并且非常容易集成到任何 EA 上,您可以使用描述中提到的脚本代码以及显示完整过程的视频演示示例自行完成。 - 下限价、止损限价和止盈限价订单 - 下达市场订单、SL 市场订单、TP 市场订单 - 修改限价订单 - 取消订单 - 查询订单 - 更改杠杆、保证金 - 获取位置信息 和更多... 租赁加密货币图表是可选的,除非您的 MT5 上
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
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.
Native Websocket
Racheal Samson
5 (2)
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
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
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. 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 population algorithms.  High-speed calculation in HMA guarantees unsurpassed accuracy and high search capabilities,
作者的更多信息
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               
PeakBottom EA
Xiaoyu Huang
4.2 (5)
这是一个长期稳定盈利的交易EA,风险很小,使用传统技术指标进行自适应的EA,我们看到市场有众多的EA使用AI进行过度拟合,测试看起来很好,但是实盘却是亏损的;另一种是采用马丁,一段时间内资金曲线是向上的,但是总是难逃爆仓的命运;这些都不是我们想要的,我们是要算法优化而不是参数优化,参数优化可以拟合出漂亮的曲线,但是对于未来却亏得一套糊涂,我们追求的是长期稳定的盈利,哪怕短时间的回撤,赚钱永远比测试重要。 特性 一次一单 固定止损自适应 OneChartSetup 新闻过滤 适用于FTMO, Darwinex Zero 可以和其它EA一起使用 面向对象编程,程序框架经过5年测试 信号 https://www.mql5.com/zh/signals/2024466 使用 周期:M1 品种:GBPCAD,EURSGD,USDSGD,USDCHF 最小入金:$50 账户: ECN Hedge 推荐经纪商:IC Markets 低点差的平台 建议使用VPS 参数 UseAutoMagic = true;自动生成MagicNumber MagicNumber = 19 UseMM = fal
神龙通道,神龙指标,神龙系统,神龙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
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)
Gold Digger AI
Xiaoyu Huang
4.8 (5)
这是一个长期稳定盈利的黄金交易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
这个指标采用经典的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
筛选:
无评论
回复评论
版本 1.7 2023.05.07
增加了校验