MQL5 Algo Trading
387K subscribers
2.56K photos
2.56K links
The best publications of the largest community of algotraders.

Subscribe to stay up-to-date with modern technologies and trading programs development.
Download Telegram
Noise Elimination Technology (NET) has been incorporated into an RSI indicator, functioning similarly to a rolling Kendall rank correlation coefficient. This implementation aids in determining the trend direction of a simple moving average (SMA). It is important to note that NET's trend assessment differs from the SMA slope, leading to occasional discrepancies between the slope and trend color changes. Users should consider using the color change indicator as a signal for potential trend shifts. Prior experimentation with the NET period is recommended to optimize the indicator's effectiveness for trading decisions. Adjustments to the NET period may influence its responsiveness and accuracy.

👉 Read | Quotes | @mql5dev

#MQL5 #MT5 #Indicator
43👨‍💻1
The latest discussion focuses on improving the C_Orders class for handling market trades, specifically its capability to interpret messages from the Chart Trade indicator. For NETTING accounts, the existing code efficiently manages open and close positions, including reversals and partial closings. However, challenges arise with HEDGING accounts due to differences in position handling. When "CLOSE ALL POSITIONS" is pressed, the operation executed depends on the account type. A crucial adjustment in the code involves ensuring the proper closure of positions by confirming the match between the symbol in the Chart Trade message and the open position's symbol.

Additional care is required to manage trades involving historical assets. The retrieved ticket number is validated against a magic number to maintain distinct trading strategies within a single Expert Advis...

👉 Read | CodeBase | @mql5dev

#MQL5 #MT5 #EA
34👨‍💻1
The application of machine learning to algorithmic trading presents unique challenges, especially within financial markets. Traditional supervised learning techniques fall short due to the fluid nature of market targets, unlike more defined domains like medicine. In trading, the target is not fixed, leading to methodological hurdles in model prediction. For instance, modeling financial returns or volatility presents diverse difficulties. This ambiguity in defining targets could hinder performance more than data or model weaknesses.

The inconsistency in target definition across various markets highlights the need for adaptable strategies. Performance ceilings in statistical models often result from methodological limitations. By redefining target variables, empirical model adjustments can enhance outcomes. Experimentation reveals that trading success hinges ...

👉 Read | AlgoBook | @mql5dev

#MQL5 #MT5 #ML
41👌2👨‍💻2🏆1
Sequential bootstrapping is effective for sampling in financial ML, addressing concurrency at its source. Unlike traditional methods that allow redundancy, this method dynamically adjusts probabilities based on temporal overlaps, producing samples with maximally independent observations.

This method demonstrates inefficiencies of standard bootstrap in finance due to label concurrency. Standard bootstrap's reliance on IID observations does not translate well to financial data where observations overlap temporally. This results in a smaller effective sample size and misleading variance estimations.

Sequential bootstrapping adjusts the probability of drawing observations based on their uniqueness to the current sample, minimizing redundancy and enhancing model robustness. Implementing this requires efficient calculation of indicator matrices and uniq...

👉 Read | VPS | @mql5dev

#MQL5 #MT5 #FinancialML
53👍8👨‍💻7
ZigZag NK Sound Alerts is designed to notify users with sound, push notifications, or popup alerts when there's a change in the ZigZag bar. This indicator employs three buffers: two dedicated to the ZigZag function itself and one for coloring. By utilizing this tool, users can efficiently monitor ZigZag bar changes without constantly checking their terminals. It's beneficial for those seeking automated notifications to streamline their workflow and enhance market analysis. Such indicators can be integral in maintaining attention to key market shifts while managing multiple tasks effectively.

👉 Read | VPS | @mql5dev

#MQL5 #MT5 #Indicator
27👍5👏4👨‍💻2
The Circle Search Algorithm (CSA), an optimization technique, leverages the geometric properties of circles to balance exploitation and exploration. Its innovative approach, using tangents and angles, offers smooth search space exploration, particularly effective in high-dimensional spaces. CSA adapts agents' positions dynamically, improving convergence and solution quality. Despite some convergence issues, CSA's ability to handle complex problems remains noteworthy. Practical applications include aiding traders and developers in optimization scenarios. Changes to key parameters have enhanced predictability, making this algorithm beneficial for solving challenging optimization tasks in algorithmic trading and beyond.

👉 Read | VPS | @mql5dev

#MQL5 #MT5 #Algorithm
57🤣11👨‍💻6👀4👍31
Analyzing trading signals on a 15-minute chart involves integrating multiple indicators for precision. The MACD serves to give an early direction indication. A primary signal depends on the Parabolic SAR, signaling buy or sell moments. A buy signal emerges if the third candle ago was below the SMA, with a subsequent candle closing above the SMA, and the SAR switches below the price. Complementarily, if the MACD indicates a bullish move while the SAR flips below the price, but close[1] hasn’t closed above the SMA, wait for up to 5 candles for confirmation.

Conversely, a bearish signal appears when a candle closes below the SMA after a 3-candle sequence, with the SAR transitioning above the price. Aligning such strategies leverages simultaneous or prior MACD confirmation of the trend direction.

