• 概述
  • 评论
  • 评论

Fast Sliding SMA algorithm

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 https://en.wikipedia.org/wiki/Moving_average.

In simple terms, the SMA is the average value of a sequence of data over a specified time period. This period can be in days, weeks, hours, etc., depending on the context and analysis objectives.

For the basic calculation of the Simple Moving Average (SMA) with a fixed window size n, the standard asymptotic time complexity is O(n). This means that the algorithm's execution time is linearly proportional to the size of the window or the number of data points.

However, the improvved version of the algorithm use a queue and has an execution asymptotic of O(1) for each new element, making the algorithm efficient compared to the linear asymptotic of O(n).  

The improved version of the moving average algorithm using a queue offers several advantages over the basic implementation:

  1. Constant Time for Each New Element: The algorithm ensures constant time (O(1)) for adding new elements and removing old elements from the queue, making it efficient regardless of the window size.

  2. Efficient Update Operations: Leveraging a queue enables efficient addition of new elements at the end and removal of old elements from the beginning, reducing the number of operations required for updating the average.

  3. Optimized Window Management: The queue serves as an effective data structure for window management in the moving average, eliminating the need to recalculate the entire average when adding a new element.

  4. Increased Efficiency with Large Data Sets: Constant time for each new element ensures the algorithm remains efficient even when processing large volumes of data.

  5. Easy Implementation and Maintenance: The use of a queue makes the code more understandable and easy to maintain, avoiding the necessity of iterating through the entire window for updating the average.

In summary, the enhanced algorithm provides more efficient data processing while maintaining a fixed window for the moving average.

Import section:

#import "FastSlidingSMA.ex5"

bool InitNewInstance(string key, const long windowSize); // Initialize a new instance of FastMovingSMA

bool PushValue(string key, const double &value); // Push a single value into the FastMovingSMA instance

bool PushArray(string key, double &values[]); // Push an array of values into the FastMovingSMA instance

bool PushVector(string key, vector &values); // Push a vector of values into the FastMovingSMA instance

bool GetSMA(string key, double &sma); // Get the value of the moving average from the FastMovingSMA instance

bool ClearInstance(string key); // Clear the FastMovingSMA instance

bool GetTopValue(string key, double &topValue); // Get the top value from the FastMovingSMA instance

bool GetPoppedValue(string key, double &poppedValue); // Get the popped value from the FastMovingSMA instance

#import

How to use code example:

#property copyright "Copyright 2023, Andrei Khloptsau Ltd."
#property link      "https://www.mql5.com"
#property version   "1.00"

#import "FastSlidingSMA.ex5"
    bool InitNewInstance(string key, const long windowSize);
    bool PushValue(string key, const double &value);
    bool PushArray(string key, double &values[]);
    bool PushVector(string key, vector &values);
    bool GetSMA(string key, double &sma);
    bool ClearInstance(string key);
    bool GetTopValue(string key, double &topValue);
    bool GetPoppedValue(string key, double &poppedValue);
#import

const string INSTANCE_KEY = "MyInstance";

input int NumberOfBars = 5;

int OnInit()
{
    if (!InitNewInstance(INSTANCE_KEY, NumberOfBars))
        return INIT_FAILED;
        
    double closePrices[];
    ArraySetAsSeries(closePrices, true);
    if (CopyClose(_Symbol, _Period, 0, NumberOfBars, closePrices) > 0)
        PushArray(INSTANCE_KEY, closePrices);
    else
        return INIT_FAILED;
  
    return INIT_SUCCEEDED;
}

void OnDeinit(const int reason)
{
    ClearInstance(INSTANCE_KEY);
}

void OnTick()
{
    double currentPrice = iClose(_Symbol, _Period, 0);
    PushValue(INSTANCE_KEY, currentPrice);

    double sma;
    if (GetSMA(INSTANCE_KEY, sma))
    {
        Print("Current value SMA: ", sma);
    }
}


