• 概要
  • レビュー
  • コメント

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);
    }
}


おすすめのプロダクト
このライブラリは、キーと値の配列をソートするために使用されます。多くの場合、値をソートする必要があります。 Python言語のように sorted(key_value.items(), key = lambda kv:(kv[ 1 ], kv[ 0 ])) インポート機能 利用シーン例 1. グリッド EA 注文は始値に従って並べ替えられます void SortedByOpenPride()   {    long     OrderTicketBuffer[];    double   OpenPriceBuffer[];    for ( int i = PositionsTotal ()- 1 ; i>= 0 ; i--)      {        if (m_position.SelectByIndex(i))         {          OrderTicketBuffer[i] = long (m_position.Ticket());          OpenPriceBuffer[i] = m_position.PriceOpen();  
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
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 import
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. T
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
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 emot
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 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 manag
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
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
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
Asseto FX
Bailey John Wickens
Asseto FX EAを紹介します。これは、真剣なデイトレーダーのための究極のアルゴリズムです。この洗練された使いやすいEAは、時間帯を利用して日々のトレンドの方向を決定します。他の多くのプログラムとは異なり、Asseto FX EAはマーチンゲールやグリッド機能に頼らず、本物のデイトレード戦略を採用しています。不採算の戦略を「収益性がある」ように見せかけることはありません。代わりに、論理的で堅実なコンセプトに基づいており、実際の結果をもたらします。Dukascopy Premiumデータを使用した20年以上のバックテスト結果により、そのデータセットの信頼性を確信できます。 Asseto FX EAは、毎日長期トレンドの始まりを特定するために時間帯フィルターを利用します。市場は通常、朝の時間帯に方向を見つけるため、このエキスパートアドバイザーは朝のブレイクアウト後にこれらのトレンドを見つけるように設計されています。その後、さまざまなフィルターを適用して、最も高い確率の取引のみを実行し、利益を最大化しながらリスクを最小限に抑えます。さらに、このEAは比類のないカスタマイズ性を備えている
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
(暗号通貨チャート) 指定した数のバーの数だけ履歴が表示され、インスタントデータが直接表示され始めます。 すべての時間枠で働く機会を提供します。 複数のシンボルを操作できます。 このアプリはバックグラウンドサービスです。 マーケットウォッチ画面に「S」で始まるすべてのシンボルの履歴をダウンロードし、ティックデータを表示します。 BinanceSpotのリアルタイム取引データを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.
| 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 - 取引アルゴリズムは、価格のバランスが崩れたときに平均に回帰するというコンセプトに基づいている。特別な条件も、有害な手法も、きれいなヒストリカルチャートもありません。今日、結果を出すことを使命とするユニークなアルゴリズムによる分かりやすい取引です。 モニタリング(.set) : https://www.mql5.com/ru/signals/1930463 メタトレーダー4バージョン: https://www.mql5.com/ru/market/product/93740 パラメータ:   https://www.mql5.com/ru/blogs/post/758300 いくつかの特徴 すべての取引はSLで保護され、きれいなチャートや回復の希望のために損失が蓄積されることはない.. 特別な取引条件(スプレッド、スリッページ、取引レベル..)に関連する方法は使用しません。 カスタマイズ・オプションにより、リスクとリターンの組み合わせを変更することができます。取引パターンを選択できます。  仕事内容 Sorgo EAは、1つのポジションで1つから3つの注文を開
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
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
SilverPulse AI
Babak Alamdar
3.8 (10)
新しい商品で取引を多様化すると、ポートフォリオがより強力になります    Live Signal この価格はプロモーション期間中の一時的なもので、間もなく値上げされます 最終価格: 5000 $ 現在の価格では残りわずかです。次の価格は -->> 745 $  Welcome to the SiverPulse AI Hey, I'm SilverPulse AI! これは、Silver または XAG を XAGUSD、XAGEUR、XAGAUD などの完全なペアで取引する最初の最もスマートなロボットです。 私は毎日ニュースをチェックし、技術的、基本的、感情的な裏付けが得られる機会はすべて利用します。せっかちなトレーダーのポケットから患者のポケットにお金が落ちます! この市場では、賢い人々と競争することになります。彼らはあなたのお金を手に入れようとしており、あなたも彼らのお金を手に入れようとしています。最も正確で積極的な市場分析を使って、頑張ります!あなたの幸運を祈ります! Highlights: シンプルで使いやすい:各シンボルチャート(XAGUSD、XAGE
Arbitragem B3
Edson Cavalca Junior
1 (1)
Arbitrage Robot IND/WIN or DOL/WDO This arbitrage robot works with WIN and WDO assets from the Brazilian Stock Exchange. The EA compares the best bid and ask (BID and ASK) of the "full" Index (IND) and compares it with the mini-index (WIN) and, if there is a gap between them, the difference in Ticks stipulated in the robot parameters, it opens a trade. It does the same analysis with DOL and WDO. It is necessary to insert the robot in the WIN or WDO chart and it will automa
TS Prop Firm MT5
Marzena Maria Szmit
5 (6)
TS Prop Firm MT5 has been prepared for Prop Trading Firms and Forex Brokers. TS Prop Firm EA is a version that support the   EURUSD, XAUUSD and US30 . There are three risk levels to choose from: Low, Medium and High. This robot is also   protected during important news , when high-impact news comes out, the robot doesn't open positions for 60 minutes before and 60 minutes after the important news. TS Prop Firm is available for MetaTrader 4 and MetaTrader 5. If you click on my profile, you can fi
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: 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は短期の機会を利用す
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 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
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
このプロダクトを購入した人は以下も購入しています
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
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.
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
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
このライブラリを使用すると、任意の EA を使用して取引を管理でき、説明に記載されているスクリプト コードを使用して任意の EA に簡単に統合でき、完全なプロセスを示すビデオのデモ例も利用できます。 - 指値注文、SL 指値注文、利食い指値注文の発行 - マーケット、SLマーケット、TPマーケットの注文を行う - 指値注文の変更 - 注文をキャンセルする - 注文のクエリ - レバレッジ、マージンの変更 - 位置情報の取得 もっと... MT5 に Binance チャートがない場合を除き、暗号チャートのレンタルはオプションです。 スクリプトのデモについては、 ここをクリックしてください トレーディングパネルでの取引をご希望の場合は、 この製品に興味があるかもしれません
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
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
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,
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
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 );    //复杂开单
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. What is this The MT5 system comes with very few optimization results. Sometimes we need to study more results. This library allows you to output more results during backtest optimization. It also supports printing more strategy results in a single backtest. 2. Product Features The results of the optimized output are quite numerous. CustomMax can be customized. The output is in the Common folder. It is automatically named according to the name of the EA, and the name of the same EA will be au
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
金融とトレーディング戦略の領域を深く掘り下げ、私は一連の実験を実施し、強化学習に基づくアプローチと強化学習を使用しないアプローチを調査することにしました。 これらの手法を適用して、私は現代のトレーディングにおけるユニークな戦略の重要性を理解する上で極めて重要な微妙な結論を導き出すことができました。 ニューラル ネットワーク アドバイザーは、初期段階では目覚ましい効率性を示したにもかかわらず、長期的には非常に不安定であることが判明しました。 市場のボラティリティ、トレンドの変化、外部事象などのさまざまな要因により、企業の運営に混乱が生じ、最終的には不安定化につながりました。 この経験を武器に、私は課題を受け入れ、独自のアプローチを開発し始めました。 私の焦点は、集められた最良のインジケーターを異なるパラメーター設定で利用するアドバイザーを作成することに集中していました。 このアドバイザーは、私の独自の戦略に基づいており、さまざまなパラメーター設定を持つ 14 の指標を同時に採用し、何時間ものデータ分析と綿密なテストから生まれました。
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
このライブラリは、できるだけ簡単にMetaTrader上で直接OpenAIのAPIを使用するための手段として提供されます。 ライブラリの機能についてさらに詳しく知るには、次の記事をお読みください: https://www.mql5.com/en/blogs/post/756098 The files needed to use the library can be found here: Manual 重要:EAを使用するには、OpenAI APIへのアクセスを許可するために、次のURLを追加する必要があります  添付画像に示されているように ライブラリを使用するには、次のリンクで見つけることができる次のヘッダーを含める必要があります:  https://www.mql5.com/en/blogs/post/756108 #import "StormWaveOpenAI.ex5" COpenAI *iOpenAI(string); CMessages *iMessages(void); CTools *iTools(void); #import これが、ライブラリを簡単に使用するた
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
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.
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
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
このライブラリを使用すると、任意の EA を使用して取引を管理でき、説明に記載されているスクリプト コードを使用して任意の EA に簡単に統合でき、完全なプロセスを示すビデオのデモ例も利用できます。 - 指値注文、SL 指値注文、利食い指値注文の発行 - マーケット、SLマーケット、TPマーケットの注文を行う - 指値注文の変更 - 注文をキャンセルする - 注文のクエリ - レバレッジ、マージンの変更 - 位置情報の取得 もっと... MT5 に Binance チャートがない場合を除き、暗号チャートのレンタルはオプションです。 スクリプトのデモについては、 ここをクリックしてください トレーディングパネルでの取引をご希望の場合は、 この製品に興味があるかもしれません
フィルタ:
レビューなし
レビューに返信