👉 Read | CodeBase | @mql5dev

#MQL4 #MT4 #Strategy
54👨‍💻8👍311🎉1🏆1
Part 38 covers the development of a Hidden RSI Divergence Trading system with slope angle filters in MQL5. This system tracks hidden divergences to identify trend continuation signals, such as hidden bullish and bearish divergences, by analyzing price swings and RSI behavior. The strategy incorporates slope filtering to confirm signal validity, applies tolerance thresholds for pattern reliability, and executes trades with risk controls. The implementation involves defining input parameters, setting global variables, and leveraging helper functions for swing point verification and divergence assessment. Visual angle calculations on charts support signal clarity. The setup includes automated trade management with customizable lot sizes, stop losses, and take profit strategies.

👉 Read | Quotes | @mql5dev

#MQL5 #MT5 #RSIDivergence
40👨‍💻7🏆3
Short-term trading, including scalping, poses significant challenges for both novice and veteran traders. Many overlook the fundamental importance of higher time frame analysis, resulting in frequent account disruptions. Understanding that price trajectories—from point A to B—primarily originate from higher time frames can change trading outcomes. An expert advisor (EA) built for long-term trends, emphasizing top-down analysis, offers increased accuracy with minimal drawdown.

Engulfing patterns and liquidity purges on higher time frames such as D1, MN, and W1 indicate entry points aligned with overall trend directions. By focusing on these time frames, traders can capture long-term movements effectively. Input parameters in the EA like lot size, stop loss, take profit, and look-back windows ensure adaptable strategies. Engaging with higher time frame analysi...

👉 Read | NeuroBook | @mql5dev

#MQL5 #MT5 #EA
32👨‍💻5👀5🔥3👍1🏆1
In the current phase of our statistical arbitrage project, we focus on integrating the stability of portfolio weights and time to mean reversion. The previous analysis relied on liquidity and cointegration strength but omitted these key aspects. We intend to enhance the scoring system by including these metrics.

Stability of portfolio weights is crucial as dynamic changes in financial markets can destabilize weights, risking a breakdown in mean reversion. Regular testing for weight stability prevents strategy pitfalls and adapts to market shifts. Additionally, the half-life of mean reversion quantifies the time expected for spread deviations to halve, influencing position management and risk exposure. A shorter half-life indicates more frequent trading opportunities with lower capital risk. Understanding and incorporating these factors will refine o...

👉 Read | Calendar | @mql5dev

#MQL5 #MT5 #Strategy
50👍8👌4👨‍💻42👀21
A method involves dividing price by volume, using a simple moving average as the price metric. Despite its simplicity, there appears to be no significant predictive value in this approach for forecasting. While it provides a streamlined way to analyze price-volume relations, reliance solely on this method does not yield substantial insights for future price movements. It remains an exercise in examining basic market dynamics rather than a robust forecasting tool. The technique serves better as a supplementary analysis rather than a standalone system for predictions.

👉 Read | Freelance | @mql5dev

#MQL5 #MT5 #Indicator
32👍43👌3👨‍💻2👏1
Explore the technical construction of the Butterfly Oscillator, a novel indicator derived from the Butterfly Curve. This oscillator addresses the challenge of cyclical pattern detection and trading strategy development. Programmed in MQL5, it integrates seamlessly into MetaTrader 5, offering traders dynamic adaptability through bar count and price movement. The oscillator adapts to market conditions, with variable step sizes controlling sensitivity. This dual approach enhances predictive accuracy in identifying market entry and exit points. Supporting both long-term and short-term trading strategies, the Butterfly Oscillator is versatile for traders, recommended for integration into advanced trading systems on MetaTrader 5.

👉 Read | VPS | @mql5dev

#MQL5 #MT5 #Indicator
31👨‍💻5👌4😈1
Understanding the implementation of a Multi Indicator Handler in MetaTrader 5 can significantly enhance trading efficiency. This system streamlines the process by automatically listing key indicators directly on the chart, offering a unified view of critical technical measures.

The Multi Indicator Handler employs a structured voting system, categorizing indicators into Trend, Momentum, and Volatility groups. Each indicator generates a Buy, Sell, or Neutral signal based on predefined conditions, with the trend indicators carrying the highest influence for directional analysis.

MQL5 implementation involves coding separate roles for data acquisition, signal interpretation, and graphical display. Key components include an enum for profile modes, the IndicatorSlot data structure, and central functions for creating and managing indicators and chart interfaces....

👉 Read | VPS | @mql5dev

#MQL5 #MT5 #EA
41👨‍💻5👌4🤡3👀3😈1
Dive into the groundbreaking MacroHFT framework, a cutting-edge algorithmic trading system designed for the volatile cryptocurrency market, leveraging reinforcement learning for high-frequency trading. MacroHFT breaks conventional barriers by utilizing specialized sub-agents trained for distinct market scenarios, which are then orchestrated by a hyper-agent to form a cohesive trading strategy. This dual-agent system integrates macroeconomic data, allowing real-time adaptation to market volatility and trends. With the innovative use of advanced neural networks and context-aware memory modules, MacroHFT provides a resilient and dynamic solution for traders, promising enhanced performance by addressing the intricate challenges of rapid market fluctuations.