推荐产品
这个库用于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[],da
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
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 importan
Ichimoku Map MT5
Pavel Verveyko
Ichimoku Map (instant look at the markets) - built on the basis of the legendary Ichimoku Kinko Hyo indicator. The task of the Ichimoku Map is to provide information about the market strength on the selected time periods and instruments, from the point of view of the Ichimoku indicator. The indicator displays 7 degrees of buy signal strength and 7 degrees of sell signal strength. The stronger the trend, the brighter the signal rectangle in the table. The table can be dragged with the mouse. The
Seasonal Pattern Trader
Dominik Patrick Doser
Disclaimer : Keep in mind that seasonal patterns are not always reliable. Therefore, thoughtful risk management is crucial to minimize losses.  Seasonal patterns in the financial world are like a well-guarded secret that successful investors use to their advantage. These patterns are recurring price movements that occur during specific periods or around special events. Additionally, there are also intraday patterns that repeat. For example, Uncle Ted from Forex Family suggests examining previou
Floating peaks oscillator - it the manual trading system. It's based on Stochastik/RSI type of oscillator with dynamic/floating  overbought and oversold levels. When main line is green - market is under bullish pressure, when main line is red - market is under bearish pressure. Buy arrow appears at the floating bottom and sell arrow appears at floating top. Indicator allows to reverse signal types. Main indicator's adjustable inputs : mainTrendPeriod; signalTrendPeriod; smoothedTrendPeriod; tre
Hrum
Yvan Musatov
The Hrum indicator was created to neutralize temporary pauses and rollbacks. It analyzes price behavior and, if there is a temporary weakness in the trend, you can notice this from the indicator readings, as in the case of a pronounced change in trend direction. Entering the market is not difficult, but staying in it is much more difficult. With the Giordano Bruno indicator and its unique trend line, staying on trend will become much easier! Every rise and every fall is reflected in your emoti
Supimpa B3 Trader
Renato Takahashi
Supimpa B3 Trader é o robô de negociação automatizada para a bolsa brasileira B3, para os ativos miniíndice WIN e minidólar WDO. A estratégia de negociação é baseada na média VWAP - Volume Weighted Average Price - que utiliza uma média ponderada dos preços em relação ao volume de negociação em cada vela. O robô é de configuração simples, com entrada do valor do período da média de análise e do takeprofit e stoploss fixos. Além disso, pode-se configurar também o número de contratos, configuração
Mirai WDO B3
Andre Chagas
Mirai WDO B3 Professional, 100% automated MINI DOLLAR FUTURE (WDO) expert system for MetaTrader 5 platform. Brazilian Stock Exchange Market (B3). Scalping strategy (Micro Frequency).   Types of orders for entries and exits: “Limit” entry orders (preached in the order book). Gain “Limit” exit orders (Holded in the order book). Exit Orders Loss “Stop” (“Trigger for Closing”). Redundancy of orders as security. “OCO” orders (Order-Cancel-Order).     Available settings: Daily profit and loss manage
fully automated EA designed to trade FOREX only. Expert showed stable results  with  low drawdown . EA designed to trade on 1H (One Hour) Chart. use of support or resistance as stop lose , by using different time frame can give a bigger stop lose. support or resistance levels are formed when a market’s price action reverses and changes direction, leaving behind a peak or trough (swing point) in the market. Support and resistance levels can carve out trading ranges.  Renko  designed to filter out
The Kraken
Chimdike Obinna Nkwo
THE KRAKEN will mine   for you.  Recommended Pairs: EURUSD,m5; GBPUSD,m5; USDJPY,m5; USTEC,m5; XAUUSD,m5; BTCUSD,m5 OPTIMISED FOR PROP FIRMS Make recommended changes on input before use This EA is a scalper. It uses support and resistance levels; high and low levels to place orders. When the orders are executed, it'll trail your stop loss to avoid losing positions. RENT IT FOR 6 MONTHS. YOUR PROFIT FOR SIX MONTHS WILL EARN YOU THE BOT. NOTE: Use a broker that offers very low to no spreads.
EA Alpha Expert
Jonatas Da Silva Cruz
Eu tentei muitas coisas na negociação forex no passado e aprendi muito nos últimos 3,5 anos. Tentei   varias  ferramentas para negociação manual e nao tive muito sucesso. Sempre fui fascinado com o mercado forex, . A integração dos dados de volume é uma característica única e aumenta muito a qualidade das decisões comerciais do Expert Advisor. E sim, você tem que lembrar que os resultados do backtest não são os mesmos que resultados ao vivo. Mas aqui eles estão muito próximos. agora o único Exp
Etrend
Younes Bordbar
Introducing Etrend – Identifying Strong Market Trends Etrend is an intelligent trading robot specifically designed to detect and trade strong market trends . It avoids trading in ranging markets and focuses on capitalizing on high-momentum movements. Why Choose Etrend? Trend-Based Trading – Only trades in trending markets and avoids ranging conditions. Optimized Risk Management – Uses a 1:2 risk-to-reward ratio for better control over losses and maximizing potential gains. Minimum 2
SilverPulse AI
Babak Alamdar
3.64 (14)
使用新工具实现交易多元化,您的投资组合将会更加强大    Live Signal 1    Live Signal 2 此价格为促销期间临时价格,稍后将上调 最终价格:5000 美元 当前价格仅剩几份,下一个价格是 -->> 745 $    Welcome to the  SilverPulse AI Hey, I'm SilverPulse AI!  这是第一个最智能的机器人,可以使用 XAGUSD、XAGEUR 和 XAGAUD 等完整货币对进行白银或 XAG 交易!我每天都会查看新闻,并利用任何机会进行技术、基本面和情绪确认!钱就会从急躁商人的口袋里流到病人的口袋里! 在这个市场上,你将与聪明人竞争!他们想拿走你的钱,你也想拿走他们的钱!利用最准确、最活跃的市场分析,我会尽力而为!祝你好运! Highlights: 简单易用:在每个交易品种图表(XAGUSD、XAGEUR 和 XAGAUD)上一一附加具有任何时间范围的 EA,无需更改幻数) 无网格/无鞅/无风险资金管理 最低账户余额: 最低账户余额:合约规模为 1000 的经纪商为 100 美元,合约规模为 5000
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 p
(加密货币图表) 它带来与您指定的柱线数量一样多的历史记录,并开始直接显示即时数据。 提供在所有时间范围内工作的机会。 允许您使用多个符号。 这个应用程序是一个后台服务。 它下载市场观察屏幕上以“S”开头的所有交易品种的历史记录并显示报价数据。 自动将币安现货实时交易数据传输至MT5。 运行链接中的脚本以使用该程序。 https://www.mql5.com/en/market/product/69000 此程序需要安装。 https://www.mql5.com/tr/market/product/73887 您应该允许来自工具菜单 >> 选项 >> 智能交易系统的 WebRequest 并添加 URL: https://api.binance.com https://fapi.binance.com
| 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
Sorgo EA MT5
Artsiom Rekets
5 (1)
Sorgo EA - 交易算法基于价格失衡时回归平均值的概念。没有特殊的条件,没有有毒的方法,没有漂亮的历史图表。易于理解的交易,独特的算法,其任务是在今天产生结果。 Live signal: v.2.6   ↦ Live signal: v1.1  ↦ MetaTrader 4 版本 : https://www.mql5.com/ru/market/product/93740 参数:   https://www.mql5.com/ru/blogs/post/758300 一些特点 内置新闻过滤器,提供各种自定义选项。 所有交易都有止损保护,不会为了漂亮的图表和恢复的希望而累积损失.. 不使用与特殊交易条件(点差、滑点、交易水平..)相关的方法。 自定义选项允许您更改风险和收益的组合。您可以选择自己的交易模式。  职位描述 Sorgo EA 在一个位置可打开一到三个订单(取决于您的设置)。它们之间的距离取决于市场条件,通常每个仓位的距离都不同。每个订单都有止损和止盈。SL 是自动计算的,也取决于特定的市场条件。平仓不取决于盈利或亏损水平,而是取决于是否存在平仓模式。平仓算法不使用网
AI forex robot is an advanced trading tool that utilizes sophisticated algorithms and machine learning techniques to analyze market data and make informed trading decisions. One of the key indicators it uses is the envelopes indicator, which plots a pair of parallel lines, usually representing a standard deviation away from a moving average. This indicator helps the robot to identify potential trend reversals or breakouts by highlighting areas of support and resistance. By continuously monitorin
RS 波 动率专家顾问 (RSV EA) MT5 重要的初步 说明: RS 波 动率 EA MT5 (RSV EA) 未 过度拟合。 RS 波 动率 EA MT5 (RSV EA) 的程序代 码基于过去几年的诚实外汇交易。 RS 波 动率 EA MT5 是一款 简单的趋势跟踪专家顾问 , 因此非常适合交易初学者。 RSV EA 是一款根据 RS 波 动率 MTF 指 标信号生成订单的 EA 。 RSV EA 交易第一笔 订单并在满足过滤条件后立即构建网格。网格的间距可以根据信号设置 , 也可以设置为固定间距值。利润可以通过 TP by Money ( Params 最小利 润目标 ) 设置。 RSV EA 直接在 图表中显示单个交易 / 序列的利 润。 使用 RS Volatility EA 进行交易的一般要求 最小 账户规模 : 3000 美元 , 例如每次交易 1 对 , 最低起始手数为 0.05 杠杆 1:500 不适用于 净额账户和 ESMA 杠杆限制。 建 议使用原始点差账户和低延迟 VPS 。 RSV EA 适用于各种 经纪商的账户。 我 们推荐使用 Roboforex E
Gold Crazy EA MT5
NGUYEN NGHIEM DUY
Gold Crazy EA   is an Expert Advisor designed specifically for trading Gold H1/ EU M15. It use some indicators to find the good Entry. And you can set SL or you can DCA if you want. It can be an Scalping or an Grid/ Martingale depend yours setting. This EA can Auto lot by Balance, set risk per trade. You also can set TP/ SL for earch trade or for basket of trade. - RSI_PERIOD - if = -1, then the default strategy works, if >0, then the RSI strategy works - MAX_ORDERS - to trade with only 1 order,
CChart
Rong Bin Su
在外汇和金融市场中,快速反应和精准的决策至关重要。然而,常规的 MetaTrader 5 终端最低只支持 1 分钟图表,限制了交易者对市场波动的敏感度。为了解决这一问题,我们推出了全新的 秒级图表 K 线指标 ,让您在副图中轻松查看和分析 1 秒至 30 秒的市场动态。 主要功能 支持多种秒级周期 :该指标允许您选择以下周期,满足不同交易策略的需求: S1 : 1 秒 S2 : 2 秒 S3 : 3 秒 S4 : 4 秒 S5 : 5 秒 S10 : 10 秒 S15 : 15 秒 S20 : 20 秒 S30 : 30 秒 实时更新 :秒级图表将实时更新,确保您在每一刻都能获取到最新的市场信息,帮助您做出及时的交易决策。 用户友好的界面 :该指标在副图中显示,直观易用,您可以轻松切换不同的时间周期,快速分析市场走势。 适用人群 短线交易者 :适合高频交易和短线策略的交易者,通过秒级图表捕捉瞬息万变的市场机会。 技术分析师 :为技术分析提供更细致的数据支持,帮助您识别潜在的买入和卖出信号。 如何使用 将指标添加到您的图表上。 选择您希望观察的秒级时间周期。 实时监控市场动向,利用丰富
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 w
Guard Scalper
Entus Sofian
Guard Scalper EA is a Scalper Robot based on market trend analys. Guard Scalper EA will look for potential High Probability entries as trigger for entry into the market. Guard Scalper EA is good for use on pairs with low spreads such as EURUSD, GBPUSD, or USDJPY Recommendation : Please add and running  Guard Scalper   EA on low spread pairs such as EURUSD, GBPUSD, or USDJPY on M5 timeframes. You can running on that pairs simultanuously Attention : You can start to trade with $ 300 Minimum initi
Phoenix Rig EA MT5
Sof'ia Vlasova
4.4 (5)
Phoenix Rig EA: The Advanced Correlation Matrix Expert Advisor is a state-of-the-art trading tool that combines correlation matrices, Convolutional Neural Network (CNN), and Long Short-Term Memory (LSTM) to identify trading opportunities. Using cutting-edge machine learning algorithms, Phoenix Rig EA analyzes relationships between financial instruments, revealing hidden patterns and trends. By executing trades based on correlated and counter-trending assets, it maximizes risk-adjusted returns. T
NakaTrendBot
Ricardo De Andrade Nakano
介绍NakaTrendBot-您的终极趋势交易伙伴! 您是否厌倦了在市场变动时错失机会?不要再寻找了,NakaTrendBot就在这里,是您在动态交易趋势世界中信赖的盟友。 NakaTrendBot不仅仅是一个机器人;它是一个精密的算法强大器,设计用于精确检测趋势变化和整合。利用先进的机器学习算法和高级技术分析,NakaTrendBot不断扫描市场,以发现情绪和价格行动的微妙变化,使您能够保持领先并利用新兴趋势。 当NakaTrendBot感知到市场趋势变化时,它会迅速调整策略,确保您始终处于能够利用新方向的位置。无论市场是牛市、熊市还是整理市,NakaTrendBot都能够适应并在任何市场条件下蓬勃发展。 但这还不是全部-在整理期间,NakaTrendBot调整其方法以利用短期机会,即使市场安静时也最大限度地提高您的潜在收益。通过智能地管理风险和策略性地进出交易,NakaTrendBot帮助您以信心和精确性驾驭市场。 然而,记住风险管理的重要性是至关重要的。尽管NakaTrendBot可以提供宝贵的见解并精确执行交易,但最终,您需要确保您有效地管理风险并坚持纪律性的交易策
Agi FX V2
Iputu Agi Sumara Jaya
AGI FX V2 Trading activities often pose challenges, regardless of who you are. If you lack trading expertise and cannot control your emotions, you are likely to incur losses. Trading and investing can be daunting for you, but with an EA (Expert Advisor), you have the tools and guidance you need to make better, faster, and smarter decisions. Introducing AGI FX V2. AGI FX V2 is an automated trading tool that will replace you in conducting forex trading activities. AGI FX V2 utilizes a combination
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 the most
Sonic
Jalaluddin Raheemi
only 3 copies will be sold at the current price and then the price will increase to $399. Sonic EA is the result of studying and testing our best trading strategies and combining them with Artificial Intelligence technology. This EA is a perfect combination of quality, technology, intelligence, safety, and experience. This is just the start of this project, Every week our team works hard to improve this trading algorithm and add the best features to it.   Monitoring : Sonic MT5 1 Signal new
该产品的买家也购买
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.63 (8)
WalkForwardOptimizer library allows you to perform rolling and cluster walk-forward optimization of expert advisers (EA) in MetaTrader 5. To use the library include its header file WalkForwardOptimizer.mqh into your EA source code, add call provided functions as appropriate. Once the library is embedded into EA, you may start optimization according to the procedure described in the User guide . When it's finished, intermediate results are saved into a CSV file and some special global variables.
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
该库将允许您使用任何 EA 来管理交易,并且非常容易集成到任何 EA 上,您可以使用描述中提到的脚本代码以及显示完整过程的视频演示示例自行完成。 - 下限价、止损限价和止盈限价订单 - 下达市场订单、SL 市场订单、TP 市场订单 - 修改限价订单 - 取消订单 - 查询订单 - 更改杠杆、保证金 - 获取位置信息 和更多... 租赁加密货币图表是可选的,除非您的 MT5 上没有币安图表。 对于脚本演示:单击此处 如果您想与交易面板进行交易,您可能对此产品感兴趣 该产品是加密图表的插件 该库将允许您使用任何 EA 来管理交易,并且非常容易集成到任何 EA 上,您可以使用描述中提到的脚本代码以及显示完整过程的视频演示示例自行完成。 - 下限价、止损限价和止盈限价订单 - 下达市场订单、SL 市场订单、TP 市场订单 - 修改限价订单 - 取消订单 - 查询订单 - 更改杠杆、保证金 - 获取位置信息 和更多... 租赁加密货币图表是可选的,除非您的 MT5 上没有币安图表。 对于脚本演示: 单击此处 如果您想与交易面板进行交易, 您可能对
这是一个可以定时自动交易的EA。根据你设定的时间,精确到秒,可以设置最多下几单。下单buy或者Sell.可以设置值止盈止损点。并且可以设定在下单后多久平仓。一般都是用来做事件。祝你好运。 请看图片自己根据设定来使用。每一次使用请重新加载EA。不用的时候记得关闭EA按钮。 我来举个例子。比如英国央行利率决议。你在最后两秒下单(设置的是你本机的时间)。因为可能瞬间点差扩大,你可能不敢直接下最大手数,所以你可以选择小手分批从最后5秒开始进场。我相信做过的人知道我说的意思。因为我专业做这个已经十年。最近才做出了这个自动化EA。并且这里面有个检测就是你点击开始之后如果超过了你设定的时间十秒他就不会执行了。保证你的安全。你自己用DEMO账户测试几次你就知道我这个有多好用了!
The library is used to develop automatic trading on Binance Futures Market from MT5 platform. Support Binance Futures USD-M and COIN-M Support Testnet mode Support all order types: Limit, Market, StopLimit, StopMarket, StopLoss and TakeProfit Automatically display the chart on the screen Usage: 1. Open MQL5 demo account 2. Download Header file and EA sample https://drive.google.com/uc?export=download&id=17fWrZFeMZoSvH9-2iv4WDJhcyxG2eW17 Copy BinanceFutures.mqh to folder \MQL5\Include Copy  Bina
The library is dedicated to help manage your trades, calculate lot, trailing, partial close and other functions. Lot Calculation Mode 0: Fixed Lot. Mode 1: Martingale Lot (1,3,5,8,13) you can use it in different way calculate when loss=1 ,when profit=0. Mode 2: Multiplier Lot (1,2,4,8,16) you can use it in different way calculate when loss=1 ,when profit=0. Mode 3: Plus Lot (1,2,3,4,5) you can use it in different way calculate when loss=1 ,when profit=0. Mode 4: SL/Risk Lot calculate based on s
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
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 co
Goliath Mt5
Nicolokondwani Biscaldi
Goliath MT5 - scalper fully automated Expert Advisor for medium-volatile forex markets P roperties: The Library trades 10 currency pairs (USDCHF, EURCHF, EURGBP, AUDUSD, USDCAD, GBPUSD, EURUSD, NZDUSD, CADCHF, EURAUD, EURCAD, AUDJPY) The Library does not use martingale The Library sets a fixed stop loss and take profit for all orders The Library only trades a user input volume The Library can be installed on any currency pair and any timeframe Recommendations: Before using on a real account, t
Binance Library
Hadil Mutaqin SE
5 (1)
The library is used to develop automatic trading on Binance Spot Market from MT5 platform. Support all order types: Limit, Market, StopLimit and StopMarket Support Testnet mode Automatically display the chart on the screen Usage: 1. Open MQL5 demo account 2. Download Header   file and EA sample   https://drive.google.com/uc?export=download&id=1kjUX7Hyy02EiwTLgVi8qdaCNvNzazjln Copy Binance.mqh to folder \MQL5\Include Copy  BinanceEA-Sample.mq5 to folder \MQL5\Experts 3. Allow WebRequest from MT5
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
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
EA Toolkit
Esteban Thevenon
EA Toolkit   is a library that allows any developer to quickly and easily program Advisor experts. It includes many functions and enumerations such as trailing stop, lot, stop loss management, market trading authorisations, price table updates, trading conditions and many more. Installation + Documentation : You will find all the information to install this library and the documentation of its functions on this GitHub : https://github.com/Venon282/Expert-Advisor-Toolkit WARNING : The installat
Hello everyone! I am a professional MQL programmer , Making EAs, Indicators and Trading Tools for my clients all over the world. I build 3-7 programs every week but I seldomly sell any ready-made Robots. Because I am fastidious and good strategy is so few...  this EA is the only one so far I think its good enough to be published here.  As we all know, the Ichimoku indicator has become world popular for decades, but still, only few people knows the right way of using it, and if we check the clo
Applying these methods, I managed to arrive at a nuanced conclusion that is crucial to understanding the importance of unique strategies in contemporary trading. Although the neural network advisor showed impressive efficiency in the initial stages, it proved to be highly unstable in the long run. Various factors such as market fluctuations, trend changes, external events, etc. cause its operation to be chaotic and eventually lead to instability. With these experiences, I accepted the challenge
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
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
Nmt5
Liang Qi Quan
这段代码是一个简单的交易专家顾问(Expert Advisor)示例,主要功能如下: 使用两个移动平均线(MA)作为交易信号: 快速MA(FastMA)和慢速MA(SlowMA) 初始化函数(OnInit): 创建两个MA指标句柄 设置数组为时间序列模式 清理函数(OnDeinit): 释放指标句柄,防止内存泄漏 主要交易逻辑(OnTick): 获取最新的MA值 判断趋势和交易信号 在无持仓时执行交易 交易规则: 上升趋势+买入信号时开多单 下降趋势+卖出信号时开空单 使用固定的止损和止盈点数 风险管理: 使用输入参数设置交易手数、止损和止盈 每次只允许一个持仓(inTrade变量) 使用MQL5的Trade库进行交易操作,简化了下单过程 这个EA适合初学者学习,展示了基本的EA结构和简单的交易策略实现方法。但在实际使用前,还需要进行更多的测试和优化。
KP TRADE PANEL EA is an EA MT5 facilitates various menus. KP TRADE PANEL EA is an EA skin care in MT5 is an EA that puts the system automatically in download EA MT5 to test with demo account from my profile page while some Trailing Stop Stop Loss require more than 0 features EA determines lot or money management calculates lot from known and Stop loss TS = Trailing stop with separate stop loss order Buy more AVR TS = Trailing stop plus
MyTradingHistory
Max Timur Soenmez
一个易于使用的库,为开发者提供关键交易统计数据的便捷访问,适用于其MQL5 EA。 库中的可用方法: 账户数据和收益: GetAccountBalance() : 返回当前账户余额。 GetProfit() : 返回所有交易的净利润。 GetDeposit() : 返回总存款金额。 GetWithdrawal() : 返回总取款金额。 交易分析: GetProfitTrades() : 返回盈利交易的数量。 GetLossTrades() : 返回亏损交易的数量。 GetTotalTrades() : 返回执行的总交易数。 GetShortTrades() : 返回卖空交易的数量。 GetLongTrades() : 返回多头交易的数量。 GetWinLossRatio() : 返回盈利与亏损交易的比例。 GetAverageProfitTrade() : 返回每笔盈利交易的平均利润。 GetAverageLossTrade() : 返回每笔亏损交易的平均亏损。 GetROI() : 计算投资回报率。 GetLargestProfitTrade() : 返回单笔交易的最大利润。 Get
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
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
*****主要交易XAUUSD,如果测试的时候,建议调整到XAUUSD,其他交易标的不能保证盈利效果********* 需要测试的请留言(看到后会第一时间回复),为了保护工作成果,需要输入特定的参数,系统默认的参数无法实现截图回撤所示效果! 需要测试的请留言(看到后会第一时间回复),为了保护工作成果,需要输入特定的参数,系统默认的参数无法实现截图回撤所示效果! 需要测试的请留言(看到后会第一时间回复),为了保护工作成果,需要输入特定的参数,系统默认的参数无法实现截图回撤所示效果! **************************************************************************************************************************************************************** 1、【简述】主要为趋势交易,严格筛选交易信号,一旦交易信号明确,快速交易。 2、【止损止盈】每月止盈15%,止损30%。 3、【特殊说明】严格的交易执行逻辑,一旦当月达到止盈止损后,坚决不再开
OpenAI Connector for MT5 (版本 2.0) 产品概述 OpenAI Connector for MT5 是一个库,它可以让您在 MetaTrader 5 中轻松使用最新的 OpenAI 人工智能技术。 通过使用此库,交易者和 MQL5 程序员可以轻松实现自然语言处理、基于 AI 的自动交易、实时市场分析等功能。 在版本 2.0 中,API 调用速度更快,并支持最新的 OpenAI 模型(例如 GPT-3.5-turbo、GPT-4 等),使用起来也更加方便。 主要特点 【无缝 API 集成】直接从 MT5 访问 OpenAI API,轻松将 AI 功能整合到您的交易算法中。 【简单的参数设置】通过输入框设置您的 API 密钥、模型名称、用户消息、最大令牌数、温度和超时时间,无需修改代码。 【清晰的日志输出与错误检查】详细的请求和响应日志可帮助您快速查看状态并排查错误。 【广泛的模型支持】可轻松切换不同的 OpenAI 模型,如 GPT-3.5-turbo、GPT-4 等。 【高效处理速度】与竞争产品相比,该库提供更快、更高效的 API 调用,适用于实时交易
筛选:
无评论
回复评论