👉 Read | NeuroBook | @mql5dev

#MQL5 #MT5 #Crypto
26👍6👨‍💻6👌4🤡3😈1
The previous parts discussed preparations for automating optimization of trading Expert Advisors (EAs). This included creating an optimization conveyor with three stages: optimizing strategies for specific symbols and timeframes, forming groups from optimal strategies, and generating initialization strings for the final EA. To automate conveyor creation, a specialized script was introduced to populate databases with optimization projects and tasks, allowing for staged execution.

Efforts were made to enhance performance through profiling and code optimization, reducing method calls for retrieving trading symbols data. The result was automated generation of results for further analysis, facilitating hypothesis testing for re-optimization impacts on trading performance.

The current focus is on a mechanism for loading EA parameters. This enables partial or com...

👉 Read | AppStore | @mql5dev

#MQL5 #MT5 #EAs
41👌81😈1
A new CVD indicator for MetaTrader 5 has been introduced. It offers a lightweight, open-source solution for visualizing net buying vs. selling pressure via CVD candles, facilitating basic volume and order flow analysis. The indicator computes and plots CVD on the chart using M1 data in its free version and features an optional reset on timeframe boundaries.

Functionality extends to all symbols and timeframes. CVD is calculated by determining the direction from the difference between closing and opening values, then calculating the volume delta using tick volume. The cumulative sum of volume deltas produces the CVD, which is plotted as candles.

To get started, copy the file "CVD_MT5_v3_m1_codebase.mq5" to your "MQL5/Indicators" folder and compile using MetaEditor, or simply restart MetaTrader 5. Attach the indicator through the Navigator under Indicators. ...

👉 Read | Docs | @mql5dev

#MQL5 #MT5 #Indicator
435🎉3👨‍💻3😈2
Transient functions, especially the PCF model, have applications well beyond trading. These functions utilize the Gamma distribution to model dynamic and static processes, maintaining a material balance with P+C+F=1. Applied in sectors like oil, mining, and metallurgy, they aid in predicting process dynamics and enhancing extraction techniques without intensive preprocessing, such as gold leaching experiments that improved yields.

In trading, the PCF functions were foundational in developing indicators for MetaTrader platforms, characterized by three lines (Sell, Buy, Trader). They predict price movement by historical analysis, aiding accurate entry and exit signals. Comprehensive experiments with PCF-based indicators also explored resonance effects across multiple currency pairs in automated trading scenarios, showcasing robust predictive capacities a...

👉 Read | VPS | @mql5dev

#MQL5 #MT5 #Trading
60👍125🏆4😈4👨‍💻3👀1
The Exponential Moving Average (EMA) indicator is now available for MetaTrader 5. This tool calculates and displays the EMA directly on charts, providing valuable insights for trend identification and signal generation. The indicator offers options to set a user-defined period and choose the applied price, including Close, Open, High, Low, Median, Typical, or Weighted values.

Utilizing the standard EMA formula, it is initialized with a Simple Moving Average (SMA) for the initial bars, ensuring smooth calculations. The indicator is designed to be lightweight and efficient, allowing traders to easily integrate it into their strategies.

The EMA provides faster reactions to price changes than the Simple Moving Average (SMA), aiding in quick market direction assessments. When the price is above the EMA, it may signal an uptrend; below it, a downtrend. It can b...

👉 Read | Quotes | @mql5dev

#MQL5 #MT5 #EMA
438👌4👨‍💻3
Explore the latest advancements in algorithmic trading with MetaTrader 5. This article delves into innovative approaches for enhancing library classes to effectively manage and program graphical objects on trading charts. By adding dynamic arrays and refining methods, developers can now create and track complex, customizable composite graphical objects directly from their applications. Additionally, new features allow seamless distinction and management of both manually and programmatically created graphical objects through unique IDs and improved property handling. These advancements facilitate more efficient and precise automation for traders and developers, streamlining the process of both creating and modifying chart elements.

👉 Read | CodeBase | @mql5dev

#MQL5 #MT5 #Graphics
836👨‍💻5👌4👀4
The program operates in two modes: Master and Slave. It allows for trade copying from multiple vendors into a single slave account, with adjustable settings for Stop Loss and Take Profit. The copying of pending orders can be enabled or disabled as required. The tool supports seamless operation alongside other Expert Advisors and accommodates accounts with suffixes and prefixes. Trade direction can be modified, and copying can be based on balance proportion, fixed volume, or the supplier's volume.

A conditional setting allows trades to be executed when price deviations occur between supplier and subordinate accounts by a specified value. For functionality, both the supplier and slave account terminals must remain open. The Expert Advisor should be set to Master on the supplier terminal and Slave on the subordinate terminal, with relevant options chosen. ...

👉 Read | AlgoBook | @mql5dev

#MQL5 #MT5 #EACopy
35👨‍💻5👌3👍2👏2